langchain/docs/extras/integrations/text_embedding
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>
2023-07-24 12:16:49 -07:00
..
aleph_alpha.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
azureopenai.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
bedrock.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
clarifai.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
cohere.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
dashscope.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
deepinfra.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
elasticsearch.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
embaas.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
fake.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
google_vertex_ai_palm.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
gpt4all.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
huggingfacehub.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
index.mdx mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
instruct_embeddings.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
jina.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
llamacpp.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
localai.ipynb Add embeddings for LocalAI (#8134) 2023-07-24 12:16:49 -07:00
minimax.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
modelscope_hub.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
mosaicml.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
nlp_cloud.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
openai.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
sagemaker-endpoint.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
self-hosted.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
sentence_transformers.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
spacy_embedding.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00
tensorflowhub.ipynb mv module integrations docs (#8101) 2023-07-23 23:23:16 -07:00