MohamedAAK commited on
Commit
3df3f15
1 Parent(s): 7e7bfec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -195,8 +195,8 @@ class PdfQA:
195
  text_splitter = CharacterTextSplitter(chunk_size=100, chunk_overlap=0)
196
  texts = text_splitter.split_documents(documents)
197
  # text_splitter = TokenTextSplitter(chunk_size=100, chunk_overlap=10, encoding_name="cl100k_base") # This the encoding for text-embedding-ada-002
198
- text_splitter = TokenTextSplitter(chunk_size=100, chunk_overlap=10) # This the encoding for text-embedding-ada-002
199
- texts = text_splitter.split_documents(texts)
200
 
201
  ## 3. Create Embeddings and add to chroma store
202
  ##TODO: Validate if self.embedding is not None
 
195
  text_splitter = CharacterTextSplitter(chunk_size=100, chunk_overlap=0)
196
  texts = text_splitter.split_documents(documents)
197
  # text_splitter = TokenTextSplitter(chunk_size=100, chunk_overlap=10, encoding_name="cl100k_base") # This the encoding for text-embedding-ada-002
198
+ #text_splitter = TokenTextSplitter(chunk_size=100, chunk_overlap=10) # This the encoding for text-embedding-ada-002
199
+ #texts = text_splitter.split_documents(texts)
200
 
201
  ## 3. Create Embeddings and add to chroma store
202
  ##TODO: Validate if self.embedding is not None