SemanticTextMemory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implementation of ISemanticTextMemory. Provides methods to save, retrieve, and search for text information in a semantic memory store.
public sealed class SemanticTextMemory : Microsoft.SemanticKernel.Memory.ISemanticTextMemory
type SemanticTextMemory = class
interface ISemanticTextMemory
Public NotInheritable Class SemanticTextMemory
Implements ISemanticTextMemory
- Inheritance
-
SemanticTextMemory
- Implements
Constructors
SemanticTextMemory(IMemoryStore, ITextEmbeddingGenerationService) |
Initializes a new instance of the SemanticTextMemory class. |
Methods
GetAsync(String, String, Boolean, Kernel, CancellationToken) |
Fetch a memory by key. For local memories the key is the "id" used when saving the record. For external reference, the key is the "URI" used when saving the record. |
GetCollectionsAsync(Kernel, CancellationToken) |
Gets a group of all available collection names. |
RemoveAsync(String, String, Kernel, CancellationToken) |
Remove a memory by key. For local memories the key is the "id" used when saving the record. For external reference, the key is the "URI" used when saving the record. |
SaveInformationAsync(String, String, String, String, String, Kernel, CancellationToken) |
Save some information into the semantic memory, keeping a copy of the source information. |
SaveReferenceAsync(String, String, String, String, String, String, Kernel, CancellationToken) |
Save some information into the semantic memory, keeping only a reference to the source information. |
SearchAsync(String, String, Int32, Double, Boolean, Kernel, CancellationToken) |
Find some information in memory |