spring-projects / spring-projects/spring-ai
CHAT_MEMORY_RETRIEVE_SIZE_KEY is not effective.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Who can explain the function of the parameter CHAT_MEMORY_RETRIEVE_SIZE_KEY? Is it used to control the number of historical conversations that the AI can see? If so, it is not working.
.advisors(memoryAdvisor -> memoryAdvisor
.param(CHAT_MEMORY_CONVERSATION_ID_KEY, chatId)
.param(CHAT_MEMORY_RETRIEVE_SIZE_KEY, 3))
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 at the advisors(memoryAdvisor...) entry point and trace how CHAT_MEMORY_CONVERSATION_ID_KEY and CHAT_MEMORY_RETRIEVE_SIZE_KEY are consumed. Compare the configured value of 3 with the historical conversations supplied to the AI. Done means the parameter's intended behavior is established and retrieval matches that behavior, or the defect is precisely identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- ai
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100