Spaces:
Runtime error
Runtime error
Huy
commited on
Commit
·
5a9677f
1
Parent(s):
f791a3b
Update retriever description prompt
Browse files
app.py
CHANGED
@@ -161,7 +161,7 @@ async def search_with_llm(query: str,
|
|
161 |
retriever_tools = [RetrieverTool.from_defaults(
|
162 |
name=key,
|
163 |
retriever=value,
|
164 |
-
description=f"Useful for retrieving information about {key}
|
165 |
|
166 |
retriever_mappings = {retriever_tool.metadata.name: retriever_tool.retriever for retriever_tool in retriever_tools}
|
167 |
|
|
|
161 |
retriever_tools = [RetrieverTool.from_defaults(
|
162 |
name=key,
|
163 |
retriever=value,
|
164 |
+
description=f"Useful for retrieving information about {key}.") for key, value in retrievers.items()]
|
165 |
|
166 |
retriever_mappings = {retriever_tool.metadata.name: retriever_tool.retriever for retriever_tool in retriever_tools}
|
167 |
|