MCPcopy Create free account
hub / github.com/cosdata/cosdata / search

Function search

tests/load-test.py:321–324  ·  view source on GitHub ↗
(vectors, vector_db_name, query)

Source from the content-addressed store, hash-verified

319
320
321def search(vectors, vector_db_name, query):
322 ann_response = ann_vector(query["id"], vector_db_name, query["values"])
323 bruteforce_result = bruteforce_search(vectors, query, 5)
324 return (ann_response, bruteforce_result)
325
326
327def get_transaction_status(collection_name, transaction_id):

Callers

nothing calls this directly

Calls 2

ann_vectorFunction · 0.85
bruteforce_searchFunction · 0.70

Tested by

no test coverage detected