Build an AI agent responding with contextual answers or performing contextual actions.
Generate embeddings for text data. The text is split into chunks and embedding is returned for each chunk.
The returned embeddings is an array of the form: [{ "index": 0, "text": "chunk1", "vector": [1.1, 1.2, 1.3] }].
TIP: use the JSONata modifier to convert the embeddings array into custom formats. For convenience, the component also returns the first vector in the embeddings array which is useful when querying vector databases to find relevant chunks.
Generate embeddings for a text file. The text is split into parts, each part is split into chunks and embedding is returned for each chunk. The component emits embeddings array for each file part (1MB).
The returned embeddings is an array of the form: [{ "index": 0, "text": "chunk1", "vector": [1.1, 1.2, 1.3] }].
TIP: use the JSONata modifier to convert the embeddings array into custom formats.
Generic method for making API calls to a 3rd party service.
Send a prompt to the Gemini LLM and receive a response.
Extract structured JSON data from text using AI.