AlibabaTongyiEmbeddings class uses the Alibaba Tongyi API to generate embeddings for a given text.
Setup
You’ll need to sign up for an Alibaba API key and set it as an environment variable namedALIBABA_API_KEY.
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.