Turn company policies and personal notes into a queryable knowledge base, and ask in plain language to get the right entry.
Disclaimer: The content shown on this page is generated by an AI model and is for reference only. It does not constitute any guarantee of effectiveness. Actual output and Credits consumption are subject to "Usage Details" in the console.
qwen3.7-plus produce an entire three-stage RAG script in one shot and runs it through three plain-language questions like "how to get the travel money back": the colloquial question is first rewritten into standard retrieval terms, then locally recalled and re-ranked for an answer, and all three hit the correct entry. The key is not keyword matching but first translating the colloquial phrasing into standard retrieval terms—this is the most practical approach when landing RAG (retrieval-augmented generation).
Call chain: (1) Query rewriting (qwen3.7-plus turns the colloquial question → standard retrieval terms) → (2) Local recall (numpy implementing TF-IDF + cosine similarity; runs locally and consumes no Credits) → (3) Re-rank and answer (qwen3.7-plus picks the correct entry from the Top5 candidates and answers).
Steps: Have the model directly produce the full RAG script
Send the following instruction to qwen3.7-plus:
View measured output · full Q&A transcript for three colloquial questions (real local python3 execution)
View measured output · full Q&A transcript for three colloquial questions (real local python3 execution)
Notes
- Consumption: This playbook involves text generation (
qwen3.7-plus), consumed in two phases—generating the script produces a 6.6 KB runnable script in one shot; at runtime each question needs 2 calls (query rewriting + re-rank and answer), so more questions mean higher consumption. The local TF-IDF recall step consumes no Credits. - The role of query rewriting: Across two rounds of testing, directly using the colloquial "how to get the money back after a business trip" for retrieval gives a local recall similarity of 0.0000 (complete recall failure, with the answer drifting to travel standards); after adding query rewriting, the same question's similarity rises to 0.3536 and correctly hits the "expense reimbursement" entry. All three questions hit the correct entry, and the script's self-check outputs SELF-CHECK PASSED.