sabaimran
5e39421f56
Merge branch 'master' of github.com:debanjum/khoj
2023-06-25 11:41:47 -07:00
sabaimran
4410a3bb4b
Limit max width of the pre tag to 100% of the screen width
2023-06-25 11:41:15 -07:00
sabaimran
ffe66b848a
Use a single column tempalte for config plugins when in mobile
2023-06-25 11:27:41 -07:00
Debanjum Singh Solanky
b1890aa050
Null check intermediary objects when config not fully initialized
2023-06-24 15:34:18 -07:00
Debanjum Singh Solanky
946af0889d
Improve showing status message on saving config via web interface
...
- Show success/failure status message much closer to the save button
Previously status message was shown on top of the page, which wasn't
always in view and wasn't easily seen
- Improve the status message to more clearly show next steps on success
2023-06-24 00:49:57 -07:00
Debanjum Singh Solanky
40d1abfe50
Update the new /config APIs to configure Khoj for first time users
...
- Setup state.config and sub-components from unset state
- Setup search types with default settings
2023-06-24 00:45:30 -07:00
Debanjum Singh Solanky
05a3c81adb
Add beautiful as dependency to pass pytests
2023-06-23 15:10:09 -07:00
Debanjum Singh Solanky
edabede93a
Fix post configuration state update on error or success on config html
2023-06-23 14:52:25 -07:00
Debanjum
98642e01b5
Update Web Interface with Lantern Theme
...
- Style all pages with consistent lantern theme styling
- Add navigation pane to all web interface pages
- a200af68b38d0625c42e2098d171c6ddab121bd2 Keep pico.css locally for offline usage
- cd8d069e6673b4db4c14f736c3d8af80bf94614d Highlight currently active tab in web interface
- Update config pages to use Lantern theme
2023-06-23 14:39:25 -07:00
Debanjum Singh Solanky
4744d69221
Resolve button name, anchor tag feedback. Add status message to settings page
...
- Use "Configure" name for settings config action
- Use more standard anchor tag instead of button
- Add configure status message
2023-06-23 09:48:38 -07:00
Debanjum Singh Solanky
26abafa658
Highlight currently active tab in web interface for orientation
2023-06-22 00:33:28 -07:00
Debanjum Singh Solanky
2728c714d7
Put pico.css in local assets. Move common css styling into khoj.css
2023-06-22 00:33:11 -07:00
Debanjum Singh Solanky
20a37697de
Add Khoj header with navigation pane to Search and Chat Interfaces
2023-06-22 00:33:11 -07:00
Debanjum Singh Solanky
c467a0cbb0
Update UI of config sub pages to use khoj lantern theme styling
2023-06-22 00:33:11 -07:00
Debanjum Singh Solanky
0ce2ec590a
Update main config page on khoj server to match khoj lantern theme
2023-06-21 20:25:25 -07:00
Debanjum Singh Solanky
d30a9ddd33
Use Khoj Logo on Search, Chat pages of Web Interface
2023-06-21 12:34:53 -07:00
Debanjum Singh Solanky
6d4aad57e1
Use new Khoj Lantern Logo in Web, Emacs, Obsidian UIs and Docs
2023-06-21 01:57:22 -07:00
Debanjum Singh Solanky
69d4fa6525
Rename project links across repo from debanjum/khoj to khoj-ai/khoj
2023-06-21 00:13:21 -07:00
Debanjum Singh Solanky
5c4eb950d5
Search across all content types via khoj.el on Emacs
...
If no content-type selected in transient menu option, khoj.el queries
khoj server without content-type parameter (t) set.
This results in search across all enabled asymmetric search text
content types
2023-06-20 23:39:56 -07:00
Debanjum Singh Solanky
2cd3e799d3
Improve null and type checks
2023-06-20 23:30:59 -07:00
Debanjum Singh Solanky
d5fb4196de
Update web interface to allow querying all content types at once
2023-06-20 22:21:50 -07:00
Debanjum Singh Solanky
5c7c8d1f46
Use async/await to fix parallelization of search across content types
2023-06-20 22:21:50 -07:00
Debanjum Singh Solanky
1192e49307
Pass default value matching argument types expected by text_search methods
2023-06-20 22:21:50 -07:00
Debanjum Singh Solanky
0144e610d6
Only search across content types that work with asymmetric search
2023-06-20 22:21:46 -07:00
Debanjum Singh Solanky
f6a7aa6c96
Style Khoj chat on web interface with new lantern theme
...
- Color khoj chat message with new yellow theme color
- Update Khoj chat emoji to lantern
- Add page type to title of pages on web interface
2023-06-20 01:39:33 -07:00
Debanjum Singh Solanky
6d94d6e75a
Encode the asymmetric, symmetric search queries in parallel for speed
...
Use timer to measure time to encode queries and total search time
2023-06-20 01:18:17 -07:00
Debanjum Singh Solanky
d292dc03b3
Use new Khoj Logotype in Web interface
2023-06-20 01:13:06 -07:00
Debanjum Singh Solanky
db07362ca3
Encode user query as same across search types to speed up query time
...
- Add new filter abstract method to remove filter terms from query
- Use the filter method to remove filter terms, encode this defiltered
query and pass it to the query methods of each search types
TODO: Encoding query is still taking 100-200 ms unlike before. Need to
investigate why
2023-06-19 23:29:54 -07:00
Debanjum Singh Solanky
285d17af2a
Search in parallel across all enabled content types requested via API
...
- Update API to return content from all enabled content types when type
is not set to specific type in HTTP request param
- To do this efficiently run the search queries in parallel threads
2023-06-19 23:29:06 -07:00
Debanjum Singh Solanky
79d325fbb6
Fix triggering @general queries in Khoj Chat
2023-06-19 23:05:33 -07:00
Debanjum Singh Solanky
e97a20d70c
Set conversation type if query param set, else return chat history
...
Only initialize variables if query is not empty, to avoid unnecessary
compute, variable null checks etc.
Fixes #230
2023-06-19 19:59:16 -07:00
sabaimran
6224dce49d
Merge pull request #228 from debanjum/features/pretty-config-page
...
Update the config page to be more usable
2023-06-19 18:11:35 -07:00
sabaimran
4722a2c16d
Add Github configuration page and success notifications
2023-06-18 10:06:45 -07:00
sabaimran
668135c763
Merge branch 'master' of github.com:debanjum/khoj into features/pretty-config-page
2023-06-18 08:35:09 -07:00
sabaimran
81183a1fe1
Address misc PR comments and update logo in all clients
...
- Rename the new logo to reflect accuracy on size (e.g., 128x128)
- Update the icns file for Mac
- Update nomenclature in settings pages
2023-06-18 08:34:58 -07:00
Debanjum Singh Solanky
a44cde2865
Show hint to re-index vault if wonky results in Obsidian search modal
...
Remove spurious indentation in Obsidian styles.css
Resolves #207
2023-06-18 04:53:51 -07:00
Debanjum Singh Solanky
595cc5b0f5
Use printer icon for PDF logs. Only split lines if file at web link in web interface
2023-06-18 02:26:03 -07:00
Debanjum
e06be395f9
Use Github REST API and Index Commit Messages off Github Repository
...
- Migrate to Github REST API instead of Llama Hub to index Markdown Docs in Github Repository
- Index Commit Messages from Github Repository as well
2023-06-18 14:51:32 +05:30
Debanjum Singh Solanky
e31a540a5e
Get all md files recursively in repository by passing recursive param
...
Previously the `get_markdown_files' method was only getting files at
root of the repository
Fix, improve logger messages in github to jsonl processor
2023-06-18 01:47:15 -07:00
Debanjum Singh Solanky
6fdac24416
Set page size to 100 to reduce requests required to Github API to 1/3
...
- Default is 30. So number of paginated requests required to get all
items (commits, files) will reduce by 67%
- No need to increase page size for the get tree Github API request from
`get_markdown_files'
Get tree Github API doesn't support pagination and return 100K items
in response. This should be way more than enough for our current
use-cases
2023-06-18 01:44:36 -07:00
Debanjum Singh Solanky
87975e589a
Fix passing auth token to Github API to increase rate limits by x85
...
- Previously wasn't prefixing "token" to PAT token in Auth header
This resulted in the request being considered unauthenticated
- Unauthenticated requests to Github API are limited to 60 requests/hour
Authenticated requests to Github API are allowed 5000 requests/hour
2023-06-18 01:19:26 -07:00
Debanjum Singh Solanky
9c70af960c
Extract logic to get file content from Github into a separate method
2023-06-18 01:19:13 -07:00
Debanjum Singh Solanky
10d4c38ce9
Extract Wait for rate limit reset logic into a function for reuse
2023-06-18 01:06:46 -07:00
sabaimran
aad7f825e0
Remove music configuration
2023-06-17 21:23:56 -07:00
sabaimran
5f97afbfac
Ignore type checks from mypy in subindexed fields
2023-06-17 16:53:36 -07:00
sabaimran
c2d46de8bc
Add endpoint for regenerating directly from the config page and add music content-type
2023-06-17 15:47:33 -07:00
sabaimran
ded3100caf
Update the configuration page to make config management easier
...
- Add a central configuration management page to make management of config details easier
- Add relevant api endpoints both for client and server to update/request data as necessary
- Attempt to update the favicon
2023-06-17 15:21:28 -07:00
Debanjum Singh Solanky
3f24e53b6e
Render URL as link in web interface if file param of result is a web link
2023-06-17 04:26:40 -07:00
Debanjum Singh Solanky
63ec84ad78
Store Github URL of Markdown files on Github in file jsonl param
2023-06-17 04:23:01 -07:00
Debanjum Singh Solanky
0c1c7583b5
Handle pagination, API rate limits. Get all commits from Github repo
2023-06-17 04:21:39 -07:00