Skip to content
Discussion options

You must be logged in to vote

hi @JohnGalt1717 we've made it easier in the latest version 0.20, e.g.

var results = await memory.SearchSummariesAsync(filter: MemoryFilters.ByDocument("doc1"));

That will work with any pipeline as long as the summarization step is included. Here's a complete example: https://github.com/microsoft/kernel-memory/blob/main/examples/106-dotnet-retrieve-synthetics/Program.cs

You can leverage the same feature if you have custom handlers that generate synthetic memories (the summary is a synthetic memory). For instance, assume you have a TranslationHandler that translates documents, adding the "translation" synthetic tag (AddSyntheticTag("translation")), you can then retrieve those translations …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dluc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
1. Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #194 on June 04, 2024 19:48.