eino
eino copied to clipboard
能否在每次retriever检索之前,加上一个option,使用大模型对用户的字符串进行进一步优化重写,查询增强
加上一个WithRewriterQuery(model *ChatModel),自动调用用户使用的模型,对查询语句进行重写,使之更规范化
https://github.com/cloudwego/eino/tree/main/flow/retriever 这里提供了多种 retriever 增强模式,可以看下是否有用, 如果你有新的想法也欢迎直接提 pr~