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.28k stars 1.76k forks source link

[Doc][Module Name] I want to embedding some specified additional content, but it is not in the database table. What files need to be modified? #1773

Open chuangzhidan opened 1 month ago

chuangzhidan commented 1 month ago

Search before asking

Description

No response

Documentation Links

No response

Are you willing to submit PR?

Aries-ckt commented 1 month ago

you can update in DBSummary

chuangzhidan commented 1 month ago

you can update in DBSummary 这个,不知道怎么有关系 class DBSummary: """Database summary class."""

def __init__(self, name: str):
    """Create a new DBSummary."""
    self.name = name
    self.summary: Optional[str] = None
    self.tables: Iterable[str] = []
    self.metadata: Optional[str] = None

def get_summary(self) -> Optional[str]:
    """Get the summary."""
    return self.summary

?

dusx1981 commented 1 month ago

我在给我们自己的产品,做类似的功能,分了几步,仅供参考: 1:添加编辑数据界面 2:添加写入数据后台接口 3:数据写入向量库 4:相关性搜索中添加查询逻辑

dusx1981 commented 1 month ago

另外,wanna 中的 问题-SQL 对,对提升 nl2sql 的准确性应该有帮助, 建议 DB-GPT 考虑引入

github-actions[bot] commented 5 days ago

This issue has been marked as stale, because it has been over 30 days without any activity.