Commit 6291e58
authored
docs(book-flight-ai-agent): explain qwq default and add fallback options (#1099)
The default LLM_MODEL=qwq was chosen for multimodal support: the chat
protocol carries an optional image (`bytes bin` in proto/chat.proto)
and the front-end allows uploading a picture together with the message.
qwq was the smallest Ollama-distributed model combining ReAct-quality
reasoning with multimodal input at the time the sample was written.
Without that context in the README, users assumed qwq was an arbitrary
heavyweight choice and tried to swap in much smaller models like
qwen3:4b, which cannot follow the ReAct prompt and route every request
to TaskUnrelated — making it look like the search tool is broken.
Update both README.md and README_zh.md (no code or .env change):
- Add a "Model Recommendations" section that explains why qwq is the
default and that its Ollama footprint is modest in practice.
- Provide a tiered table of text-only alternatives (qwen2.5:14b /
qwen2.5:7b) for users who don't need multimodal.
- Document the unit-test fallback (`go test ./go-server/tools/
bookingflight/...`) for users who can't run any LLM locally.
- Add a troubleshooting tip pointing out that models <~7B tend to
misclassify the task, so the right first step is to try a larger
model rather than digging into the code.
Closes #10851 parent 5eb5746 commit 6291e58
2 files changed
Lines changed: 58 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
30 | 58 | | |
31 | 59 | | |
32 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
30 | 58 | | |
31 | 59 | | |
32 | 60 | | |
| |||
0 commit comments