Originally created by @meetzuber on GitHub (Aug 9, 2024).
Bug Report
When using one chat session with RAG and ask multiple questions context size keep on increasing and after some time context size exceed above the limit of model max context size and I get error
Installation Method
using docker compose for installation.
Environment
Open WebUI Version: v0.3.11
Expected Behavior:
there should be an option to choose how many chat history will be passed with user message and older chat history should not be send with user message.
Actual Behavior:
It is sending all user histry which is exceeding context size and getting error.
Description
Reproduction Details
Steps to Reproduce:
try to use RAG with large documents and generate long answers. and keep on asking question. user models with is having limited context size like 4096 to get this error quickly.
Originally created by @meetzuber on GitHub (Aug 9, 2024).
# Bug Report
When using one chat session with RAG and ask multiple questions context size keep on increasing and after some time context size exceed above the limit of model max context size and I get error
## Installation Method
using docker compose for installation.
## Environment
- Open WebUI Version: v0.3.11
## Expected Behavior:
there should be an option to choose how many chat history will be passed with user message and older chat history should not be send with user message.
## Actual Behavior:
It is sending all user histry which is exceeding context size and getting error.
## Description
## Reproduction Details
**Steps to Reproduce:**
try to use RAG with large documents and generate long answers. and keep on asking question. user models with is having limited context size like 4096 to get this error quickly.

Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @meetzuber on GitHub (Aug 9, 2024).
Bug Report
When using one chat session with RAG and ask multiple questions context size keep on increasing and after some time context size exceed above the limit of model max context size and I get error
Installation Method
using docker compose for installation.
Environment
Expected Behavior:
there should be an option to choose how many chat history will be passed with user message and older chat history should not be send with user message.
Actual Behavior:
It is sending all user histry which is exceeding context size and getting error.
Description
Reproduction Details
Steps to Reproduce:
try to use RAG with large documents and generate long answers. and keep on asking question. user models with is having limited context size like 4096 to get this error quickly.