Add semantic cache support using ChromaDB

This commit is contained in:
2026-05-07 20:53:28 +02:00
parent 667553ee9d
commit b37aaeb4d4
10 changed files with 1343 additions and 256 deletions
+11
View File
@@ -141,6 +141,17 @@ class OllamaSettingTab extends PluginSettingTab {
}
})
);
new Setting(container)
.setName('Enable Semantic Cache')
.setDesc('Cache responses semantically to speed up repeated queries')
.addToggle((toggle) =>
toggle.setValue(this.plugin.settings.cacheConfig.enabled).onChange(async (value) => {
this.plugin.settings.cacheConfig.enabled = value;
await this.plugin.saveSettings();
this.plugin.notifyChatViews();
})
);
}
hide(): void {