跳到主要内容

Bookend AI

让我们加载 Bookend AI 嵌入类。(Let's load the Bookend AI Embeddings class.)

from langchain_community.embeddings import BookendEmbeddings
API 参考:BookendEmbeddings
embeddings = BookendEmbeddings(
domain="your_domain",
api_token="your_api_token",
model_id="your_embeddings_model_id",
)
text = "This is a test document."
query_result = embeddings.embed_query(text)
doc_result = embeddings.embed_documents([text])

此页是否对您有帮助? (Was this page helpful?)