spring-projects / spring-projects/spring-ai

CHAT_MEMORY_RETRIEVE_SIZE_KEY is not effective.

Open
#3,049 0 comments 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.