feat(python): add optional threadpool for batch requests (#981)

Currently if a batch request is given to the remote API, each query is
sent sequentially. We should allow the user to specify a threadpool.
This commit is contained in:
Chang She
2024-02-16 20:22:22 -08:00
committed by GitHub
parent d6b408e26f
commit e0277383a5
4 changed files with 37 additions and 9 deletions

View File

@@ -803,10 +803,8 @@ def test_count_rows(db):
assert table.count_rows(filter="text='bar'") == 1
def test_hybrid_search(db):
# hardcoding temporarily.. this test is failing with tmp_path mockdb.
# Probably not being parsed right by the fts
db = MockDB("~/lancedb_")
def test_hybrid_search(db, tmp_path):
db = MockDB(str(tmp_path))
# Create a LanceDB table schema with a vector and a text column
emb = EmbeddingFunctionRegistry.get_instance().get("test")()