mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Update Khoj Github Plugin details in main Readme
This commit is contained in:
parent
30d87a9a01
commit
32d73500ba
1 changed files with 8 additions and 3 deletions
11
README.md
11
README.md
|
@ -329,11 +329,16 @@ Add your OpenAI API to Khoj by using either of the two options below:
|
||||||
1. [Setup your OpenAI API key in Khoj](#set-your-openai-api-key-in-khoj)
|
1. [Setup your OpenAI API key in Khoj](#set-your-openai-api-key-in-khoj)
|
||||||
2. Interact with them from the [Khoj Swagger docs](http://locahost:8000/docs)[^2]
|
2. Interact with them from the [Khoj Swagger docs](http://locahost:8000/docs)[^2]
|
||||||
|
|
||||||
### Use a Github Repository as a source
|
### Index Github Repository for Search, Chat
|
||||||
Note that this plugin is currently *only* indexing Markdown files. It will ignore all other files in the repository. This is because Khoj, as it stands, is a semantic search engine. Eventually, we hope to get to a state where you can search for any file in your repository and even explain code.
|
The Khoj Github plugin can index issues, commit messages and markdown, org-mode and PDF files from any repositories you have access to. This allows you to chat or search with these repositories. Get answers, resolve issues or just explore a repo with the help of your AI personal assistant.
|
||||||
|
|
||||||
|
See the [Khoj FAQ](https://faq.khoj.dev) for a demo of Khoj search and chat. It makes the Khoj github repo available for exploring.
|
||||||
|
|
||||||
|
Note: *Khoj will ignore code files in the repository for now as the default AI model used works best with natural language text, not code.*
|
||||||
|
|
||||||
|
#### Setup Khoj Github plugin
|
||||||
1. Get a [pat token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) with `repo` and `read:org` scopes in the classic flow.
|
1. Get a [pat token](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token) with `repo` and `read:org` scopes in the classic flow.
|
||||||
2. Configure your settings to include the `owner` and `repo_name`. The `owner` will be the organization name if the repo is in an organization. The `repo_name` will be the name of the repository. Optionally, you can also supply a branch name. If no branch name is supplied, the `master` branch will be used.
|
2. Configure Khoj settings to include the `owner` and `repo_name`. The `owner` will be the organization name if the repo is in an organization. The `repo_name` will be the name of the repository. Optionally, you can also supply a branch name. If no branch name is supplied, the `master` branch will be used.
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue