mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix typo and error (#5479)
### What problem does this PR solve? _Briefly describe what this PR aims to solve. Include background context that will help reviewers understand the purpose of the PR._ ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] Documentation Update --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -5,7 +5,7 @@ slug: /text2sql_agent
|
||||
|
||||
# Create a Text2SQL agent
|
||||
|
||||
Build a Text2SQL agent leverging RAGFlow's RAG capabilities. Contributed by @TeslaZY.
|
||||
Build a Text2SQL agent leveraging RAGFlow's RAG capabilities. Contributed by @TeslaZY.
|
||||
|
||||
## Scenario
|
||||
|
||||
@ -343,7 +343,7 @@ Synonyms: laptop computer,laptop pc
|
||||
3. Create a Retrieval node and name it Thesaurus; create an ExeSQL node.
|
||||
4. Configure the Q->SQL, DDL, DB_Description, and TextSQL_Thesaurus knowledge bases. Please refer to the following:
|
||||

|
||||
5. Configure the Generate node, named LLM‘s prompt:
|
||||
5. Configure the Generate node, named LLM's prompt:
|
||||
- Add this content to the prompt provided by the template to provide the thesaurus content to the LLM:
|
||||
```plaintext
|
||||
## You may use the following Thesaurus statements. For example, what I ask is from Synonyms, you must use Standard noun to generate SQL. Use responses to past questions also to guide you: {sql_thesaurus}.
|
||||
|
||||
Reference in New Issue
Block a user