Files
langchain/docs/extras/integrations/text_embedding/ernie.ipynb
T
axiangcodingandBagatur 05aa02005b feat(llms): support ERNIE Embedding-V1 (#9370)
- Description: support [ERNIE
Embedding-V1](https://cloud.baidu.com/doc/WENXINWORKSHOP/s/alj562vvu),
which is part of ERNIE ecology
- Issue: None
- Dependencies: None
- Tag maintainer: @baskaryan

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-08-21 07:52:25 -07:00

1.3 KiB

ERNIE Embedding-V1

ERNIE Embedding-V1 is a text representation model based on Baidu Wenxin's large-scale model technology, which converts text into a vector form represented by numerical values, and is used in text retrieval, information recommendation, knowledge mining and other scenarios.

In [ ]:
from langchain.embeddings import ErnieEmbeddings
In [ ]:
embeddings = ErnieEmbeddings()
In [ ]:
query_result = embeddings.embed_query("foo")
In [ ]:
doc_results = embeddings.embed_documents(["foo"])