khoj/src
Debanjum Singh Solanky c0ae8eee99 Allow using OpenAI models for search in Khoj
- Init processor before search to instantiate `openai_api_key'
  from `khoj.yml'. The key is used to configure search with openai models

- To use OpenAI models for search in Khoj
  - Set `encoder' to name of an OpenAI model. E.g text-embedding-ada-002
  - Set `encoder-type' in `khoj.yml' to `src.utils.models.OpenAI'
  - Set `model-directory' to `null', as online model cannot be stored on disk
2023-01-07 23:13:56 -03:00
..
interface Merge PR #112 to fix quote usage in khoj.el docstring from suliveevil/master 2023-01-05 13:24:11 -03:00
processor Drop long words from compiled entries to be within max token limit of models 2023-01-07 23:13:56 -03:00
routers Create /config/data/default API endpoint to serve default khoj config 2023-01-03 21:52:34 -03:00
search_filter Use new Text Entry class to track text entries in Intermediate Format 2022-10-08 12:06:05 +03:00
search_type Only create model directory if the optional field is set in SearchConfig 2023-01-07 23:13:56 -03:00
utils Allow using OpenAI models for search in Khoj 2023-01-07 23:13:56 -03:00
__init__.py Move application files under src directory. Update Readmes 2021-08-17 04:11:03 -07:00
configure.py Allow using OpenAI models for search in Khoj 2023-01-07 23:13:56 -03:00
main.py Allow starting khoj in non-GUI mode without config file instantiated 2023-01-03 21:36:59 -03:00