spring-projects / spring-projects/spring-ai

Add file-based ChatMemoryStore implementation

Open
#3,183 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

chat memory enhancement
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.

Expected Behavior

I've seen other mcp memory stores in python and npm that have a local file-based memory store that is useful for testing and for local development as well as possible other uses. I'm thinking we store memory as a JSON object and have it auto-configure in the application.properties or application.yml.

Current Behavior

Currently we only have in-memory, jdbc, neo4j, and possibly soon a mongo memory. Having the option to supply a json file isn't included directly.

Context

We could extend the in-memory chat memory to allow for a file to be picked up when it initializes, but it would be nice to have a way to combine the two in a local file system method that uses auto-config.

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 reviewing the existing in-memory, JDBC, Neo4j, and possible Mongo chat memory store implementations, then inspect how application.properties or application.yml configures them. Define the file-based store's JSON persistence, initialization behavior, interaction with in-memory memory, and auto-configuration before implementing it; done includes coverage for persistence and configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.