Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ load_dotenv()
|
|
| 36 |
loader = UnstructuredFileLoader('Jio.txt', mode='elements')
|
| 37 |
documents= loader.load()
|
| 38 |
|
| 39 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
| 40 |
texts = text_splitter.split_documents(documents)
|
| 41 |
embeddings = OpenAIEmbeddings()
|
| 42 |
doc_search = Chroma.from_documents(texts,embeddings)
|
|
|
|
| 36 |
loader = UnstructuredFileLoader('Jio.txt', mode='elements')
|
| 37 |
documents= loader.load()
|
| 38 |
|
| 39 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=1500, chunk_overlap=150)
|
| 40 |
texts = text_splitter.split_documents(documents)
|
| 41 |
embeddings = OpenAIEmbeddings()
|
| 42 |
doc_search = Chroma.from_documents(texts,embeddings)
|