Skip to content

Validate and parameterize Neo4j chat memory labels#6635

Closed
sobychacko wants to merge 1 commit into
spring-projects:mainfrom
sobychacko:neo4j-chat-memory-label-validation
Closed

Validate and parameterize Neo4j chat memory labels#6635
sobychacko wants to merge 1 commit into
spring-projects:mainfrom
sobychacko:neo4j-chat-memory-label-validation

Conversation

@sobychacko

Copy link
Copy Markdown
Contributor

Complete the label-hardening (originally done via See 1c06d7c) in Neo4jChatMemoryRepository by converting deleteByConversationId() to use dynamic label parameter syntax ($($label)) consistently with the other query methods.

Add label validation to Neo4jChatMemoryRepositoryConfig to ensure all configured labels are valid Neo4j identifiers before they are used in index creation statements, throwing IllegalArgumentException at startup if an invalid value is supplied.

Complete the label-hardening (originally done via  See 1c06d7c)
in Neo4jChatMemoryRepository by converting deleteByConversationId()
to use dynamic label parameter syntax `($($label))` consistently
with the other query methods.

Add label validation to Neo4jChatMemoryRepositoryConfig to ensure
all configured labels are valid Neo4j identifiers before they are
used in index creation statements, throwing IllegalArgumentException
at startup if an invalid value is supplied.

Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
@sobychacko sobychacko added this to the 2.0.1 milestone Jul 16, 2026
@ilayaperumalg ilayaperumalg self-assigned this Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants