tencentmusic / supersonic

SuperSonic is the next-generation BI+AI platform that combines Chat BI (powered by LLM) and Headless BI (powered by semantic layer) paradigms.
Other
2.13k stars 363 forks source link

[Enhancement] few-shot示例保留向量查询最佳匹配结果 #1417

Open chsumu opened 2 months ago

chsumu commented 2 months ago

Search before asking

Description

在获取few-shot示例时,默认查询 10 条,包含两部分(memory_$id 与 text2dsl_agent_collection),默认保留 3 条,大概率丢失最佳匹配结果,建议增加排序,保留最佳匹配

image

Solution

No response

Are you willing to submit PR?

Code of Conduct

jerryjzhang commented 2 months ago

这里其实在recallExemplars的时候,就会优先memory,如果达不到最小few shot数量的情况下才会去补充系统exemplar