kernel-memory icon indicating copy to clipboard operation
kernel-memory copied to clipboard

MemoryPlugin does not support 'OR' for defaultRetrievalTags

Open pyliakm opened this issue 1 year ago • 0 comments

Context / Scenario

I am using MemoryPlugin with MemoryServerless

The problem

Current statement: kernel.ImportPluginFromObject(new MemoryPlugin(memoryConnector, waitForIngestionToComplete: true, defaultRetrievalTags: MemoryFilters.ByTag("client", "client1").ByTag("project", "project1")), "memory") it supports "AND" only for tags: ("client", "client1") "AND" ("project", "project1")

Proposed solution

Can you add supports "OR" like in AskAsync for MemoryServerless, see doc https://microsoft.github.io/kernel-memory/security/filters#using-or-logic

Importance

I cannot use Kernel Memory without this

pyliakm avatar Mar 01 '24 20:03 pyliakm