Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Agent ExeSQL node execution error #4281

Closed
1 task done
TeslaZY opened this issue Dec 28, 2024 · 0 comments
Closed
1 task done

[Bug]: Agent ExeSQL node execution error #4281

TeslaZY opened this issue Dec 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TeslaZY
Copy link
Contributor

TeslaZY commented Dec 28, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

de4132c

RAGFlow image version

v0.15.1-22-ge53b064b full

Other environment information

No response

Actual behavior

Sometimes sql execution errors will occur, caused by sql in markdown format. Most llm returns results in markdown format as ```sql query ```

Expected behavior

No response

Steps to reproduce

1. Build a Text2SQL agent
2. Ask some questions
3. Sometimes sql execution errors will occur, caused by sql in markdown format

Additional information

No response

@TeslaZY TeslaZY added the bug Something isn't working label Dec 28, 2024
KevinHuSh pushed a commit that referenced this issue Dec 30, 2024
Fix some bugs in text2sql.(#4279)(#4281)

### What problem does this PR solve?
- The incorrect results in parsing CSV files of the QA knowledge base in
the text2sql scenario. Process CSV files using the csv library. Decouple
CSV parsing from TXT parsing
- Most llm return results in markdown format ```sql query ```, Fix
execution error caused by LLM output SQLmarkdown format.### Type of
change
- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants