khoj/src/search_type
Debanjum Singh Solanky 2fe37a090f Make type of encoder to use for embeddings configurable via khoj.yml
- Previously `model_type' was set in the setup of each `search_type'
  - All encoders were of type `SentenceTransformer'
  - All cross_encoders were of type `CrossEncoder'

- Now `encoder-type' can be configured via the new `encoder_type' field
  in `TextSearchConfig' under `search-type` in `khoj.yml`.

- All the specified `encoder-type' class needs is an `encode' method
  that takes entries and returns embedding vectors
2023-01-07 23:09:12 -03:00
..
__init__.py Move application files under src directory. Update Readmes 2021-08-17 04:11:03 -07:00
image_search.py Make type of encoder to use for embeddings configurable via khoj.yml 2023-01-07 23:09:12 -03:00
text_search.py Make type of encoder to use for embeddings configurable via khoj.yml 2023-01-07 23:09:12 -03:00