Skip to content

Commit 0c051ae

Browse files
committed
Pull out query filters as top level documentation page
- Note perf eval from 2022 - Update links to query-filters in docs - Fix links - Update image model docs
1 parent 8f69eb9 commit 0c051ae

File tree

9 files changed

+17
-15
lines changed

9 files changed

+17
-15
lines changed

documentation/docs/clients/emacs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This feature finds entries similar to the one you are currently on.
114114
2. Hit `C-c s f` (or `M-x khoj RET f`) to find similar entries
115115

116116
### Advanced Usage
117-
- Add [query filters](/miscellaneous/advanced#query-filters) during search to narrow down results further
117+
- Add [query filters](/miscellaneous/query-filters) during search to narrow down results further
118118
e.g. `What is the meaning of life? -"god" +"none" dt>"last week"`
119119

120120
- Use `C-c C-o 2` to open the current result at cursor in its source org file

documentation/docs/clients/obsidian.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To see other notes similar to the current one, run *Khoj: Find Similar Notes* fr
4848
### Search
4949
Run *Khoj: Search* from the [Command Palette](https://help.obsidian.md/Plugins/Command+palette)
5050

51-
See [Khoj Search](/features/search) for more details. Use [query filters](/miscellaneous/advanced#query-filters) to limit entries to search
51+
See [Khoj Search](/features/search) for more details. Use [query filters](/miscellaneous/query-filters) to limit entries to search
5252

5353
[search_demo](https://user-images.githubusercontent.com/6413477/218801155-cd67e8b4-a770-404a-8179-d6b61caa0f93.mp4 ':include :type=mp4')
5454

documentation/docs/data-sources/notion_integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ Go to https://app.khoj.dev/settings to connect your Notion workspace(s) to Khoj.
1616
4. In the first step, you generated an API key. Use the newly generated API Key in your Khoj settings, by default at [http://localhost:42110/settings#notion](http://localhost:42110/settings#notion). Click `Save`.
1717
5. Click `Configure` in http://localhost:42110/settings to index your Notion workspace(s).
1818

19-
That's it! You should be ready to start searching and chatting. Make sure you've configured your [chat settings](/get-started/setup#2-configure).
19+
That's it! You should be ready to start searching and chatting. Make sure you've configured your [chat settings](/get-started/setup#use-khoj).

documentation/docs/features/chat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ See [the setup guide](/get-started/setup.mdx) to configure your chat models.
2222
- **On Web**: Open [/chat](https://app.khoj.dev/chat) in your web browser
2323
- **On Obsidian**: Search for *Khoj: Chat* in the [Command Palette](https://help.obsidian.md/Plugins/Command+palette)
2424
- **On Emacs**: Run `M-x khoj <user-query>`
25-
2. Enter your queries to chat with Khoj. Use [slash commands](#commands) and [query filters](/miscellaneous/advanced#query-filters) to change what Khoj uses to respond
25+
2. Enter your queries to chat with Khoj. Use [slash commands](#commands) and [query filters](/miscellaneous/query-filters) to change what Khoj uses to respond
2626

2727

2828
#### Details
2929
1. Your query is used to retrieve the most relevant notes, if any, using Khoj search using RAG.
3030
2. These notes, the last few messages and associated metadata is passed to the enabled chat model along with your query to generate a response
3131

3232
#### Conversation File Filters
33-
You can use conversation file filters to limit the notes used in the chat response. To do so, use the left panel in the web UI. Alternatively, you can also use [query filters](/miscellaneous/advanced#query-filters) to limit the notes used in the chat response.
33+
You can use conversation file filters to limit the notes used in the chat response. To do so, use the left panel in the web UI. Alternatively, you can also use [query filters](/miscellaneous/query-filters) to limit the notes used in the chat response.
3434

3535
<img src="/img/file_filters_conversation.png" alt="Conversation File Filter" style={{width: '400px'}}/>
3636

documentation/docs/features/image_generation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ You have a couple of image generation options.
1717
We support most state of the art image generation models, including Ideogram, Flux, and Stable Diffusion. These will run using [Replicate](https://replicate.com). Here's how to set them up:
1818

1919
1. Get a Replicate API key [here](https://replicate.com/account/api-tokens).
20-
1. Create a new [Text to Image Model](http://localhost:42110/server/admin/database/texttoimagemodelconfig/). Set the `type` to `Replicate`. Use any of the model names you see [on this list](https://replicate.com/pricing#image-models).
20+
2. Create a new [Text to Image Model](http://localhost:42110/server/admin/database/texttoimagemodelconfig/). Set the `type` to `Replicate`. Use any of the model names you see [on this list](https://replicate.com/pricing#image-models). We recommend the `model name` `black-forest-labs/flux-1.1-pro` from [Replicate](https://replicate.com/black-forest-labs/flux-1.1-pro).
2121

2222
### OpenAI
2323

2424
1. Get [an OpenAI API key](https://platform.openai.com/settings/organization/api-keys).
25-
2. Setup your OpenAI API key, if you haven't already. See instructions [here](/get-started/setup#2-configure)
26-
3. Create a text to image config at http://localhost:42110/server/admin/database/texttoimagemodelconfig/. We recommend the `model name` `dall-e-3`. Make sure to associate it with the OpenAI API chat configuration you setup in step 2 with `Openai config` field.
25+
2. Setup your OpenAI API key, if you haven't already. See instructions [here](/get-started/setup#add-chat-models)
26+
3. Create a text to image config at http://localhost:42110/server/admin/database/texttoimagemodelconfig/. Use `model name` `dall-e-3` to you use openai for image generation. Make sure to set the `Ai model api` field to the the OpenAI AI model api you setup in step 2.

documentation/docs/features/search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Take advantage of super fast search to find relevant notes and documents from yo
1111
- **On Web**: Open https://app.khoj.dev/ in your web browser
1212
- **On Obsidian**: Click the *Khoj search* icon 🔎 on the [Ribbon](https://help.obsidian.md/User+interface/Workspace/Ribbon) or Search for *Khoj: Search* in the [Command Palette](https://help.obsidian.md/Plugins/Command+palette)
1313
- **On Emacs**: Run `M-x khoj <user-query>`
14-
2. Query using natural language to find relevant entries from your knowledge base. Use [query filters](/miscellaneous/advanced#query-filters) to limit entries to search
14+
2. Query using natural language to find relevant entries from your knowledge base. Use [query filters](/miscellaneous/query-filters) to limit entries to search
1515

1616
### Demo
1717
![](/img/search_agents_markdown.png ':size=400px')

documentation/docs/features/voice-chat.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ You can also click on the speaker icon next to any message to hear it out loud.
1717

1818
Voice chat will automatically be configured when you initialize the application. The default configuration will run locally. If you want to use the OpenAI whisper API for voice chat, you can set it up by following these steps:
1919

20-
1. Setup your OpenAI API key. See instructions [here](/get-started/setup#2-configure).
20+
1. Setup your OpenAI API key. See instructions [here](/get-started/setup#add-chat-model).
2121
2. Create a new configuration at http://localhost:42110/server/admin/database/speechtotextmodeloptions/. We recommend the value `whisper-1` and model type `Openai`.
2222

2323
If you want to use the Text to Speech feature, you can set it up by following these steps:
2424

2525
1. Setup your account on [ElevenLabs.io](https://elevenlabs.io/).
2626
2. Configure your API key in your environment variables with the key `ELEVEN_LABS_API_KEY`.
27-
2. (Optional) Create a new [Voice model option](http://localhost:42110/server/admin/database/voicemodeloption/) with a specific voice ID from whichever voice you want to use. You can explore the options [here](https://elevenlabs.io/app/voice-library).
27+
3. (Optional) Create a new [Voice model option](http://localhost:42110/server/admin/database/voicemodeloption/) with a specific voice ID from whichever voice you want to use. You can explore the options [here](https://elevenlabs.io/app/voice-library).

documentation/docs/miscellaneous/performance.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ sidebar_position: 2
66

77
Here are some top-level performance metrics for Khoj. These are rough estimates and will vary based on your hardware and data.
88

9+
:::info
10+
These performance metrics were last evaluated in 2022.
11+
:::
12+
913
### Search performance
1014

11-
- Semantic search using the bi-encoder is fairly fast at \<100 ms across all content types
12-
- Reranking using the cross-encoder is slower at \<2s on 15 results. Tweak `top_k` to tradeoff speed for accuracy of results
15+
- Semantic search using the default embeddings model is fairly fast at \<100 ms across all content types
16+
- Reranking using the cross-encoder model is slower at \<2s on 15 results. Tweak `top_k` to tradeoff speed for accuracy of results
1317
- Filters in query (e.g. by file, word or date) usually add \<20ms to query latency
1418

1519
### Indexing performance
1620

1721
- Indexing is more strongly impacted by the size of the source data
1822
- Indexing 100K+ line corpus of notes takes about 10 minutes
19-
- Indexing 4000+ images takes about 15 minutes and more than 8Gb of RAM
2023
- Note: *It should only take this long on the first run* as the index is incrementally updated
2124

2225
### Miscellaneous
2326

2427
- Testing done on a Mac M1 and a \>100K line corpus of notes
25-
- Search, indexing on a GPU has not been tested yet

0 commit comments

Comments
 (0)