Skip to content

.Net: Memory Plugin (SQLite) Recall function can not find relevant memory if search text is not English #6593

@atiq-bs23

Description

@atiq-bs23

Describe the bug
Using SQLite memory plugin, recall function can not find any relevant memory if search text is not in English language, even if there is an exact match. For my case, I was searching with Thai language.

To Reproduce
Steps to reproduce the behavior:

  1. Use SQLite memory plugin.
  2. Store Thai language data in Metadata.
  3. Call Recall function to find relevant memory with Thai language text.
  4. You will not get any relevant memory.

Expected behavior
After search, it should return data as there is an exact match

Screenshots
image

Platform

  • OS: Windows 11
  • IDE: Visual Studio Enterprise 2022 (64-bit) - Current Version 17.9.6
  • Language: C#
  • Source: Microsoft.SemanticKernel - 1.9.0
    Microsoft.SemanticKernel.Connectors.Sqlite - 1.6.3-alpha
    Microsoft.SemanticKernel.Plugins.Memory - 1.6.3-alpha

Code
var result = await _kernel.InvokeAsync(_memoryPlugin["Recall"], new KernelArguments() { [TextMemoryPlugin.InputParam] = "สำหรับรายละเอียด", [TextMemoryPlugin.CollectionParam] = memoryCollectionName, [TextMemoryPlugin.LimitParam] = numberOfMemories, [TextMemoryPlugin.RelevanceParam] = "0.40", });

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions