diff --git a/src/interface/obsidian/src/chat_modal.ts b/src/interface/obsidian/src/chat_modal.ts index cea1ee5a..a7f6eb18 100644 --- a/src/interface/obsidian/src/chat_modal.ts +++ b/src/interface/obsidian/src/chat_modal.ts @@ -158,7 +158,7 @@ export class KhojChatModal extends Modal { // Get chat response from Khoj backend let encodedQuery = encodeURIComponent(query); - let chatUrl = `${this.setting.khojUrl}/api/chat?q=${encodedQuery}&client=obsidian`; + let chatUrl = `${this.setting.khojUrl}/api/chat?q=${encodedQuery}&n=${this.setting.resultsCount}&client=obsidian`; let responseElement = this.createKhojResponseDiv(); // Temporary status message to indicate that Khoj is thinking diff --git a/src/interface/obsidian/src/settings.ts b/src/interface/obsidian/src/settings.ts index bc85fe7d..52cd0019 100644 --- a/src/interface/obsidian/src/settings.ts +++ b/src/interface/obsidian/src/settings.ts @@ -54,7 +54,7 @@ export class KhojSettingTab extends PluginSettingTab { })); new Setting(containerEl) .setName('Results Count') - .setDesc('The number of search results to show') + .setDesc('The number of results to show in search and use for chat') .addSlider(slider => slider .setLimits(1, 10, 1) .setValue(this.plugin.settings.resultsCount)