bupa1018 commited on
Commit
b846fd7
·
1 Parent(s): 34426fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -350,8 +350,10 @@ def rag_workflow(query):
350
  def initialize():
351
  global vectorstore, chunks, llm
352
 
353
- partial_paths = ['docs/source/setup/', 'kadi_apy/lib/']
354
- file_paths = ['docs/source/usage/lib.rst']
 
 
355
  all_texts, file_references = process_directory(REPOSITORY_DIRECTORY, partial_paths, file_paths)
356
  chunks = split_into_chunks(all_texts, file_references, 512, 0)
357
  print(f"Total number of chunks: {len(chunks)}")
 
350
  def initialize():
351
  global vectorstore, chunks, llm
352
 
353
+ partial_paths = ['kadi_apy/lib/ressource']
354
+ file_paths = []
355
+ #partial_paths = ['docs/source/setup/', 'kadi_apy/lib/']
356
+ #file_paths = ['docs/source/usage/lib.rst']
357
  all_texts, file_references = process_directory(REPOSITORY_DIRECTORY, partial_paths, file_paths)
358
  chunks = split_into_chunks(all_texts, file_references, 512, 0)
359
  print(f"Total number of chunks: {len(chunks)}")