Update app.py
Browse files
app.py
CHANGED
@@ -240,8 +240,8 @@ def rag_workflow(query):
|
|
240 |
def initialize():
|
241 |
global vectorstore, chunks, llm
|
242 |
|
243 |
-
partial_paths = ['docs/source/setup/', 'kadi_apy/lib/'
|
244 |
-
file_paths = []
|
245 |
all_texts, file_references = process_directory(REPOSITORY_DIRECTORY, partial_paths, file_paths)
|
246 |
chunks = split_into_chunks(all_texts, file_references, 512, 0)
|
247 |
print(f"Total number of chunks: {len(chunks)}")
|
|
|
240 |
def initialize():
|
241 |
global vectorstore, chunks, llm
|
242 |
|
243 |
+
partial_paths = ['docs/source/setup/', 'kadi_apy/lib/']
|
244 |
+
file_paths = ['docs/source/usage/lib.rst']
|
245 |
all_texts, file_references = process_directory(REPOSITORY_DIRECTORY, partial_paths, file_paths)
|
246 |
chunks = split_into_chunks(all_texts, file_references, 512, 0)
|
247 |
print(f"Total number of chunks: {len(chunks)}")
|