Closed amotl closed 10 months ago
It is a special adapter which provides similarity search across multiple collections. It can not be used for indexing documents.
from langchain.vectorstores.cratedb import CrateDBVectorSearchMultiCollection multisearch = CrateDBVectorSearchMultiCollection( collection_names=["test_collection_1", "test_collection_2"], embedding_function=embeddings, connection_string=CONNECTION_STRING, ) docs_with_score = multisearch.similarity_search_with_score(query)
This patch has been conceived based on a feature request by @thunderbug1. Thanks!
About
It is a special adapter which provides similarity search across multiple collections. It can not be used for indexing documents.
Synopsis
References
This patch has been conceived based on a feature request by @thunderbug1. Thanks!