LangGraph Platform is now part of LangSmith. Check out the LangSmith docs for more information.
LangGraph Platform is now part of LangSmith. Check out the LangSmith docs for more information.
from langchain_community.embeddings import DashScopeEmbeddings
embeddings = DashScopeEmbeddings(
model="text-embedding-v1", dashscope_api_key="your-dashscope-api-key"
)
text = "This is a test document."
query_result = embeddings.embed_query(text)
print(query_result)
doc_results = embeddings.embed_documents(["foo"])
print(doc_results)
Was this page helpful?