Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
@@ -204,9 +204,9 @@ class ArvixSearchTool(Tool):
|
|
204 |
condensed_docs = "\n\n---\n\n".join(
|
205 |
[
|
206 |
f'<Document source="{doc.metadata["source"]}" page="{doc.metadata.get("page", "")}"/>\n{doc.page_content[:1000]}\n</Document>'
|
207 |
-
for doc in
|
208 |
])
|
209 |
-
|
210 |
|
211 |
|
212 |
tools=[
|
|
|
204 |
condensed_docs = "\n\n---\n\n".join(
|
205 |
[
|
206 |
f'<Document source="{doc.metadata["source"]}" page="{doc.metadata.get("page", "")}"/>\n{doc.page_content[:1000]}\n</Document>'
|
207 |
+
for doc in documents
|
208 |
])
|
209 |
+
return {"arvix_search_results": condensed_docs}
|
210 |
|
211 |
|
212 |
tools=[
|