Classes
Client
Synchronous client for interacting with the TopK API. Methods Constructorcollection()
Parameter | Type |
---|---|
collection | str |
CollectionClient
collections()
CollectionsClient
AsyncClient
Asynchronous client for interacting with the TopK API. Methods Constructorcollection()
Parameter | Type |
---|---|
collection | str |
AsyncCollectionClient
collections()
AsyncCollectionsClient
CollectionClient
Synchronous client for collection operations. Methodsget()
Parameter | Type |
---|---|
ids | Sequence[str] |
fields | Optional[Sequence[str]] |
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
count()
Parameter | Type |
---|---|
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
query()
Parameter | Type |
---|---|
query | query.Query |
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
upsert()
Parameter | Type |
---|---|
documents | Sequence[Mapping[str, Any]] |
delete()
Parameter | Type |
---|---|
ids | Sequence[str] |
AsyncCollectionClient
Asynchronous client for collection operations. Methodsget()
Parameter | Type |
---|---|
ids | Sequence[str] |
fields | Optional[Sequence[str]] |
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
count()
Parameter | Type |
---|---|
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
query()
Parameter | Type |
---|---|
query | query.Query |
lsn | Optional[str] |
consistency | Optional[ConsistencyLevel ] |
upsert()
Parameter | Type |
---|---|
documents | Sequence[Mapping[str, Any]] |
delete()
Parameter | Type |
---|---|
ids | Sequence[str] |
Collection
Represents a collection in the TopK system. PropertiesProperty | Type |
---|---|
name | str |
org_id | str |
project_id | str |
region | str |
schema | dict[str, schema.FieldSpec ] |
CollectionsClient
Synchronous client for managing collections. Methodsget()
Parameter | Type |
---|---|
collection_name | str |
Collection
list()
Collection
]
create()
Parameter | Type |
---|---|
collection_name | str |
schema | Mapping[str, schema.FieldSpec ] |
Collection
delete()
Parameter | Type |
---|---|
collection_name | str |
AsyncCollectionsClient
Asynchronous client for managing collections. Methodsget()
Parameter | Type |
---|---|
collection_name | str |
Collection
]
list()
Collection
]]
create()
Parameter | Type |
---|---|
collection_name | str |
schema | Mapping[str, schema.FieldSpec ] |
Collection
]
delete()
Parameter | Type |
---|---|
collection_name | str |
ConsistencyLevel
Enumeration of consistency levels for operations. ValuesValue | Description |
---|---|
Indexed | indexed |
Strong | strong |
RetryConfig
Configuration for retry behavior. PropertiesProperty | Type |
---|---|
max_retries | Optional[int] |
timeout | Optional[int] |
backoff | Optional[BackoffConfig ] |
BackoffConfig
Configuration for backoff behavior in retries. PropertiesProperty | Type |
---|---|
base | Optional[int] |
init_backoff | Optional[int] |
max_backoff | Optional[int] |