🇬🇧 EN
🇮🇹 IT

6. Knowledge Base

A Knowledge Base (also called a Vector Store) is a searchable collection of documents. You upload files — typically PDFs, text documents, or other reference material — and Flusso indexes them using vector embeddings. Your AI agents can then perform semantic search against the Knowledge Base to retrieve relevant excerpts and include them in their context.

Knowledge Bases list
Knowledge Bases — list of vector stores with document counts and a "+ New Knowledge Base" button.

What Is a Knowledge Base?

When you upload a document to a Knowledge Base, Flusso:

  1. Splits the document into smaller chunks (passages of text).
  2. Converts each chunk into a vector embedding — a numerical representation of its meaning.
  3. Stores the embeddings in Qdrant, a high-performance vector database.

When your workflow executes a RAG node, it converts the search query into a vector and finds the chunks that are most similar (semantically closest) to the query. Those chunks are returned as structured results that your Agent node can read and use in its answer.

RAG stands for Retrieval-Augmented Generation. It is a technique that gives AI models access to specific, up-to-date information beyond their training data. Instead of asking the model to recall facts from memory (which can hallucinate), RAG retrieves the actual text and provides it as context.

Creating a Knowledge Base

  1. Click "Knowledge Bases" in the sidebar The list page opens showing all your existing Knowledge Bases.
  2. Click "New Knowledge Base" A creation form opens.
  3. Enter a name Choose a descriptive name that reflects the content (e.g. "Product Documentation", "Company HR Policies", "Support Articles").
  4. Click "Create" The Knowledge Base is created and you are taken to its detail page where you can upload documents.

Knowledge Base Detail Page

The detail page for a Knowledge Base shows all documents that have been uploaded, along with their processing status.

Knowledge Base document list
Knowledge Base detail — document list showing file names, status badges, and an Upload Document button.

Uploading Documents

  1. Open the Knowledge Base Click on a Knowledge Base card from the list to open its detail page.
  2. Click "Upload Document" A file picker opens.
  3. Select your file PDF files and plain text files are supported. For PDFs, Flusso extracts the text from each page automatically.
  4. Wait for indexing to complete The document status changes from Pending to Processing and finally to Completed when the document is ready to search. Large PDFs may take a minute or two to process.

Document Statuses

StatusMeaning
Pending The document has been uploaded and is queued for processing.
Processing Flusso is currently extracting text, splitting into chunks, generating embeddings, and storing them.
Completed The document is fully indexed and available for semantic search.
Failed Processing encountered an error (e.g. password-protected PDF, corrupted file). Try uploading again or use a different format.

Using a Knowledge Base in a Workflow

Once a Knowledge Base contains indexed documents, it can be searched from a workflow using the RAG node. The RAG node performs a semantic search and returns the most relevant chunks to your Agent node.

Typical RAG Pattern

The most common pattern is:

  1. A trigger provides a user question (e.g. from a webhook or a Manual Input step).
  2. A RAG node searches the Knowledge Base using the question as the query.
  3. An Agent node receives the RAG results via its Context Sources setting and uses them to formulate a grounded, factual answer.
// In the Agent node's system prompt, you can reference RAG results: "Answer the user's question based only on the following context: {{ rag_step.output.items }} If the answer is not in the context, say you don't know."
Use Context Sources: Instead of manually injecting RAG output into the system prompt, use the Agent node's built-in Context Sources field. Select the RAG step and Flusso will automatically format and inject the retrieved documents into the agent's context. This is the recommended approach.

Deleting Documents & Knowledge Bases

To delete a single document, click the Delete icon next to it in the document list. The document and all its indexed chunks are removed from the vector store permanently.

To delete an entire Knowledge Base, click the Delete button on the Knowledge Base card in the list view. This removes all documents and the entire vector collection from Qdrant. This action cannot be undone.

Irreversible action: Deleting a Knowledge Base removes all indexed content permanently. Any RAG nodes in your workflows that reference this Knowledge Base will fail until updated to point to a different Knowledge Base.

Tips for Effective Knowledge Bases