mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-09 19:35:20 +03:00
Updated `integrations/embeddings`: fixed titles; added links, descriptions Updated `integrations/providers`.
2.4 KiB
2.4 KiB
In [1]:
# pip install awadbIn [2]:
from langchain.embeddings import AwaEmbeddingsIn [3]:
Embedding = AwaEmbeddings()In [4]:
text = "our embedding test"
Embedding.set_model("all-mpnet-base-v2")In [5]:
res_query = Embedding.embed_query("The test information")
res_document = Embedding.embed_documents(["test1", "another test"])