danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
18.47k stars 3.11k forks source link

Enhancement: Toggle between rag and full context for attached documents #2372

Closed Trapper4888 closed 6 months ago

Trapper4888 commented 6 months ago

What features would you like to see added?

When using long context models, it would be nice to be able to pass pdf or txt files with the intent to include all of it into the context.

More details

  1. Add some rag/full toggle to the attached document(s).
  2. Furthermore, it would be pretty neat to have an option to include a document to a precise message OR to a whole conversation.
    • For the precise message it would be useful in cases I ask a question like "according to this user manual, what is the best..."
    • For the whole conversation, it would act kind of a system message (but I don't think it sould be included in the system message since some models don't support it) containing "memory". It would be even better to be able to include those in presets. This would allow me for example to have:
      • A "Ask LibreChat documentation" preset, using Claude 3 Haiku and including "libre-chat-whole-doc.md" as a conversation-wide "full" document context.
      • The same using Claude 3 Opus, including "libre-chat-whole-doc.md" as a conversation-wide "rag" document context. (which is the current functionality if I would add "libre-chat-whole-doc.md" to any message and enable "Resend Files")

Which components are impacted by your request?

General, UI, Other

Pictures

No response

Code of Conduct

Trapper4888 commented 6 months ago

"Furthermore, it would be pretty neat to have an option to include a document to a precise message OR to a whole conversation." this second section might deserve its own issue, since it would be interesting with the current default rag approach.