You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/docs
Ettore Di Giacinto ae28568e2a
Add embeddings for LocalAI (#8134)
Description:

This PR adds embeddings for LocalAI (
https://github.com/go-skynet/LocalAI ), a self-hosted OpenAI drop-in
replacement. As LocalAI can re-use OpenAI clients it is mostly following
the lines of the OpenAI embeddings, however when embedding documents, it
just uses string instead of sending tokens as sending tokens is
best-effort depending on the model being used in LocalAI. Sending tokens
is also tricky as token id's can mismatch with the model - so it's safer
to just send strings in this case.

Partly related to: https://github.com/hwchase17/langchain/issues/5256

Dependencies: No new dependencies

Twitter: @mudler_it
---------

Signed-off-by: mudler <mudler@localai.io>
Co-authored-by: Bagatur <baskaryan@gmail.com>
1 year ago
..
api_reference use top nav docs (#8090) 1 year ago
docs_skeleton undo bump (#8192) 1 year ago
extras Add embeddings for LocalAI (#8134) 1 year ago
snippets Bagatur/vercel test 3 (#8188) 1 year ago
.local_build.sh Fix `make docs_build` and related scripts (#7276) 1 year ago
package-lock.json docs: New experimental UI for Mendable Search (#6558) 1 year ago
vercel_requirements.txt use top nav docs (#8090) 1 year ago