diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html index 2fafde15..67004923 100644 --- a/src/khoj/interface/web/chat.html +++ b/src/khoj/interface/web/chat.html @@ -1070,31 +1070,6 @@ To get started, just start typing below. You can also type / to see a list of co }); } - function clearConversationHistory() { - let chatInput = document.getElementById("chat-input"); - let originalPlaceholder = chatInput.placeholder; - let chatBody = document.getElementById("chat-body"); - let conversationId = chatBody.dataset.conversationId; - - let deleteURL = `/api/chat/history?client=web`; - if (conversationId) { - deleteURL += `&conversation_id=${conversationId}`; - } - - fetch(deleteURL , { method: "DELETE" }) - .then(response => response.ok ? response.json() : Promise.reject(response)) - .then(data => { - chatBody.innerHTML = ""; - chatBody.dataset.conversationId = ""; - chatBody.dataset.conversationTitle = ""; - loadChat(); - flashStatusInChatInput("🗑 Cleared conversation history"); - }) - .catch(err => { - flashStatusInChatInput("⛔️ Failed to clear conversation history"); - }); - } - let sendMessageTimeout; let mediaRecorder; function speechToText(event) { diff --git a/src/khoj/processor/conversation/prompts.py b/src/khoj/processor/conversation/prompts.py index e2c21c54..4ae0afe6 100644 --- a/src/khoj/processor/conversation/prompts.py +++ b/src/khoj/processor/conversation/prompts.py @@ -296,7 +296,8 @@ extract_relevant_information = PromptTemplate.from_template( """ Target Query: {query} -Web Pages: {corpus} +Web Pages: +{corpus} Collate the relevant information from the website to answer the target query. """.strip()