Skip to content

Fix: InMemoryMemoryService search with non-Latin text#5508

Closed
9chait9 wants to merge 1 commit into
google:mainfrom
9chait9:fix/issue-5501
Closed

Fix: InMemoryMemoryService search with non-Latin text#5508
9chait9 wants to merge 1 commit into
google:mainfrom
9chait9:fix/issue-5501

Conversation

@9chait9
Copy link
Copy Markdown

@9chait9 9chait9 commented Apr 27, 2026

Fixes #5501

This PR addresses issue #5501 by modifying the _extract_words_lower function in src/google/adk/memory/in_memory_memory_service.py. The regular expression used for word extraction has been updated from r'[A-Za-z]+' to r'\w+' with the re.UNICODE flag, enabling correct recognition and extraction of words from non-Latin scripts (e.g., Japanese, Chinese, Korean). This ensures that InMemoryMemoryService.search_memory can now accurately search for and retrieve content in these languages.

@adk-bot adk-bot added the services [Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc label Apr 27, 2026
@adk-bot
Copy link
Copy Markdown
Collaborator

adk-bot commented Apr 27, 2026

Response from ADK Triaging Agent

Hello @9chait9, thank you for creating this PR!

To help reviewers to review your PR more efficiently, could you please include a testing plan section in your PR to describe how you tested it? In addition, could you please provide logs or screenshot after the fix is applied? Thanks!

@9chait9 9chait9 closed this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

services [Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

InMemoryMemoryService search doesn't work with non-Latin text (Japanese, CJK, etc.)

2 participants