Debanjum Singh Solanky
b1269fdad2
Remove trailing slash to normalize khoj url in obsidian plugin settings
2024-01-11 21:56:36 +05:30
Debanjum Singh Solanky
ffdb291fe0
Fix error message rendering in khoj.el, khoj obsidian chat
...
- Fix failed to index error message in khoj.el
- Fix chat model not configured message in khoj obsidian chat
2024-01-11 21:55:54 +05:30
Debanjum Singh Solanky
af9ceb00a0
Show relevant error msg in desktop app, e.g when can't connect to server
2024-01-09 23:09:34 +05:30
Debanjum Singh Solanky
efe41aaaca
Push 1000 files at a time from the Desktop client for indexing
...
FastAPI API endpoints only support uploading 1000 files at a time.
So split all files to index into groups of 1000 for upload to
index/update API endpoint
2024-01-09 23:09:34 +05:30
Debanjum Singh Solanky
b6d5392c0c
Release Khoj version 1.2.1
2024-01-04 18:45:37 +05:30
Debanjum Singh Solanky
fca7a5ff32
Push 1000 files at a time from the Obsidian client for indexing
...
FastAPI API endpoints only support uploading 1000 files at a time.
So split all files to index into groups of 1000 for upload to
index/update API endpoint
2024-01-04 18:43:22 +05:30
Debanjum Singh Solanky
e28adf2884
Also index pdf, markdown and plaintext files using khoj emacs client
...
Previously you could only index org-mode files and directories from
khoj.el
Mark the `khoj-org-directories', `khoj-org-files' variables for
deprecation, since `khoj-index-directories', `khoj-index-files'
replace them as more appropriate names for the more general case
Resolves #597
2024-01-03 11:46:17 +05:30
Liam Swayne
455f78b178
Replace var declarations with let declarations ( #576 )
...
* Replace var declaration with let declaration
2023-12-29 10:20:48 +05:30
Debanjum Singh Solanky
21c55b4c0d
Release Khoj version 1.2.0
2023-12-22 21:43:47 +05:30
Debanjum Singh Solanky
6a8c1fe423
Sanitize rendering chat references in Web, Desktop and Obsidian clients
...
Use textContent instead of innerHTML to append references
Resolves #583
2023-12-22 18:11:49 +05:30
Debanjum Singh Solanky
d101297995
Use markdown formatted chat message in chat modal
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
350fd89c8d
Clear chat history html in Obsidian if getChatHistory works too
2023-12-22 17:01:31 +05:30
Debanjum Singh Solanky
447c1b90e7
Fix streaming chat response in Obsidian client
...
- Convert renderIncrementalMessage to an async method as
MarkdownRenderer is an async method
- Simplify code, remove unneeded JSON check
2023-12-20 14:51:19 +05:30
Debanjum Singh Solanky
e04fe921eb
Fix first-run, chat error message in obsidian, desktop and web clients
...
- Disable chat input field if getChatHistory had error as Khoj may not
be setup correctly to chat
2023-12-20 14:03:07 +05:30
sabaimran
0288804f2e
Render the inferred query along with the image that Khoj returns
2023-12-17 21:02:55 +05:30
sabaimran
49af2148fe
Miscellaneous improvements to image generation
...
- Improve the prompt before sending it for image generation
- Update the help message to include online, image functionality
- Improve styling for the voice, trash buttons
2023-12-17 20:25:35 +05:30
sabaimran
9b961ed496
Merge pull request #580 from khoj-ai/fix-upgrade-chat-to-create-images
...
Support Image Generation with Khoj
2023-12-07 21:17:58 +05:30
Debanjum Singh Solanky
7504669f2b
Fix rendering image on chat response in obsidian client
2023-12-05 03:48:07 -05:00
Debanjum Singh Solanky
162b219f2b
Throw unsupported error when server not configured for image, speech-to-text
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
8f2f053968
Fix rendering image on chat response in web, desktop client
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
d124266923
Reduce promise based nesting in chat JS func used in desktop, web client
...
Use async/await to reduce .then() based nesting to improve code
readability
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
6e3f66c0f1
Use base64 encoded image instead of source URL for persistence
...
The source URL returned by OpenAI would expire soon. This would make
the chat sessions contain non-accessible images/messages if using
OpenaI image URL
Get base64 encoded image from OpenAI and store directly in
conversation logs. This resolves the image link expiring issue
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
52c5f4170a
Show generated images in the chat modal of the Khoj Obsidian plugin
2023-12-05 01:51:14 -05:00
Debanjum Singh Solanky
8016a57b5e
Show generated images in chat interface on Desktop client
2023-12-05 01:51:14 -05:00
sabaimran
c5d297a9ed
Recursively search through folders for indexing
2023-12-03 16:17:28 -05:00
Debanjum Singh Solanky
a57d529f39
Fix path to system tray icon of Khoj desktop app
2023-12-03 00:12:50 -08:00
Debanjum Singh Solanky
106cdbe455
Release Khoj version 1.1.0
2023-11-30 20:09:08 -08:00
Debanjum Singh Solanky
10ce4ee11c
Ignore null params type check for markdown renderer in Obsidian client
2023-11-30 20:09:08 -08:00
Debanjum Singh Solanky
d587632700
Clear result before render thinking placeholder emoji in Obsidian chat
2023-11-30 13:53:09 -08:00
Debanjum Singh Solanky
48719ee0dd
Render newline separation in chat references to improve readability
2023-11-30 13:16:48 -08:00
Debanjum Singh Solanky
1a31a2efcf
Render Khoj chat streaming response as md & show refs in Obsidian
...
- Use new style references for Khoj chat modal in Obsidian
- Khoj Chat responses in Obsidian had regressed to not show references
for new questions after modal has been opened. Now even those are
rendered, and use new references style
- Render chat response as markdown while it's being streamed
2023-11-30 13:02:00 -08:00
Debanjum Singh Solanky
0430fa67b6
Show temporary status message when copied to clipboard
2023-11-29 13:49:33 -08:00
Debanjum Singh Solanky
491a1a949a
Render chat responses as markdown in Desktop client too
2023-11-29 13:49:33 -08:00
Debanjum Singh Solanky
20ef5bfc93
Properly stop mediaRecorder stream to clear microphone in-use state
2023-11-29 13:48:35 -08:00
Debanjum Singh Solanky
8faa63c3c6
Convert config page buttons to use stronger yellow
2023-11-28 19:55:43 -08:00
Debanjum Singh Solanky
110d7646fc
Use milder yellow as primary Khoj theme color for chat, buttons etc.
2023-11-28 14:15:14 -08:00
sabaimran
6e1ba11e59
Resolve merge conflicts for rendering chat response
2023-11-27 11:33:13 -08:00
Debanjum Singh Solanky
71f2d54258
Render chat response as markdown while streaming on Web, Desktop clients
2023-11-26 20:27:10 -08:00
Debanjum Singh Solanky
06f99ceb3c
Rename /api/speak API endpoint to /api/transcribe
2023-11-26 06:18:44 -08:00
Debanjum Singh Solanky
56a1a61c77
Remove unused button element retrieval code from web, desktop
2023-11-26 06:17:56 -08:00
Debanjum Singh Solanky
877532a167
Speak to Khoj from the Obsidian client
...
- Add transcription button with mic icon
- Collect audio recording on pressing mic
- Process and send audio recording to server for transcription
- Extract the functionality to flash status in chat input for reuse
2023-11-26 06:17:54 -08:00
Debanjum Singh Solanky
28090216f6
Show transcription error status in chatInput placeholder on web, desktop
...
- Extract flashing status message in chat input placeholder into
reusable function
- Use emoji prefixes for status messages
- Improve alt text of transcribe button to indicate what the button does
2023-11-26 04:19:32 -08:00
Debanjum Singh Solanky
3e252036c3
Remove whitespace: pre-line from chat html, since markdown rendering
2023-11-26 00:27:29 -08:00
Debanjum Singh Solanky
b484795b8e
Merge branch 'master' into add-speak-to-chat
...
- Conflicts:
- src/interface/desktop/chat.html
Combine and use common class names for speak component
- src/khoj/database/adapters/__init__.py
Combine imports
- src/khoj/interface/web/chat.html
Combine and use common class names for speak component
- src/khoj/routers/api.py
Combine imports
2023-11-26 00:26:21 -08:00
sabaimran
6233a957b4
Merge branch 'master' of github.com:khoj-ai/khoj into features/enforce-subscription-status
2023-11-25 22:46:10 -08:00
sabaimran
52b88de7f4
Indicate in the desktop if the user gets rate limited for indexing
2023-11-25 22:31:23 -08:00
Debanjum
e0a59cff68
Delete Conversation History from Web, Desktop, Obsidian Clients ( #551 )
...
Add delete button to clear conversation history from Web, Desktop and Obsidian Khoj clients
Resolves #523
2023-11-25 22:24:12 -08:00
Debanjum Singh Solanky
d0e294d8a5
Clear Conversation History from the Obsidian client
...
- Fix font color for Khoj chat responses in Obsidian. Previous color
had too low a contrast to be readable
2023-11-25 22:16:13 -08:00
Debanjum Singh Solanky
07bf365c7c
Clear any network connections to khoj server via khoj.el on reindex
...
- Ignore errors in deleting network requests to khoj server
- Also delete open network connection to khoj server on auto reindex
Otherwise when server is unreachable a bunch of failed network
connections accrue in the processes list
2023-11-25 20:19:41 -08:00
sabaimran
e5b1350523
Enforce API use limits depending on whether the server has billing enabled
...
and whether the given user is subscribed
2023-11-24 21:55:16 -08:00