VoltAgent is an open source TypeScript framework for building and orchestrating AI agents.
Escape the limitations of no-code builders and the complexity of starting from scratch.
Escape the limitations of no-code builders and the complexity of starting from scratch.
This example shows how to use a VoltOps Knowledge Base as a retriever.
It uses:
VoltAgentRagRetrieverto callPOST /rag/project/searchVoltAgentRagRetrieverauto-creates aVoltOpsClientwhenVOLTAGENT_PUBLIC_KEY/VOLTAGENT_SECRET_KEYare set (optionallyVOLTAGENT_API_BASE_URL)Agent.retrieverfor automatic context injectionretriever.toolfor tool-based retrieval (optional)
- Copy env file:
cp .env.example .env- Fill:
OPENAI_API_KEYVOLTAGENT_PUBLIC_KEY/VOLTAGENT_SECRET_KEYsrc/retriever/index.tsiçindeknowledgeBaseNamedeğerini kendi Knowledge Base adınla değiştir
- Run:
pnpm devnpm create voltagent-app@latest -- --example with-voltops-retrieval