spring-projects / spring-projects/spring-ai

RAG causes memory loss in large models

Open
#4,128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.