Skip to main content

RAG Node

The RAG Node (Retrieval-Augmented Generation) ingests documents into a Weaviate vector database and retrieves the most semantically relevant chunks to use as context for an AI Data Processing Node.

It connects exclusively to the AI Data Processing Node via a dedicated RAG port (right side of the node).

The node receives its input from a Data Source Node (or any upstream node) formatted as markdown with optional file blocks and a query:

Using the attached document, answer:

What are the main topics covered?

### File name "my-document.txt"
<file content here>
  • File blocks (optional): One or more ### File name "..." sections — each is chunked, embedded, and stored in the collection.
  • Query (required for retrieval): The text preceding the first file block. Used to perform a vector similarity search against the stored chunks.

If no files are provided, the node performs a query-only retrieval against the existing collection — useful for interrogating a database populated by other workflows or external tools.