Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md


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.

npm version Contributor Covenant Discord Twitter Follow


VoltAgent: VoltOps Knowledge Base Retrieval (RAG)

This example shows how to use a VoltOps Knowledge Base as a retriever.

It uses:

  • VoltAgentRagRetriever to call POST /rag/project/search
  • VoltAgentRagRetriever auto-creates a VoltOpsClient when VOLTAGENT_PUBLIC_KEY / VOLTAGENT_SECRET_KEY are set (optionally VOLTAGENT_API_BASE_URL)
  • Agent.retriever for automatic context injection
  • retriever.tool for tool-based retrieval (optional)

Setup

  1. Copy env file:
cp .env.example .env
  1. Fill:
  • OPENAI_API_KEY
  • VOLTAGENT_PUBLIC_KEY / VOLTAGENT_SECRET_KEY
  • src/retriever/index.ts içinde knowledgeBaseName değerini kendi Knowledge Base adınla değiştir
  1. Run:
pnpm dev

Try Example

npm create voltagent-app@latest -- --example with-voltops-retrieval