You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,53 @@ The core design of TrustRAG lies in its **high configurability and modularity**,
21
21
22
22

23
23
24
+
## DeepResearch Features
25
+
26
+
The DeepResearch framework achieves deep information search and processing through layered queries, recursive iteration, and intelligent decision-making. This process includes the following key steps:
27
+
28
+
1. Intent Understanding
29
+
After the user inputs a query, the system parses it into multiple sub-queries to more precisely understand the user's needs.
30
+
31
+
2. Processing Condition Judgment
32
+
The system determines whether to continue execution based on the following conditions:
33
+
1.**Whether the token budget is exceeded**
34
+
2.**Whether the action depth is exceeded**
35
+
> If these conditions are met, the query is terminated and the answer is returned directly; otherwise, it enters the recursive execution step.
36
+
37
+
3. Recursive Execution Steps
38
+
During recursive execution, the system performs information retrieval, model reasoning, and context processing tasks
39
+
**Information Retrieval**
40
+
-**Get current question**
41
+
-**Build question execution sequence**
42
+
-**Recursive traversal**
43
+
-**Depth-first search**
44
+
-**Model reasoning**
45
+
> The system performs model reasoning, judging the next action through system prompts and context understanding.
46
+
47
+
4. Action Type Determination
48
+
Based on the reasoning results, the system decides the next type of action to execute:
49
+
-**answer**: Answer action
50
+
-**reflect**: Reflection action
51
+
-**search**: Search action
52
+
-**read**: Reading action
53
+
-**coding**: Code action
54
+
55
+
> These actions affect the context and continuously update the system state.
56
+
57
+
5. Result Feedback
58
+
Based on the final action type, the system performs the corresponding task and returns the results to the user, completing the entire process.
59
+
60
+
DeepResearch process diagram:
61
+
62
+

63
+
64
+
Run the CLI tool:
65
+
```bash
66
+
cd trustrag/modules/deepsearch
67
+
cp .env.example .env #Configure LLM API and search
0 commit comments