Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -329,8 +329,8 @@ def rag_workflow(query):
|
|
| 329 |
# docs = retrieve_docs_from_vectorstore(docstore, query, k=5)
|
| 330 |
|
| 331 |
|
| 332 |
-
|
| 333 |
-
kadi_apy_docs = retrieve_within_kadiApy_docs (vector_store, query, k = 5)
|
| 334 |
|
| 335 |
|
| 336 |
|
|
@@ -407,6 +407,9 @@ def initialize():
|
|
| 407 |
doc_partial_paths = []
|
| 408 |
doc_partial_paths = ['docs/source/setup/']
|
| 409 |
doc_file_paths = ['docs/source/usage/lib.rst']
|
|
|
|
|
|
|
|
|
|
| 410 |
|
| 411 |
kadiAPY_code_texts, kadiAPY_code_references = process_directory(DATA_DIR, code_partial_paths, code_file_paths)
|
| 412 |
print("LEEEEEEEEEEEENGTH of code_texts: ", len(kadiAPY_code_texts))
|
|
@@ -448,6 +451,7 @@ def add_text(history, text):
|
|
| 448 |
|
| 449 |
|
| 450 |
|
|
|
|
| 451 |
import gradio as gr
|
| 452 |
|
| 453 |
|
|
|
|
| 329 |
# docs = retrieve_docs_from_vectorstore(docstore, query, k=5)
|
| 330 |
|
| 331 |
|
| 332 |
+
kadi_apy_docs = retrieve_from_vectorstore(vector_store, query, k = 5):
|
| 333 |
+
#kadi_apy_docs = retrieve_within_kadiApy_docs (vector_store, query, k = 5)
|
| 334 |
|
| 335 |
|
| 336 |
|
|
|
|
| 407 |
doc_partial_paths = []
|
| 408 |
doc_partial_paths = ['docs/source/setup/']
|
| 409 |
doc_file_paths = ['docs/source/usage/lib.rst']
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
|
| 414 |
kadiAPY_code_texts, kadiAPY_code_references = process_directory(DATA_DIR, code_partial_paths, code_file_paths)
|
| 415 |
print("LEEEEEEEEEEEENGTH of code_texts: ", len(kadiAPY_code_texts))
|
|
|
|
| 451 |
|
| 452 |
|
| 453 |
|
| 454 |
+
|
| 455 |
import gradio as gr
|
| 456 |
|
| 457 |
|