ZhipuAIEmbeddings class uses the ZhipuAI API to generate embeddings for a given text.
Setup
You’ll need to sign up for an ZhipuAI API key and set it as an environment variable namedZHIPUAI_API_KEY.
https://open.bigmodel.cn
Then, you’ll need to install the @langchain/community package:
npm
Usage
Related
- Embedding model conceptual guide
- Embedding model how-to guides
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.