Skip to content

[Bug] [Chat Data] AI模型不理解数据库表结构的定义,导致生成的sql不准确。总是回复我提供的信息不足查询数据,如何优化呢??? #2670

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

Open
4 of 15 tasks
Kevinyjh123 opened this issue May 6, 2025 · 0 comments
Labels
bug Something isn't working Waiting for reply

Comments

@Kevinyjh123
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

  • Chat Data
  • Chat Excel
  • Chat DB
  • Chat Knowledge
  • Model Management
  • Dashboard
  • Plugins

Installation Information

Device information

Models information

LLM:deepseek-ai/DeepSeek-R1

What happened

The AI model does not understand the definition of database table structure, resulting in inaccurate generated SQL. How can I optimize if the information I provide is insufficient for querying data???

What you expected to happen

I think the AI model did not understand the definition of the database table, which led to query errors. The AI model replied to me with insufficient information. How can I solve this problem?

How to reproduce

Enable the model to understand the definition of database tables and generate accurate SQL statements

Additional context

Image

Image

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@Kevinyjh123 Kevinyjh123 added bug Something isn't working Waiting for reply labels May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Waiting for reply
Projects
None yet
Development

No branches or pull requests

1 participant