Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.48 KB

File metadata and controls

33 lines (21 loc) · 1.48 KB

cppa_pinecone_sync — Service API

Module: cppa_pinecone_sync.services

All creates/updates/deletes for PineconeFailList and PineconeSyncStatus must go through this module. See CONTRIBUTING.md.


Public API (generated)

Function Parameters Return type Summary
clear_failed_ids app_type: str int Delete all PineconeFailList records for the given app_type. Returns count deleted.
get_failed_ids app_type: str list[str] Return all failed_id values for the given app_type.
get_final_sync_at app_type: str Optional[datetime] Return final_sync_at for the given app_type, or None if no record exists.
record_failed_ids app_type: str, failed_ids: list[str] list[PineconeFailList] Bulk-create PineconeFailList entries for each failed_id. Returns created objects.
update_sync_status app_type: str, final_sync_at: Optional[datetime] = None PineconeSyncStatus Create or update PineconeSyncStatus for the given app_type.

Cross-app orchestration API

Other tracker apps that upsert vectors into Pinecone must import from cppa_pinecone_sync.sync_api only — not sync, ingestion, or services directly.

Module: cppa_pinecone_sync.sync_api

Exports: sync_to_pinecone, PineconeInstance, PreprocessFn.

Related