ERNIE
ERNIE
Embedding-V1 is
a text representation model based on Baidu Wenxin
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.
from langchain.embeddings import ErnieEmbeddings
embeddings = ErnieEmbeddings()
query_result = embeddings.embed_query("foo")
doc_results = embeddings.embed_documents(["foo"])