mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 17:35:28 +03:00
1.8 KiB
1.8 KiB
In [7]:
from langchain.embeddings import HuggingFaceEmbeddingsIn [16]:
embeddings = HuggingFaceEmbeddings()In [12]:
text = "This is a test document."In [13]:
query_result = embeddings.embed_query(text)In [14]:
doc_result = embeddings.embed_documents([text])In [ ]: