Spaces:
Runtime error
Runtime error
AlbertoFH98
commited on
Update utils.py
Browse files
utils.py
CHANGED
@@ -183,7 +183,7 @@ def get_gpt_response(transcription_path, query, logger):
|
|
183 |
loader = TextLoader(transcription_path)
|
184 |
docs = loader.load()
|
185 |
|
186 |
-
text_splitter = RecursiveCharacterTextSplitter(chunk_size=
|
187 |
splits = text_splitter.split_documents(docs)
|
188 |
|
189 |
vectorstore = Chroma.from_documents(documents=splits, embedding=OpenAIEmbeddings())
|
|
|
183 |
loader = TextLoader(transcription_path)
|
184 |
docs = loader.load()
|
185 |
|
186 |
+
text_splitter = RecursiveCharacterTextSplitter(chunk_size=3000, chunk_overlap=250, length_function=len)
|
187 |
splits = text_splitter.split_documents(docs)
|
188 |
|
189 |
vectorstore = Chroma.from_documents(documents=splits, embedding=OpenAIEmbeddings())
|