修改为东南天坐标系
This commit is contained in:
@@ -26,8 +26,10 @@ from chromadb.api.types import (
|
||||
Embeddings,
|
||||
IDs,
|
||||
Include,
|
||||
IndexingStatus,
|
||||
Schema,
|
||||
Metadatas,
|
||||
ReadLevel,
|
||||
URIs,
|
||||
Where,
|
||||
WhereDocument,
|
||||
@@ -379,6 +381,25 @@ class FastAPI(BaseHTTPClient, ServerAPI):
|
||||
model = CollectionModel.from_json(resp_json)
|
||||
return model
|
||||
|
||||
@trace_method("FastAPI._get_indexing_status", OpenTelemetryGranularity.OPERATION)
|
||||
@override
|
||||
def _get_indexing_status(
|
||||
self,
|
||||
collection_id: UUID,
|
||||
tenant: str = DEFAULT_TENANT,
|
||||
database: str = DEFAULT_DATABASE,
|
||||
) -> IndexingStatus:
|
||||
resp_json = self._make_request(
|
||||
"get",
|
||||
f"/tenants/{tenant}/databases/{database}/collections/{collection_id}/indexing_status",
|
||||
)
|
||||
return IndexingStatus(
|
||||
num_indexed_ops=resp_json["num_indexed_ops"],
|
||||
num_unindexed_ops=resp_json["num_unindexed_ops"],
|
||||
total_ops=resp_json["total_ops"],
|
||||
op_indexing_progress=resp_json["op_indexing_progress"],
|
||||
)
|
||||
|
||||
@trace_method("FastAPI._search", OpenTelemetryGranularity.OPERATION)
|
||||
@override
|
||||
def _search(
|
||||
@@ -387,10 +408,14 @@ class FastAPI(BaseHTTPClient, ServerAPI):
|
||||
searches: List[Search],
|
||||
tenant: str = DEFAULT_TENANT,
|
||||
database: str = DEFAULT_DATABASE,
|
||||
read_level: ReadLevel = ReadLevel.INDEX_AND_WAL,
|
||||
) -> SearchResult:
|
||||
"""Performs hybrid search on a collection"""
|
||||
# Convert Search objects to dictionaries
|
||||
payload = {"searches": [s.to_dict() for s in searches]}
|
||||
payload = {
|
||||
"searches": [s.to_dict() for s in searches],
|
||||
"read_level": read_level,
|
||||
}
|
||||
|
||||
resp_json = self._make_request(
|
||||
"post",
|
||||
|
||||
Reference in New Issue
Block a user