Prerequisites
smithers-orchestratorversion 0.12.8 or later- An OpenAI API key (or another AI SDK-supported embedding provider)
ai and @ai-sdk/openai dependencies are already included.
Create a Vector Store
The vector store uses your workflow’s existing SQLite database:Build a Pipeline
Wire together chunking, embedding, and storage:Ingest Documents
Load and ingest files:Query the Pipeline
Give Agents a RAG Tool
Create a tool that agents can call to search the knowledge base:Use Namespaces
Keep different document collections separate:CLI Usage
Ingest and query without writing code:Next Steps
- Read RAG Concepts for details on chunking strategies and vector storage
- See Structured Output for validating agent responses
- See Model Selection for choosing embedding models