Add semantic cache support using ChromaDB
This commit is contained in:
@@ -90,12 +90,20 @@ export class PathValidationError extends OllamaError {
|
||||
// Plugin Configuration
|
||||
// ============================================================
|
||||
|
||||
export interface CacheConfig {
|
||||
enabled: boolean;
|
||||
similarityThreshold: number;
|
||||
collectionName: string;
|
||||
embeddingModel: string;
|
||||
}
|
||||
|
||||
export interface PluginSettings {
|
||||
ollamaUrl: string;
|
||||
model: string;
|
||||
vaultSearchLimit: number;
|
||||
maxMessageHistory: number;
|
||||
lastIndexTime: number;
|
||||
cacheConfig: CacheConfig;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user