Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
timothycarambat opened this issue Apr 30, 2024 · 0 comments
Open

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

timothycarambat opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@timothycarambat
Copy link
Member

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.

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

No branches or pull requests

1 participant