Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -134,11 +134,6 @@ def rag_workflow(query):
|
|
134 |
print("Retrieved Document Contexts:", doc_contexts)
|
135 |
print("Retrieved Code Contexts:", code_contexts)
|
136 |
|
137 |
-
# Step 3: Format the contexts
|
138 |
-
formatted_doc_context, formatted_code_context = rag_chain.format_context(doc_contexts, code_contexts)
|
139 |
-
print("Formatted Document Contexts:", formatted_doc_context)
|
140 |
-
print("Formatted Code Contexts:", formatted_code_context)
|
141 |
-
|
142 |
# Step 4: Generate the final response
|
143 |
response = rag_chain.generate_response(query, formatted_doc_context, formatted_code_context)
|
144 |
print("Generated Response:", response)
|
|
|
134 |
print("Retrieved Document Contexts:", doc_contexts)
|
135 |
print("Retrieved Code Contexts:", code_contexts)
|
136 |
|
|
|
|
|
|
|
|
|
|
|
137 |
# Step 4: Generate the final response
|
138 |
response = rag_chain.generate_response(query, formatted_doc_context, formatted_code_context)
|
139 |
print("Generated Response:", response)
|