mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
1.9 KiB
1.9 KiB
Khoj Chat
Overview
- Creates a personal assistant for you to inquire and engage with your notes
- You can choose to use Online or Offline Chat depending on your requirements
- Supports multi-turn conversations with the relevant notes for context
- Shows reference notes used to generate a response
Setup
Offline Chat
Offline chat works without internet but it is slower, lower quality and more compute intensive.
!> Warning: This will download a 3Gb+ Llama v2 chat model which can take some time
- Open your Khoj settings, click Enable on the Offline Chat card
Online Chat
Online chat requires internet to use ChatGPT but is faster, higher quality and less compute intensive.
!> Warning: This will enable Khoj to send your chat queries and notes to OpenAI for processing
- Get your OpenAI API Key
- Open your Khoj Online Chat settings, add your OpenAI API key, and click Save. Then go to your Khoj settings and click
Configure
. This will refresh Khoj with your OpenAI API key.
Use
- Open /chat
- Type your queries and see Khoj respond using your notes as reference
Details
- Your query is used to retrieve the most relevant notes, if any, using Khoj search
- These notes, the last few messages and associated metadata is passed to the enabled chat model along with your query to generate a response