Skip to content

Commit e6c28e4

Browse files
authored
Merge pull request #537 from m-dawoud/patch-1
Update retrieval_agents.mdx
2 parents 15fc7dc + 2e4a238 commit e6c28e4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

units/en/unit2/smolagents/retrieval_agents.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ This enhanced agent can:
153153
When building agentic RAG systems, the agent can employ sophisticated strategies like:
154154

155155
1. **Query Reformulation:** Instead of using the raw user query, the agent can craft optimized search terms that better match the target documents
156-
2. **Multi-Step Retrieval:** The agent can perform multiple searches, using initial results to inform subsequent queries
157-
3. **Source Integration:** Information can be combined from multiple sources like web search and local documentation
158-
4. **Result Validation:** Retrieved content can be analyzed for relevance and accuracy before being included in responses
156+
2. **Query Decomposition:** Istead of using the user query directly, if it contains multiple pieces of information to query, it can be decomposed to multiple queries
157+
3. **Query Expansion:** Somehow similar to Query Reformulation but done multiple times to put the query in multiple wordings to query them all
158+
4. **Reranking:** Using Cross-Encoders to assign more comprehensive and semantic relevance scores between retrieved documents and search query
159+
5. **Multi-Step Retrieval:** The agent can perform multiple searches, using initial results to inform subsequent queries
160+
6. **Source Integration:** Information can be combined from multiple sources like web search and local documentation
161+
7. **Result Validation:** Retrieved content can be analyzed for relevance and accuracy before being included in responses
159162

160163
Effective agentic RAG systems require careful consideration of several key aspects. The agent **should select between available tools based on the query type and context**. Memory systems help maintain conversation history and avoid repetitive retrievals. Having fallback strategies ensures the system can still provide value even when primary retrieval methods fail. Additionally, implementing validation steps helps ensure the accuracy and relevance of retrieved information.
161164

0 commit comments

Comments
 (0)