Constructor SqliteSemanticMemory
- Namespace
- IntentSharp.Memory
- Assembly
- IntentSharp.dll
SqliteSemanticMemory(string, IAIProvider?, ILogger?)
Opens the database file, creating the file and its table when they are missing. Without an embedding provider, or with one that does not support embeddings, recall uses word overlap only.
public SqliteSemanticMemory(string path, IAIProvider? embeddingProvider = null, ILogger? logger = null)
Parameters
pathstringDatabase file path. Created when missing.
embeddingProviderIAIProviderProvider used to embed intents, so recall can match by meaning.
loggerILoggerReceives a
Warningfor every embedding that fails.
Exceptions
- ArgumentException
pathis null, empty or white space.