mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 15:39:06 +08:00
chore: first commit
This commit is contained in:
65
README.md
65
README.md
@@ -16,3 +16,68 @@ npm run dev "what is the twitter account of jina ai's founder"
|
||||
npm run dev "who will be president of US in 2028?"
|
||||
npm run dev "what should be jina ai strategy for 2025?"
|
||||
```
|
||||
|
||||
```mermaid
|
||||
|
||||
flowchart TD
|
||||
subgraph Inputs[System Inputs]
|
||||
OrigQuestion[Original Question]
|
||||
TokenBudget[Token Budget]
|
||||
end
|
||||
|
||||
subgraph States[Global States]
|
||||
direction TB
|
||||
GapQueue[Question Queue]
|
||||
ContextStore[Action History]
|
||||
BadStore[Failed Attempts]
|
||||
QuestionStore[Question History]
|
||||
KeywordStore[Keyword History]
|
||||
end
|
||||
|
||||
subgraph Outputs[System Outputs]
|
||||
FinalAnswer[Answer]
|
||||
end
|
||||
|
||||
TokenBudget -->|check| End[System End]
|
||||
|
||||
OrigQuestion -->|initialize| GapQueue
|
||||
GapQueue -->|pop| NextQ[Question]
|
||||
NextQ -->|generate| AIResponse[Response]
|
||||
AIResponse -->|analyze| ActionType{Action Type}
|
||||
|
||||
ActionType -->|is search| SearchOp[Search Results]
|
||||
SearchOp -->|store| ContextStore
|
||||
SearchOp -->|add| KeywordStore
|
||||
SearchOp -->|continue| TokenBudget
|
||||
|
||||
ActionType -->|is read| URLData[URL Content]
|
||||
URLData -->|store| ContextStore
|
||||
URLData -->|continue| TokenBudget
|
||||
|
||||
ActionType -->|is reflect| NewQuestions[Questions]
|
||||
NewQuestions -->|check against| QuestionStore
|
||||
NewQuestions -->|filter| UniqueQuestions[Unique Questions]
|
||||
UniqueQuestions -->|push to| GapQueue
|
||||
UniqueQuestions -->|add to| QuestionStore
|
||||
UniqueQuestions -->|continue| TokenBudget
|
||||
|
||||
ActionType -->|is answer| AnswerCheck{Original Question}
|
||||
AnswerCheck -->|compare with| OrigQuestion
|
||||
AnswerCheck -->|is not| ContextStore
|
||||
ContextStore -->|continue| TokenBudget
|
||||
|
||||
AnswerCheck -->|is| Evaluation[Answer Quality]
|
||||
Evaluation -->|check| ValidCheck{Quality}
|
||||
ValidCheck -->|passes| FinalAnswer
|
||||
FinalAnswer -->|return| End
|
||||
|
||||
ValidCheck -->|fails| BadStore
|
||||
ValidCheck -->|fails and clear| ContextStore
|
||||
|
||||
classDef state fill:#e1f5fe,stroke:#01579b
|
||||
classDef input fill:#e8f5e9,stroke:#2e7d32
|
||||
classDef output fill:#fce4ec,stroke:#c2185b
|
||||
class GapQueue,ContextStore,BadStore,QuestionStore,KeywordStore state
|
||||
class OrigQuestion,TokenBudget input
|
||||
class FinalAnswer output
|
||||
```
|
||||
Reference in New Issue
Block a user