spring-projects / spring-projects/spring-ai
RAG causes memory loss in large models
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Expected Behavior
rag should not affect the memory function of the large model, so that my question is inaccurate
Current Behavior
After implementing rag, the memory function of the large model is weakened or even lost, but I did turn on the chat memory function, which is normal in interfaces without rag
Context
For example, I turned on 10 memories, after asking three or four sentences, after asking it to list the questions I asked before, it didn't know at all, if you go directly to the big model Q&A, don't go to rag, there is no problem with memory, I guess it is that every request will retrieve the vector library and take out the data to stuff the large model, too much content leads to the weakening of memory, but I don't know if this is the case. Has anyone ever encountered this situation?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported behavior with RAG and chat memory enabled, using the example of asking the model to recall earlier questions. Compare the result with direct large-model Q&A without RAG; done means identifying the cause and preserving memory while RAG is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100