Spaces:
Configuration error
Configuration error
oremaz
commited on
Commit
·
5a13635
1
Parent(s):
03b1b87
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -319,14 +319,15 @@ forced_rag_pipeline = create_forced_rag_pipeline()
|
|
| 319 |
# Remplacer les tools individuels par le pipeline
|
| 320 |
information_retrieval_tool = FunctionTool.from_defaults(
|
| 321 |
fn=lambda input_path: forced_rag_pipeline.run(input_path),
|
| 322 |
-
name="
|
| 323 |
description=(
|
| 324 |
-
"This tool is the PRIMARY and MOST EFFECTIVE method for extracting and retrieving information from URLs or documents. "
|
| 325 |
-
"
|
|
|
|
| 326 |
"Then, it creates a powerful Retrieval Augmented Generation (RAG) query engine optimized for semantic search and precise information retrieval. "
|
| 327 |
-
"
|
| 328 |
-
"This tool is specifically designed to
|
| 329 |
-
"
|
| 330 |
)
|
| 331 |
)
|
| 332 |
|
|
|
|
| 319 |
# Remplacer les tools individuels par le pipeline
|
| 320 |
information_retrieval_tool = FunctionTool.from_defaults(
|
| 321 |
fn=lambda input_path: forced_rag_pipeline.run(input_path),
|
| 322 |
+
name="information_retrieval_tool",
|
| 323 |
description=(
|
| 324 |
+
"This tool is the PRIMARY and MOST EFFECTIVE method for answering user queries by extracting and retrieving information from URLs or documents. "
|
| 325 |
+
"When given a document or URL, it AUTOMATICALLY processes the content and DIRECTLY ANSWERS your specific question or information need. "
|
| 326 |
+
"The tool first uses read_and_parse to fully extract and parse content from web pages, PDFs, or document files. "
|
| 327 |
"Then, it creates a powerful Retrieval Augmented Generation (RAG) query engine optimized for semantic search and precise information retrieval. "
|
| 328 |
+
"Most importantly, it IMMEDIATELY applies this RAG engine to provide direct, accurate answers to your query, eliminating the need for manual searching. "
|
| 329 |
+
"This tool is specifically designed to transform user questions into precise answers by leveraging advanced document understanding and query processing capabilities. "
|
| 330 |
+
"Instead of manual page access or ad-hoc parsing, use this tool to get immediate, reliable answers to your information retrieval needs."
|
| 331 |
)
|
| 332 |
)
|
| 333 |
|