Spaces:
Build error
Build error
Update rag.py
Browse files
rag.py
CHANGED
@@ -66,9 +66,7 @@ def load_documents():
|
|
66 |
return docs
|
67 |
|
68 |
def split_documents(config, docs):
|
69 |
-
text_splitter = RecursiveCharacterTextSplitter(
|
70 |
-
chunk_overlap = config["chunk_overlap"],
|
71 |
-
chunk_size = config["chunk_size"])
|
72 |
|
73 |
return text_splitter.split_documents(docs)
|
74 |
|
|
|
66 |
return docs
|
67 |
|
68 |
def split_documents(config, docs):
|
69 |
+
text_splitter = RecursiveCharacterTextSplitter()
|
|
|
|
|
70 |
|
71 |
return text_splitter.split_documents(docs)
|
72 |
|