这是indexloc提供的服务,不要输入任何密码
Skip to content

[CHORE]: Improve RAG retention via history context #1240

@timothycarambat

Description

@timothycarambat

What would you like to see?

When we send a chat like What is AnythingLLM the system will find relevant context, if any and append it under the system prompt.

{SYSTEM}
<context>
<context>
# No history
<user prompt>

However, on follow up request, where we may not get a vector search result due to ambiguity like tell me some features
We will get a flow like

{SYSTEM}
# NO CONTEXT!
<reply from prompt 1 from LLM>
<user prompt>

This puts 100% of the response result on the <reply from prompt 1 from LLM> response where we could leverage the previous citations in the history to help offload the responsibility and scope of the answering.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions