Skip to content

Commit

Permalink
qdrant no grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2024
1 parent 3ad883d commit ff9bb83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/chat-vectorstore-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/libre_chat/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ff9bb83

Please sign in to comment.