mitulagr2 commited on
Commit
3e1829f
1 Parent(s): 683c59a

Update rag.py

Browse files
Files changed (1) hide show
  1. 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=128, chunk_overlap=8)
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",
 
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",