fix: improve prompting

This commit is contained in:
Han Xiao 2025-02-05 13:49:22 +08:00
parent 2306bd3a9e
commit fd6623b9dc
3 changed files with 19 additions and 17 deletions

View File

@ -17,23 +17,6 @@ cd node-DeepResearch
npm install
```
## Demo
Query: `"what is the latest blog post's title from jina ai?"`
> 3 steps; answer is correct!
![demo1](demo.gif)
Query: `"what is the context length of readerlm-v2?"`
> 2 steps; answer is correct!
![demo1](demo3.gif)
Query: `"list all employees from jina ai that u can find, as many as possible"`
> 11 steps; partially correct, but im not in the list :(
![demo1](demo2.gif)
Query: `"who will be the biggest competitor of Jina AI"`
> 42 steps; future prediction kind, so it's arguably correct.
![demo1](demo4.gif)
## Usage
@ -41,6 +24,25 @@ Query: `"who will be the biggest competitor of Jina AI"`
npm run dev $QUERY
```
## Demo
Query: `"what is the latest blog post's title from jina ai?"`
3 steps; answer is correct!
![demo1](demo.gif)
Query: `"what is the context length of readerlm-v2?"`
2 steps; answer is correct!
![demo1](demo3.gif)
Query: `"list all employees from jina ai that u can find, as many as possible"`
11 steps; partially correct, but im not in the list :(
![demo1](demo2.gif)
Query: `"who will be the biggest competitor of Jina AI"`
42 steps; future prediction kind, so it's arguably correct.
![demo1](demo4.gif)
More examples:
```
# example: no tool calling
npm run dev "1+1="

BIN
demo3.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

BIN
demo4.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB