Commit graph

  • c8c0cfd10e Add Chat features, setup and usage to Khoj Obsidian plugin Readme Debanjum Singh Solanky 2023-03-30 00:32:24 +07:00
  • 7ecae224e7 Configure OpenAI API Key from the Khoj plugin setting in Obsidian Debanjum Singh Solanky 2023-03-29 23:42:17 +07:00
  • 3d616c8d65 Use Obsidian font sizes. Improve input field, reference indexing Debanjum Singh Solanky 2023-03-29 22:12:11 +07:00
  • 23bd737f6b Use chat input element to send message on Enter. No send button required Debanjum Singh Solanky 2023-03-29 17:47:04 +07:00
  • 81e98c3079 Scroll to bottom of modal on open and message send Debanjum Singh Solanky 2023-03-29 12:41:33 +07:00
  • 59ff1ae27f Use obsidian theme colors for bg, text. Restrict css namespace via prefix Debanjum Singh Solanky 2023-03-28 18:49:28 +07:00
  • 001ac7b5eb Style Obsidian Chat Modal like Khoj Chat Web Interface Debanjum Singh Solanky 2023-03-28 18:04:27 +07:00
  • 112f388ada Render references next to chat responses by khoj in chat modal Debanjum Singh Solanky 2023-03-28 15:35:06 +07:00
  • 1d3d949962 Render conversation logs on page load Debanjum Singh Solanky 2023-03-23 08:16:54 +04:00
  • cd46a17e5f Add Khoj Chat Modal, Command in Khoj Obsidian to Chat using API Debanjum Singh Solanky 2023-03-23 05:31:26 +04:00
  • c0972e09e6 Rename KhojModal to KhojSearchModal, a more specific name for it Debanjum Singh Solanky 2023-03-23 05:30:11 +04:00
  • 64fff1d372 Release Khoj version 0.5.0 0.5.0 Debanjum Singh Solanky 2023-03-28 03:34:07 +07:00
  • 7478d08803 Update main readme to mention chat features Debanjum Singh Solanky 2023-03-27 20:51:27 +07:00
  • fc218508f9 Update khoj.el docs and Emacs Readme for chat, simplified setup Debanjum Singh Solanky 2023-03-27 20:47:08 +07:00
  • 87090531da
    Install, Start and Configure Khoj Server from Emacs Debanjum 2023-03-27 18:49:43 +07:00
  • 83a7ccd729 Fix docstrings and method ordering in khoj.el Debanjum Singh Solanky 2023-03-27 18:33:09 +07:00
  • 5c2327ee4f Configure org directories to index from khoj.el Debanjum Singh Solanky 2023-03-27 18:30:53 +07:00
  • 6e8a40906d Allow disabling automatic server setup. Fix server start vs ready logic Debanjum Singh Solanky 2023-03-27 17:53:08 +07:00
  • 526a927bce Fix org entry extraction test, variable prefixed with khoj in khoj.el Debanjum Singh Solanky 2023-03-27 16:42:38 +07:00
  • 7243059507 Track index update asynchronously via moon phase progressbar in khoj.el Debanjum Singh Solanky 2023-03-27 05:52:32 +07:00
  • 8a9055f918 Restrict server messages show in echo area to main server files Debanjum Singh Solanky 2023-03-27 04:46:31 +07:00
  • ae535a06eb Configure Khoj chat using khoj.el by setting OpenAI API key in Emacs Debanjum Singh Solanky 2023-03-27 04:38:17 +07:00
  • 36b17d4ae0 Generalize the directory from config extraction elisp method Debanjum Singh Solanky 2023-03-27 03:44:03 +07:00
  • 924424c754 Throw actionable exceptions when content types or chat not configured Debanjum Singh Solanky 2023-03-27 02:08:21 +07:00
  • 359a2cacef Fix khoj--server-running to work with unconfigured or external server Debanjum Singh Solanky 2023-03-27 01:29:58 +07:00
  • d7fb9a596e Auto configure server before loading khoj-menu Debanjum Singh Solanky 2023-03-27 01:16:05 +07:00
  • 8a21aff438 Make khoj.el server start, stop, restart, setup methods interactive Debanjum Singh Solanky 2023-03-27 01:11:43 +07:00
  • cb40a96c85 Index configured org files from khoj.el Debanjum Singh Solanky 2023-03-26 18:44:10 +07:00
  • 50760acc37 Wait for Khoj server to get ready before opening khoj.el transient menu Debanjum Singh Solanky 2023-03-26 11:56:04 +07:00
  • 82eb4bfd0d Setup Khoj server on opening khoj from with Emacs Debanjum Singh Solanky 2023-03-26 10:12:06 +07:00
  • 99d19dcf43 Start Khoj server from Emacs using khoj.el Debanjum Singh Solanky 2023-03-26 09:38:46 +07:00
  • c92d79118a Install Khoj server from Emacs using khoj.el Debanjum Singh Solanky 2023-03-26 08:41:51 +07:00
  • e281a498b4 Style Khoj search org buffer via elisp instead of in-buffer settings Debanjum Singh Solanky 2023-03-26 06:34:18 +07:00
  • 4f655d20ae Style Khoj chat directly via elisp instead of via in-buffer settings Debanjum Singh Solanky 2023-03-26 06:03:30 +07:00
  • f6ff7b1beb Render foonote reference links as superscript for Khoj Chat on Emacs Debanjum Singh Solanky 2023-03-26 05:28:44 +07:00
  • 285a2b86d2 Use aiohttp version 3.8.4 as 4.x breaks docker image build Debanjum Singh Solanky 2023-03-26 05:10:53 +07:00
  • 67c850a4ac Add retry logic to OpenAI API queries to increase Chat tenacity Debanjum Singh Solanky 2023-03-25 12:36:51 +07:00
  • 0aebf624fc
    Improve Khoj Chat in Emacs, Server Debanjum 2023-03-25 05:49:27 +07:00
  • ff846f05c5 Clean-up khoj.el based on linting helpers and manual review Debanjum Singh Solanky 2023-03-25 05:28:13 +07:00
  • 7e36f421f9 Truncate message logs to below max supported prompt size by model Debanjum Singh Solanky 2023-03-25 04:37:55 +07:00
  • 4725416fbd Use shortcut keybindings in buffer to ease sending messages to Khoj Debanjum Singh Solanky 2023-03-25 01:43:11 +07:00
  • 508b2176b7 Update Chat API, Logs, Interfaces to store, use references as list Debanjum Singh Solanky 2023-03-24 21:55:22 +07:00
  • b08745b541 Keep chat messages at 1 empty line visible distance in khoj.el Debanjum Singh Solanky 2023-03-24 21:24:42 +07:00
  • 27217a330d Time chat API sub-components for performance analysis Debanjum Singh Solanky 2023-03-24 20:39:41 +07:00
  • 5e9558d39d Stylize references shown as footnote links in chat messages Debanjum Singh Solanky 2023-03-24 17:51:39 +07:00
  • cf28f104c7 Register separate timestamps for user query and response by Khoj Chat Debanjum Singh Solanky 2023-03-24 15:27:30 +07:00
  • 93e2aff786 Add references as org footnotes instead of links Debanjum Singh Solanky 2023-03-24 14:25:00 +07:00
  • d78454d4ad Load Khoj Chat buffer before asking for query to provide context Debanjum Singh Solanky 2023-03-24 13:43:46 +07:00
  • 4070d13a96
    Create Khoj Chat Interface in Emacs Debanjum 2023-03-22 16:32:40 -06:00
  • 863933daaa Resolve build issues found by melpazoid Debanjum Singh Solanky 2023-03-23 02:25:34 +04:00
  • e9ca04af0d Require dash, org to run ERT tests for khoj.el Debanjum Singh Solanky 2023-03-23 01:46:26 +04:00
  • 06df394d6c Style chat messages as org-mode entries in Emacs Debanjum Singh Solanky 2023-03-22 12:00:43 -06:00
  • 364e6c11af Render chat history from API in chat buffer on first run Debanjum Singh Solanky 2023-03-22 11:08:17 -06:00
  • 36b52fdd0a Properly escape reference links before rendering Debanjum Singh Solanky 2023-03-22 02:13:00 -06:00
  • 72f63a6ef7 Add basic chat interface for Khoj on Emacs Debanjum Singh Solanky 2023-03-22 01:13:17 -06:00
  • e4d67694e1 Add search to method, variable names meant for khoj search in khoj.el Debanjum Singh Solanky 2023-03-21 21:01:14 -06:00
  • 98e5ea4940 Fix name of default encoder to replace in multi-lingual model setup docs Debanjum Singh Solanky 2023-03-21 20:38:17 -06:00
  • 2f6284872d Mention Khoj needs Python version 3.10 or lower in docs Debanjum Singh Solanky 2023-03-20 15:18:19 -06:00
  • a9b81975f2 Fix encoder model name to configure multilingual search in Readme Debanjum Singh Solanky 2023-03-19 17:23:49 -06:00
  • b351cfb8a0
    Add Search Actor to Improve Querying Notes for Khoj Chat Debanjum 2023-03-18 18:02:12 -06:00
  • 601ff2541b Revert to using GPT to extract search queries from users message Debanjum Singh Solanky 2023-03-18 04:06:14 -06:00
  • e28526bbc9 Extract search queries from users message using ChatGPT as Search Actor Debanjum Singh Solanky 2023-03-18 04:06:06 -06:00
  • 939d7731da Fix-up Search Actor GPT's response for decoding it as valid JSON Debanjum Singh Solanky 2023-03-18 03:30:30 -06:00
  • f63fd0995e Pass more search results as context to Chat Actor to improve inference Debanjum Singh Solanky 2023-03-18 03:25:59 -06:00
  • 10836dedee Search should return user message if GPT response is not valid JSON Debanjum Singh Solanky 2023-03-17 20:29:33 -06:00
  • 08f5fb315f Add answers to context for Search Actor to generate relevant queries Debanjum Singh Solanky 2023-03-17 19:53:17 -06:00
  • f09bdd515b Expect Chat Director can extract relative dates using new Search Actor Debanjum Singh Solanky 2023-03-16 14:54:56 -06:00
  • 36c7389b46 Test Search Actor generating search query from Chat History Debanjum Singh Solanky 2023-03-16 18:14:41 -06:00
  • 2600cc9d4d Test Search Actor extracting relative dates & multiple questions Debanjum Singh Solanky 2023-03-16 14:49:35 -06:00
  • 45cb510421 Loosen search results score thresold used by chat for more context Debanjum Singh Solanky 2023-03-16 15:39:26 -06:00
  • d871e04a81 Use past user messages, inferred questions as context to extract questions Debanjum Singh Solanky 2023-03-16 15:14:47 -06:00
  • 1a5d1130f4 Generate search queries from message to answer users chat questions Debanjum Singh Solanky 2023-03-12 18:19:54 -06:00
  • d0f14d3f85 Test usage of = in date filter queries Debanjum Singh Solanky 2023-03-16 14:51:40 -06:00
  • dfb277ee37 Set skipif at module level if OpenAI API key not set for chat tests Debanjum Singh Solanky 2023-03-16 12:20:33 -06:00
  • e75e13d788
    Create Tests to Measure Chat Quality, Capabilities Debanjum 2023-03-16 11:30:52 -06:00
  • 4e15b4e411 Create test notes dataset for chat testing Debanjum Singh Solanky 2023-03-15 18:03:05 -06:00
  • 1b4d562700 Test Chat Director Capabilities: Answer from notes, chat history etc Debanjum Singh Solanky 2023-03-15 14:52:59 -06:00
  • b6d63137f1 Setup Pytest fixture for conversation processor to test chat API Debanjum Singh Solanky 2023-03-15 14:26:19 -06:00
  • 3f719c9e17 Rename Chat Model+Prompt tests to chat actor tests Debanjum Singh Solanky 2023-03-15 14:18:08 -06:00
  • 7526a50dd4 Extract conversation processor utility funcs from gpt.py into utils.py Debanjum Singh Solanky 2023-03-15 11:42:07 -06:00
  • 7c4d546039 Configure tests to mark chat quality tests & filter unhelpful warnings Debanjum Singh Solanky 2023-03-14 18:56:14 -06:00
  • c1128a1ad8 Test Chat Actor Capabilities; ability to answer from notes, chat logs etc Debanjum Singh Solanky 2023-03-14 17:44:16 -06:00
  • 9306cd901a Clean up chat tests to work with updated chat methods in gpt.py Debanjum Singh Solanky 2023-03-14 11:27:58 -06:00
  • 24ddebf3ce Make converse prompt more precise. Fix default arg vals in gpt methods Debanjum Singh Solanky 2023-03-14 19:06:02 -06:00
  • 8609e3129e Fix, improve displaying chat messages, sources by Khoj in web interface Debanjum Singh Solanky 2023-03-14 11:24:47 -06:00
  • 6c0e82b2d6
    Merge Improve Khoj Chat PR #183 from debanjum/improve-chat-interface Debanjum 2023-03-10 19:03:44 -06:00
  • cccd225247 Deduplicate and simplify logic to render chat message with reference Debanjum Singh Solanky 2023-03-10 18:46:47 -06:00
  • b9caad458e Type score_threshold with union, not |, to support python <3.10 Debanjum Singh Solanky 2023-03-10 18:18:31 -06:00
  • 198d9af8cf Update Readme to reflect Khoj Chat out of Beta Debanjum Singh Solanky 2023-03-10 17:31:59 -06:00
  • a71f168273 Move the chat API out of beta. Save chat sessions at 15min intervals Debanjum Singh Solanky 2023-03-10 17:20:52 -06:00
  • bcc0bed9db Upgrade bump_version script to handle release and post-release commit Debanjum Singh Solanky 2023-03-10 15:15:08 -06:00
  • 8bb8824d0c Bump khoj versions in obsidian, emacs files Debanjum Singh Solanky 2023-03-10 12:13:18 -06:00
  • e16d0b6d7e Open references notes used for chat on mobile too (by clicking) Debanjum Singh Solanky 2023-03-09 16:57:00 -06:00
  • c3c7b8a951 Make Khoj chat a separate Progressive Web App (PWA) for easier access Debanjum Singh Solanky 2023-03-09 13:43:21 -06:00
  • 3838f9d8e3 Remove explicitly asking GPT to say I don't know in prompt for now Debanjum Singh Solanky 2023-03-09 12:11:44 -06:00
  • f7b8cdd02e Log prompts being passed to GPT for debugging Debanjum Singh Solanky 2023-03-08 19:17:52 -06:00
  • 2739a492b4 Log message metadata along with Khoj message instead of user message Debanjum Singh Solanky 2023-03-08 18:45:13 -06:00
  • 87d1e1341d Show reference notes used as response context in chat interface Debanjum Singh Solanky 2023-03-08 18:04:44 -06:00
  • 280061e1fa Do not deduplicate search results used for chat context Debanjum Singh Solanky 2023-03-06 23:51:31 -06:00
  • 672f61529e Make getting deduped search results configurable via Search API Debanjum Singh Solanky 2023-03-06 23:48:46 -06:00