eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.85k stars 1.86k forks source link

[Doc][Module Name] Documentation bug or improvement #2154

Open lll-Dragon opened 4 days ago

lll-Dragon commented 4 days ago

Search before asking

Description

默认返回的结果数量限制为50,如何取消限制

Documentation Links

No response

Are you willing to submit PR?

Aries-ckt commented 3 days ago

50 means?

lll-Dragon commented 3 days ago

使用Chat Data查询数据库中表的信息时,只返回50条信息,SQL语句后面会默认加一句LIMIT 50,限制了返回的结果最多为50条。

lll-Dragon commented 3 days ago

SELECT * FROM scores LIMIT 50;

Aries-ckt commented 2 days ago

dbgpt/app/scene/chat_db/auto_execute/chat.py

self.top_k: int = 50