Search using TF-IDF with cosdata client
(collection, vector, top_k)
| 518 | |
| 519 | |
| 520 | def search_sparse_vector(collection, vector, top_k): |
| 521 | """Search using TF-IDF with cosdata client""" |
| 522 | results = collection.search.text(query_text=vector["text"], top_k=top_k) |
| 523 | return results |
| 524 | |
| 525 | |
| 526 | def batch_ann_search(collection, batch, top_k): |