sabaimran
6c10d68262
Merge pull request #253 from khoj-ai/features/github-issues-indexing
...
Support indexing Github issues as well as corresponding comments
2023-06-29 16:02:47 -07:00
sabaimran
b2dd946c6d
Rename issue to entry method for accuracy
2023-06-29 15:23:50 -07:00
Debanjum Singh Solanky
51dfa48e2b
Have Khoj support Python 3.11 as Pytorch supports it now
...
- Previously Khoj could only support Python upto 3.10 due to pytorch.
But lots of folks had python 3.11 installed by default on their machines.
This required installing python 3.10 and dealing with virtual envs.
With Torch >= 2.0.1 now able to support python 3.11, at least one
class of installation troubles for Khoj should drop. See
https://github.com/pytorch/pytorch/issues/86566 for reference
- Preliminary testing indicates using the new torch 2.x may reduce
search time by 25% (from 80ms to 60ms on Mac M1)
- Update Docs to not require mentioning python <=3.10 required
- Update Github test workflow to run khoj tests with python 3.11 too
2023-06-29 15:13:26 -07:00
sabaimran
65bf894302
Interpret org files as a list and put them in separate divs. Update styling of search results to separate into cards
2023-06-29 15:12:48 -07:00
Debanjum Singh Solanky
d212298573
Make Configure button on web interface incrementally update by default
...
We should add a way to force index everything.
But force indexing should not be the default when user is just trying
update content to index
2023-06-29 14:52:51 -07:00
Debanjum Singh Solanky
da2de21339
Only return requested result count even if search in multiple content types
...
- Set results_count to default value at start so it is an int, never None
2023-06-29 14:49:05 -07:00
sabaimran
77672ac0ae
Demarcate different results with a border box
...
- Add back support for searching by type Github
- Remove custom class name in markdown js file
2023-06-29 14:14:25 -07:00
sabaimran
6edc32f2f4
Accept current changes to include issues in rendering flow
2023-06-29 12:25:29 -07:00
sabaimran
ab7dabe74f
Explicitly use Union type for function parameters for lint checks
2023-06-29 11:44:30 -07:00
sabaimran
fecf6700d2
Limit small image rendering to just the avatar images
2023-06-29 11:27:18 -07:00
sabaimran
70e550250a
Add an additional data source for issues from Github repositories + quality of life updates
...
- Use a request session to reduce the overhead of setting up a new connection with the Github URL each request
- Use the streaming feature for the REST api to reduce some of the memory footprint
2023-06-29 10:59:54 -07:00
Debanjum Singh Solanky
5f2717cc4b
Use logger.warning since logger.warn is deprecated
2023-06-28 22:15:27 -07:00
Debanjum Singh Solanky
56ce97ef9e
Use async/await in tests for query method of text and image search
...
The text, image search query method has become async. So async/await
is required to get results correctly in tests etc
2023-06-28 22:07:02 -07:00
Debanjum Singh Solanky
b1767f93d6
Get any configured asymmetric search model to encode query for search
...
- Set image_search.query to async to use it with multi-threading
This is same as text_search.query being set to an async method
- Exit search early if no search_model is defined in state.model
2023-06-28 22:07:02 -07:00
Debanjum Singh Solanky
8eae7c898c
Put each result under org heading when query for "all" content type in khoj.el
...
- Add "all" as default content type when no content type retrieved
from server
2023-06-28 22:07:02 -07:00
Debanjum Singh Solanky
630bf995f1
Style each result based on its content type in same view on Khoj web
...
- So when searching across content types (with content-type = "all")
org-mode results get rendered differently than markdown, PDF etc. results
- Set div class for each result separately instead of a single uber div
for styling. This allows styling div of each result based on the
content-type of that result
- No need to create placeholder "all" content type on web interface as
server is passing an all content type by itself
2023-06-28 22:07:01 -07:00
Debanjum Singh Solanky
1773a78339
Fix createRequestUrl method signature to fetch results from khoj web
2023-06-28 12:10:45 -07:00
Debanjum Singh Solanky
212b1a96c8
Create "all" search type for search across all content types on khoj server
...
Allows moving logic to handle search across all content types to
server from clients
2023-06-28 11:34:26 -07:00
Debanjum Singh Solanky
0636ceaf14
Merge branch 'master' of github.com:khoj-ai/khoj into parallelize-search-across-all-asymmetric-text-content-types
...
Conflicts:
- src/khoj/routers/api.py: Use theirs
2023-06-27 16:10:32 -07:00
Debanjum Singh Solanky
510bb7e684
Use typing union in text_search for python 3.8 compatible type hinting
2023-06-27 15:59:50 -07:00
Debanjum Singh Solanky
1b11d5723d
Extract search request URL builder into js function in web interface
2023-06-27 15:50:41 -07:00
Debanjum Singh Solanky
09f739b8cc
Null check config, log warning instead of error when configuring search
2023-06-27 15:48:48 -07:00
sabaimran
9d62d66a77
Simplify construction of repo shorthand in GithubToJsonl
2023-06-27 15:05:03 -07:00
sabaimran
227169ebde
Support configuration of multiple Github repositories in the settings interface
...
- Add cards to configure each of the Github repositories
- Fix a bug in the API which caused all other settings to be wiped when updating one of the content types
- Provide an error message to the user if they have a misconfiguration in their chat settings
2023-06-27 14:10:09 -07:00
sabaimran
37a1f15c38
Add backend support for indexing multiple repositories
...
- Add support for indexing org files as well as markdown files from the Github repository and update corresponding search view
- Support indexing a list of repositories
2023-06-27 12:06:15 -07:00
sabaimran
ddd550e6f4
Add call to use X-CSRFToken in relevant POST methods
2023-06-26 12:38:00 -07:00
sabaimran
35e24d7851
Fix null checking in state for content config API and telemetry API
2023-06-26 11:37:34 -07:00
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
edabede93a
Fix post configuration state update on error or success on config html
2023-06-23 14:52: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