English | 简体中文
AVA, AI-native Visual Analytics
AVA (
Visual Analytics) is a technology framework designed for more convenient visual analytics. A stands for AI-native, Automated, and Augmented; VA stands for Visual Analytics.
[!NOTE]
Think of AVA as PandasAI for JavaScript. 💬📊🤖
It brings natural-language data analysis and visualization to your apps and AI agents.
✨ Why AVA?
🔌 Analysis across data sources
Join data from files and databases in a single query.
Connect multiple sources →
|
🔎 Grounded answers
Inspect the queries and results behind each answer.
Trusted analysis →
|
📊 Smart visualization
Get charts guided by your question and data.
Visualization →
|
💻 Local execution
Choose where analysis runs and which model endpoint it uses.
Execution engines →
|
🎯 Published benchmarks
Check accuracy against reference answers under published test conditions.
Benchmarks →
|
🤖 Agent integration
Your agent reasons; AVA executes the data workflow.
Agent integration →
|
🚀 Getting started
Install AVA with Node.js 22.13+:
npm install @antv/ava
💻 Usage
Download sales.csv and configure your model:
import { AVA } from '@antv/ava';
const ava = new AVA({
llm: {
model: '<your-model>',
apiKey: '<your-api-key>',
// baseURL: '<your-provider-api-url>',
},
});
1. Load
await ava.source({ type: 'csv-file', options: { path: './sales.csv' } });
[!NOTE]
Data preview
First 3 of 240 rows, selected columns:
| order_date | product | sales |
|---|
| 2025-01-01 | Monitor | 224.10 |
| 2025-01-02 | Office Chair | 680.20 |
| 2025-01-04 | Monitor | 2,191.20 |
2. Explore
Inspect the structure and data quality, then add business definitions:
const schema = await ava.schema();
const profile = await ava.profile({ metrics: ['row_count', 'null_count'] });
await ava.semantic(undefined, () => ({
description: 'Use the sales column for amounts after discounts and order_date for monthly comparisons.',
}));