Spaces:
Running
Running
Update rag.py
Browse files- app/rag.py +3 -3
app/rag.py
CHANGED
@@ -57,12 +57,12 @@ class ChatPDF:
|
|
57 |
|
58 |
|
59 |
def __init__(self):
|
60 |
-
self.text_parser = SentenceSplitter(chunk_size=
|
61 |
|
62 |
logger.info("initializing the vector store related objects")
|
63 |
# client = QdrantClient(host="localhost", port=6333)
|
64 |
-
|
65 |
-
client = QdrantClient(":memory:")
|
66 |
self.vector_store = QdrantVectorStore(
|
67 |
client=client,
|
68 |
collection_name="rag_documents",
|
|
|
57 |
|
58 |
|
59 |
def __init__(self):
|
60 |
+
self.text_parser = SentenceSplitter(chunk_size=512, chunk_overlap=24)
|
61 |
|
62 |
logger.info("initializing the vector store related objects")
|
63 |
# client = QdrantClient(host="localhost", port=6333)
|
64 |
+
client = QdrantClient(url=QDRANT_API_URL, api_key=QDRANT_API_KEY)
|
65 |
+
# client = QdrantClient(":memory:")
|
66 |
self.vector_store = QdrantVectorStore(
|
67 |
client=client,
|
68 |
collection_name="rag_documents",
|