Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/google/adk/memory/in_memory_memory_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _user_key(app_name: str, user_id: str) -> str:

def _extract_words_lower(text: str) -> set[str]:
"""Extracts words from a string and converts them to lowercase."""
return set([word.lower() for word in re.findall(r'[A-Za-z]+', text)])
return set([word.lower() for word in re.findall(r'\w+', text, re.UNICODE)])


class InMemoryMemoryService(BaseMemoryService):
Expand Down
Loading