Spaces:
Sleeping
Sleeping
Fix retrieved_text mistake
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ async def get_ai_response(user_query: str):
|
|
| 37 |
include_metadata=True
|
| 38 |
)
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
# Construct the System Prompt
|
| 43 |
# We use facts from the profile: Islamic banking, based in Mukalla [cite: 15, 6]
|
|
|
|
| 37 |
include_metadata=True
|
| 38 |
)
|
| 39 |
|
| 40 |
+
retrieved_text = "\n".join([res.metadata['original_text'] for res in search_results.matches])
|
| 41 |
|
| 42 |
# Construct the System Prompt
|
| 43 |
# We use facts from the profile: Islamic banking, based in Mukalla [cite: 15, 6]
|