GradientEmbeddings class uses the Gradient AI API to generate embeddings for a given text.
Setup
You’ll need to install the official Gradient Node SDK as a peer dependency:npm
gradientAccessKey and workspaceId respectively.
For example:
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.