Skip to content

fix: 1、对数据库查询结果进行摘要放入提示词,防止大量数据情况下超过大模型限制;2、全量结果缓存存储,由大模型按需调取.#446

Open
hebo824 wants to merge 1 commit intospring-ai-alibaba:mainfrom
hebo824:main

Conversation

@hebo824
Copy link

@hebo824 hebo824 commented Feb 23, 2026

Describe what this PR does / why we need it

如果查询到的源数据量比较大,生成报告时大模型会报错

Does this pull request fix one issue?

Fixes #415

Describe how you did it

  • 大量数据查询结果,以摘要形式放在提示词提交给大模型
  • 全量数据进行缓存
  • 提示词中按需调取缓存中的全量数据

Describe how to verify it

查询到比较大量的源数据,模型将不再出错

Special notes for reviews

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 如果查询到的源数据量比较大,生成报告时大模型会报错

1 participant