NomicEmbeddings 类使用 Nomic AI API 为给定文本生成嵌入向量。
设置
为了使用 Nomic API,你需要注册一个 Nomic 账户并创建 API 密钥。 首先需要安装@langchain/nomic 包:
npm
使用方式
相关链接
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.
使用 LangChain JavaScript 与 Nomic 嵌入模型进行集成。
NomicEmbeddings 类使用 Nomic AI API 为给定文本生成嵌入向量。
@langchain/nomic 包: