Skip to main content
Vector operations allow you to store and retrieve vector embeddings from vector databases like Qdrant. These actions are essential for building semantic search, recommendation systems, and Retrieval-Augmented Generation (RAG) applications.

storevector

Stores vector embeddings in a vector database along with associated metadata.

Integration ID

The vector database integration to store vectors in.

Vectors

The vector data to store, typically as a JSON array of floats.
Use {{ .generate_embedding }} to reference vectors generated by a previous action, such as an AI embedding model.

Fields

Metadata fields to store alongside the vector. These fields can be used for filtering during retrieval.

Options

Additional storage options such as the collection name. Common options:
  • collection — The collection name to store vectors in

Example


fetchvectors

Retrieves vectors from a vector database for similarity search. Returns the most similar vectors to the provided query vector.

Integration ID

The vector database integration to query.

Vector

The query vector to search for similar vectors. This is typically an embedding of the search query.

Options

Query options such as collection name and result limit. Common options:
  • collection — The collection name to search in
  • limit — Maximum number of results to return

Example


Common Patterns

RAG Pipeline

A typical RAG (Retrieval-Augmented Generation) workflow combines vector search with an AI agent:

Document Ingestion

Store documents with their embeddings for later retrieval:

Next Steps

AI Agents

Use AI agents to generate embeddings and process search results.

Data Operations

Combine vector search with traditional database queries.

Actions Overview

Learn the fundamentals of ServFlow actions.

Configuration Reference

Explore all ServFlow configuration options.