From ff9bb8393e458381a531ee652c1a4fd9c4a7e19f Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Wed, 10 Jan 2024 16:56:00 +0100 Subject: [PATCH] qdrant no grpc --- config/chat-vectorstore-qa.yml | 2 +- src/libre_chat/llm.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/chat-vectorstore-qa.yml b/config/chat-vectorstore-qa.yml index 0708efc..7df5e04 100644 --- a/config/chat-vectorstore-qa.yml +++ b/config/chat-vectorstore-qa.yml @@ -17,7 +17,7 @@ llm: Helpful answer: vector: - vector_path: "http://qdrant:6334" + vector_path: "http://qdrant:6333" # vector_path: ./vectorstore/qdrant # Path to the vectorstore to do QA retrieval vector_download: null embeddings_path: ./embeddings/all-MiniLM-L6-v2 # Embeddings used to generate the vectors. To use from HF: sentence-transformers/all-MiniLM-L6-v2 diff --git a/src/libre_chat/llm.py b/src/libre_chat/llm.py index feebd57..ada4924 100644 --- a/src/libre_chat/llm.py +++ b/src/libre_chat/llm.py @@ -232,9 +232,9 @@ def build_vectorstore(self, documents_path: Optional[str] = None) -> Optional[Qd embeddings, # path=self.conf.vector.vector_path, url=self.conf.vector.vector_path, - prefer_grpc=True, collection_name="libre_chat_rag", - force_recreate=True, + # prefer_grpc=True, + # force_recreate=True, ) # vectorstore = FAISS.from_documents(splitted_texts, embeddings) # if self.vector_path: