Skip to content

Commit d2ed6af

Browse files
authored
Merge pull request #427 from truefoundry/mnvsk97-patch-1
Update instructions on adding custom embedding models
2 parents 75079c3 + 127f3b2 commit d2ed6af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,8 @@ Cognita makes it really easy to switch between parsers, loaders, models and retr
242242

243243
### Customizing Embedder:
244244

245-
- The codebase currently uses `OpenAIEmbeddings` you can registered as `default`.
246-
- You can register your custom embeddings in `backend/modules/embedder/__init__.py`
247-
- You can also add your own embedder an example of which is given under `backend/modules/embedder/mixbread_embedder.py`. It inherits langchain embedding class.
245+
- The codebase currently uses [`OpenAIEmbeddings` by `Langchain`](https://python.langchain.com/docs/integrations/text_embedding/openai/) by default to generate embeddings
246+
- You can register any OpenAI-compatible custom embeddings in the `models_config.yaml` file and restart the server to make it work.
248247

249248
### Customizing Parsers:
250249

0 commit comments

Comments
 (0)