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