sabaimran
000580cb8a
Improve loading state when files not found and fix default state interpretation for model selector
2025-01-20 11:47:42 -08:00
sabaimran
235114b432
Fix agent data import across chat page +
2025-01-20 11:04:48 -08:00
sabaimran
d681a2080a
Centralize use of useUserConfig and use that to retrieve default model and chat model options
2025-01-20 10:59:02 -08:00
sabaimran
a3fcd6f06e
Fix import of AgentData from agentcard
2025-01-20 10:36:11 -08:00
sabaimran
d7800812ad
Fix default states for the model selector
2025-01-20 10:18:09 -08:00
sabaimran
98baa93a31
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-chat-controls
2025-01-20 09:36:42 -08:00
sabaimran
1f59afe962
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-a-knowledge-base-page
2025-01-20 08:32:17 -08:00
sabaimran
83d856f97d
Add some basic pagination logic to the knowledge page to prevent overloading the Api or the client
2025-01-19 22:48:36 -08:00
sabaimran
59ee6e961a
Only set hasmodified to true during model select if different from original model
2025-01-19 18:19:48 -08:00
sabaimran
e982398c2c
Weird spacing issue resolve (it was because of the footer in the collapsed state still having some width)
2025-01-19 18:16:43 -08:00
sabaimran
dbce039033
Revert the fixed hack to hide horizontal spacing issue with sidebar because it breaks the animation on closed. Sigh.
2025-01-19 18:11:53 -08:00
sabaimran
0d38cc9753
Handle further edge cases when setting chat agent data and fix alignment of chat input / side panel
2025-01-19 17:59:37 -08:00
sabaimran
b248123135
Hook up hidden agent creation and update APIs to the UI
...
- This allows users to initiate hidden agent creation from the side bar directly. Any updates can easily be applied to the conversation agent.
2025-01-19 17:36:30 -08:00
sabaimran
f10b072634
update looks & feel of chat side bar with model selector, checkboxes for tools, and actions (not yet implemented)
2025-01-19 12:13:37 -08:00
sabaimran
7837628bb3
Update existing agentData imports
2025-01-19 12:12:23 -08:00
sabaimran
7998a258b6
Add additional ui components for tooltip, checkbox
2025-01-19 12:08:02 -08:00
sabaimran
00370c70ed
Consolidate the AgentData Type into the agentCard
2025-01-19 12:06:54 -08:00
Debanjum
fde71ded16
Upgrade web app dependencies
2025-01-19 13:44:59 +07:00
Debanjum
2d4633d298
Use encoded email, otp in login URL in email & web app sign-in flow
...
Previously emails with url special characters would not get
successfully identified for login. Account creation was fine due to
email being in POST request body. But login with such emails did not
work due to query params not being escaped before being sent to server
This change escapes both the code and email in login URL sent to
server. So login with emails containing special characters like
`email+khoj@gmail.com ' works. It fixes both the URL web app sent by
web app directly and the magic link sent to users to their email
This change also fixes accessibility issue of having a DialogTitle in
DialogContent for screen readers.
Resolves #1090
2025-01-19 13:11:23 +07:00
sabaimran
7481f78f22
Remove unused API request
2025-01-17 17:18:47 -08:00
sabaimran
2fa212061d
Add a ride hand side bar for chat controls
2025-01-17 16:45:50 -08:00
Debanjum
00843f4f24
Release Khoj version 1.34.0
2025-01-16 12:11:28 +07:00
Sam Ho
f8f159efac
feat: add turnId handling to chat messages and history
2025-01-16 00:44:16 +00:00
sabaimran
42d4d15346
Merge pull request #1054 from khoj-ai/features/add-support-for-mermaidjs
...
We've been having issues generating diagrams with Excalidraw that are any degree of complexity. By contrast, LLMs are able to handle Mermaid.js syntax a lot better, as it's much more forgiving and has a simpler declarative style. Refer to https://mermaid.js.org/ .
Update so that new diagrams are generated with Mermaid.js, while old diagrams generated with Excalidraw can still be viewed.
2025-01-15 11:55:12 -08:00
Debanjum
e2b2b3415e
Fix handling of inline base64 images by Obsidian, Desktop clients
...
Fix for #1082 pushed down adding the `data:image/webp;base64' prefix
of the base64 images to the server image gen API. But the code on the
Obsidian and Desktop client still add these prefixes.
This change stops the Desktop, Obsidian clients from adding the prefix
as it is being handled by the API now. It should resolve showing
images inline in those clients as well
2025-01-15 23:34:23 +07:00
Debanjum
2e585efd2f
Fix end with newline styling issue in style.css to pass lint checks
2025-01-15 19:43:02 +07:00
Debanjum
24ab8450ba
Handle scenario where read chat stream error is not json on web app
2025-01-15 13:09:50 +07:00
sabaimran
0b775c77d3
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-a-knowledge-base-page
2025-01-13 15:07:59 -08:00
Sam Ho
fc6fab4cce
chore: fix format issue from pre-commit hook - trailing-whitespace and end-of-file-fixer
2025-01-13 20:07:48 +00:00
sabaimran
1a00540ee9
Improve error handling in mermaid chart rendering
2025-01-12 22:36:31 -08:00
Yash-1511
27165b3f4a
fix: review suggestions
2025-01-12 15:12:14 +05:30
Sam Ho
93687f141a
feat: do not show delete button on system messages
2025-01-11 17:35:57 +00:00
Sam Ho
a9c180d85f
feat: add delete chat message action to the Obsidian plugin
2025-01-11 17:19:40 +00:00
Debanjum
51a774c993
Add contrast to setting card inputs in dark mode on web app
2025-01-11 14:50:47 +07:00
Debanjum
9e8b8dc5a2
Toggle showing api key on web settings page via a visibility toggle
...
- Background
Access to the clipboard API is disabled by certain browsers in non
localhost http scenarios for security reasons.
So the copy API key button doesn't work when khoj is self-hosted
with authentication enabled at a non localhost domain
- Change
This change enables copying API keys by manual text highlight + copy
if copy button is disabled
Resolves #1070
2025-01-11 14:50:47 +07:00
Debanjum
25c39bd7da
Extract api keys setting card into separate component on web app
2025-01-11 14:50:46 +07:00
sabaimran
c30047e859
Fix Obsidian style.css
2025-01-10 22:18:44 -08:00
sabaimran
da2b89e46a
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-a-knowledge-base-page
2025-01-10 22:18:14 -08:00
sabaimran
f170487338
Fix apostrophe in the add documents modal
2025-01-10 21:58:17 -08:00
sabaimran
be4b091a21
Add new line to styles.css
2025-01-10 21:52:52 -08:00
sabaimran
f398e1eb0c
Add codeblock rendering for the mermaidjs diagram in obsidian
2025-01-10 21:46:39 -08:00
sabaimran
c441663394
Merge branch 'master' of github.com:khoj-ai/khoj into features/add-support-for-mermaidjs
2025-01-10 21:25:33 -08:00
sabaimran
85c34a5f0f
Merge pull request #1018 from hjamet/master
...
This PR delivers comprehensive improvements to the Khoj plugin across multiple key areas:
🔍 Search Enhancements:
- Added visual loading indicators during search operations
- Implemented color-coded results to distinguish between vault and external files
- Added abort logic for previous requests to improve performance
- Enhanced search feedback with clear status indicators
- Improved empty state handling
🔄 Synchronization Improvements:
- Added configurable sync interval setting in minutes
- Implemented manual "Sync new changes" command
- Enhanced sync timer management with automatic restart
- Improved notification system for sync operations
📁 Folder Management:
- Added granular folder selection for sync
- Implemented intuitive folder suggestion modal
- Enhanced folder list visualization
💅 UI/UX Improvements:
- Added loading animations and spinners
- Enhanced search results visualization with color coding
- Refined chat interface styling
- Improved overall settings panel organization
🔧 Technical Improvements:
- Refactored search and synchronization logic
- Implemented proper request cancellation
- Enhanced error handling and user feedback
- Improved code organization and maintainability
2025-01-10 21:24:12 -08:00
sabaimran
57545c1485
Fix the migration script to delete orphaned fileobjects
...
- Remove knowledge page from the sidebar
- Improve speed and rendering of the documents in the search page
2025-01-10 21:06:48 -08:00
sabaimran
d77984f9d1
Remove separate knowledge base file - consolidated in the search page
2025-01-10 18:57:38 -08:00
sabaimran
f2c6ce2435
Improve rendering of the file objects and sort files by updated_date
2025-01-10 18:18:15 -08:00
sabaimran
454a752071
Initial commit: add a dedicated page for managing the knowledge base
...
- One current issue in the Khoj application is that managing the files being referenced as the user's knowledge base is slightly opaque and difficult to access
- Add a migration for associating the fileobjects directly with the Entry objects, making it easier to get data via foreign key
- Add the new page that shows all indexed files in the search view, also allowing you to upload new docs directly from that page
- Support new APIs for getting / deleting files
2025-01-10 16:24:50 -08:00
Debanjum
dd63bd8bcf
Fix dark mode dropdown colors of phone no. country code on web settings page
...
Resolves #1046
2025-01-10 00:10:51 +07:00
Debanjum
01d27f5220
Do not show user logout button on web app side pane in anoymous mode
...
Refer
https://github.com/khoj-ai/khoj/issues/1050#issuecomment-2579119234
2025-01-09 21:18:50 +07:00
sabaimran
ec02757fd1
Add an export feature along with the mermaid diagram. Add sidebar to loading page.
2025-01-08 23:53:58 -08:00