Agent / Automation
RAG Agent — drop in docs, get answers
Inject docs, agent auto-uses rag_search + answers.
Python
python
from nexevo_ai import Nexevo
client = Nexevo()
# RAG agent — inject docs, agent auto-uses rag_search tool to retrieve + answer
docs = [
"For VPN server list contact IT support ([email protected]).",
"Reset VPN password: log into portal.company.com → personal settings → VPN → reset.",
"Company WiFi setup is in employee handbook chapter 3.",
# ... more docs
]
job = client.agents.run(
task="Based on these docs, answer:How to reset employee VPN?",
rag_documents=docs,
tools=["rag_search"], # restrict to rag_search only, do not let agent use other tools
model="nexevo-auto",
)
print(job["result"])
# Agent auto:
# 1. see task + know docs preloaded → tool_call rag_search(query="how to reset VPN")
# 2. tool_result returns top-5 most relevant
# 3. aggregate answer → final_answer