This commit is contained in:
ACBBZ
2024-05-14 08:14:05 +00:00
committed by superobk
parent 2bcb9d990f
commit 7f59147768
5 changed files with 38 additions and 27 deletions

View File

@ -31,7 +31,7 @@ class ChromaQuery(Blackbox):
def processing(self, question: str, collection_id) -> str:
# load or create collection
collection = self.client.get_or_create_collection(collection_id, embedding_function=self.embedding_model)
collection = self.client.get_collection(collection_id, embedding_function=self.embedding_model)
# query it
results = collection.query(