本页还没有译文
本页 7 段还没译成日本語,下面显示的是英文原文。Minimax integration
还没翻译译自英文(docs.langchain.com)本页 7 段都还没译
The MinimaxEmbeddings class uses the Minimax API to generate embeddings for a given text.
Setup
To use Minimax model, you'll need a Minimax account, an API key, and a Group ID.
Usage
import { MinimaxEmbeddings } from "@langchain/classic/embeddings/minimax";
export const run = async () => {
/* Embed queries */
const embeddings = new MinimaxEmbeddings();
const res = await embeddings.embedQuery("Hello world");
console.log(res);
/* Embed documents */
const documentRes = await embeddings.embedDocuments([
"Hello world",
"Bye bye",
]);
console.log({ documentRes });
};Related
- Embedding model conceptual guide
- Embedding model how-to guides
AI 翻译查看英文原文