Commit 7c910df
Agentic RAG with iterative sub-agent search (#180)
* feat: allow agentic behavior with iterable tool calling
* feat: added system message injection to allow for smoother agentic rag
* feat: spawn subagent for search queries
* feat: first implementation of sub-agent search
* fix: make auto-retrieval assertion robust to parallel tool calls
(cherry picked from commit 2fc5d7d)
* fix: drop unsupported params in self-query LLM call for GPT-5 compatibility
(cherry picked from commit d46fcf6)
* fix: fixed token budget miscalculation
* fix: pass metadata_filter to run_tools
* fix: deduplicate chunk spans based on chunk ids
* fix: separate live messages from working messages object during sub calls
* feat: updated async_rag to match rag
* feat: code clean up
* fix: small robustness fixes for edge cases
* fix: fix required tool call in litellm
* fix: adapted tool description to make it more robust to tests
* fix: resolved pr comments
- import MetadataFilter at runtime
- remove redundant assert tool
- added clip to subagent messages
- fix bug that allowed empty tool call list to run LLM completion
---------
Co-authored-by: r-dh <remydheygere@gmail.com>1 parent d327f14 commit 7c910df
6 files changed
Lines changed: 469 additions & 121 deletions
File tree
- src/raglite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
0 commit comments