Actions7
- Audio Speech (TTS) Actions
- Audio Transcription (ASR) Actions
- Chat Actions
- Embedding Actions
- Image Generation Actions
- Video Generation Actions
Embedding → Embed
AI-generatedSummary
Generate a vector embedding for each input item’s text using Zhipu’s Embedding-2 or Embedding-3 model. Embedding-3 can return a selected vector size; the node adds the vector and its actual dimension count to the API response data.
Inputs
- Model — Choose Embedding-2 (fixed at 1024 dimensions) or Embedding-3 (default).
- Input Text (required) — The text to convert into an embedding vector.
- Dimensions — For Embedding-3 only, choose 256, 512, 1024 (default), or 2048 output dimensions. The default 1024 value is omitted from the API request.
Output shape
One output item per input item, each containing a JSON object.
Each object includes
responsewith the full API response. When the response contains a first embedding, the object also includesembedding(the vector) anddimensions(its length). If the response has no first embedding, those fields are omitted. Requires Zhipu API credentials.