Quickstart
-
Create an API key. Sign in to the VOL app, open Developer → API keys and click New key. Copy it now: the full key (
vol_live_…) is shown only once. -
Check the API is up (public endpoint, no key needed):
Terminal window curl https://vol.example.com/api/v1/health# {"status":"ok","ragflow":true,"version":"1.0.0"} -
List the available cases (corpora):
Terminal window curl https://vol.example.com/api/v1/cases -
Ask a question. Pick a case with
"available": true:Terminal window curl https://vol.example.com/api/v1/chat \-H "X-API-Key: $VOL_API_KEY" \-H "Content-Type: application/json" \-d '{"case":"papers","question":"Which methods combine knowledge graphs with LLMs?"}'import { VolClient } from "@vol/sdk";const vol = new VolClient({ baseUrl: "https://vol.example.com/api", apiKey: process.env.VOL_API_KEY });const res = await vol.chat({ case: "papers", question: "Which methods combine knowledge graphs with LLMs?" });console.log(res.answer, res.citations);import os, requestsr = requests.post("https://vol.example.com/api/v1/chat",headers={"X-API-Key": os.environ["VOL_API_KEY"]},json={"case": "papers", "question": "Which methods combine knowledge graphs with LLMs?"},timeout=120,)r.raise_for_status()print(r.json()["answer"]) -
Read the response.
answercontains markers like[1]; each one maps tocitations[0], and each citation has anodeIndexyou can use to locate it on the map.
Where to go next
Section titled “Where to go next”- Stream tokens as they are generated: Chat & streaming.
- Add a chat to your React app in 10 lines: React atoms.
- Add a chat to any website: Embedding VOL.