Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,9 @@ def rag_workflow(query):
|
|
| 139 |
|
| 140 |
formatted_doc_snippets = rag_chain.format_documents(kadiAPY_doc_documents)
|
| 141 |
formatted_code_snippets = rag_chain.format_documents(kadiAPY_code_documents)
|
| 142 |
-
|
|
|
|
|
|
|
| 143 |
# Step 4: Generate the final response
|
| 144 |
response = rag_chain.generate_response(query, formatted_doc_snippets, formatted_code_snippets)
|
| 145 |
print("Generated Response:", response)
|
|
|
|
| 139 |
|
| 140 |
formatted_doc_snippets = rag_chain.format_documents(kadiAPY_doc_documents)
|
| 141 |
formatted_code_snippets = rag_chain.format_documents(kadiAPY_code_documents)
|
| 142 |
+
print(("FORMATTED Retrieved Document Contexts:", formatted_doc_snippets)
|
| 143 |
+
print(("FORMATTED Retrieved Code Contexts:" , formatted_doc_snippets)
|
| 144 |
+
print(formatted_code_snippets)
|
| 145 |
# Step 4: Generate the final response
|
| 146 |
response = rag_chain.generate_response(query, formatted_doc_snippets, formatted_code_snippets)
|
| 147 |
print("Generated Response:", response)
|