Spaces:
Running
Running
fix
Browse files- Dockerfile +3 -0
- app/rag.py +1 -1
Dockerfile
CHANGED
@@ -30,6 +30,9 @@ RUN nohup ollama serve & sleep 5
|
|
30 |
#
|
31 |
EXPOSE 7860
|
32 |
|
|
|
|
|
|
|
33 |
#
|
34 |
EXPOSE 6334
|
35 |
|
|
|
30 |
#
|
31 |
EXPOSE 7860
|
32 |
|
33 |
+
#
|
34 |
+
EXPOSE 6333
|
35 |
+
|
36 |
#
|
37 |
EXPOSE 6334
|
38 |
|
app/rag.py
CHANGED
@@ -28,7 +28,7 @@ class ChatPDF:
|
|
28 |
text_parser = SentenceSplitter(chunk_size=512, chunk_overlap=100)
|
29 |
|
30 |
logger.info("initializing the vector store related objects")
|
31 |
-
client = qdrant_client.QdrantClient(host="localhost", port=
|
32 |
vector_store = QdrantVectorStore(client=client, collection_name="rag_documents")
|
33 |
|
34 |
logger.info("initializing the OllamaEmbedding")
|
|
|
28 |
text_parser = SentenceSplitter(chunk_size=512, chunk_overlap=100)
|
29 |
|
30 |
logger.info("initializing the vector store related objects")
|
31 |
+
client = qdrant_client.QdrantClient(host="localhost", port=6333)
|
32 |
vector_store = QdrantVectorStore(client=client, collection_name="rag_documents")
|
33 |
|
34 |
logger.info("initializing the OllamaEmbedding")
|