Skip to content

Commit

Permalink
fix qdrant docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 10, 2024
1 parent ff9bb83 commit c7205c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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:6333"
vector_path: "http://qdrant:6334"
# 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
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ services:
restart: unless-stopped
volumes:
- ./data/vectorstore/qdrant:/qdrant/storage
- ./scripts/qdrant_config.yml:/qdrant/config/production.yaml
# - ./scripts/qdrant_config.yml:/qdrant/config/production.yaml
environment:
- QDRANT_ALLOW_RECOVERY_MODE=true
- VIRTUAL_HOST=qdrant.137.120.31.148.nip.io
- LETSENCRYPT_HOST=qdrant.137.120.31.148.nip.io
- VIRTUAL_PORT=6333
# - VIRTUAL_HOST=qdrant.137.120.31.148.nip.io
# - LETSENCRYPT_HOST=qdrant.137.120.31.148.nip.io
# - VIRTUAL_PORT=6333
# ports:
# - 6333:6333
# command:
Expand Down
2 changes: 1 addition & 1 deletion src/libre_chat/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def build_vectorstore(self, documents_path: Optional[str] = None) -> Optional[Qd
# path=self.conf.vector.vector_path,
url=self.conf.vector.vector_path,
collection_name="libre_chat_rag",
# prefer_grpc=True,
prefer_grpc=True,
# force_recreate=True,
)
# vectorstore = FAISS.from_documents(splitted_texts, embeddings)
Expand Down

0 comments on commit c7205c2

Please sign in to comment.