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

Function timed_query

tests/test-tf-idf-bm25.py:780–785  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

778 futures = []
779
780 def timed_query(query):
781 start = time.time()
782 resp = search_sparse_vector(collection, query, top_k)
783 end = time.time()
784 latency = (end - start) * 1000.0
785 return resp, latency
786
787 for query in query_vectors:
788 futures.append(executor.submit(timed_query, query))

Callers

nothing calls this directly

Calls 1

search_sparse_vectorFunction · 0.70

Tested by

no test coverage detected