RangerIO Guide

6. AI Chat & Analysis

Getting Started with AI Chat

The AI chat interface lets you analyze your data using natural language questions. After importing data, ask questions as if you were talking to a data analyst. RangerIO answers locally by default; when you opt in to the Stage 2 connector, it routes the dossier (not the raw rows) to a cloud model and masks any remaining sensitive values before they leave your workstation.

💡 UI Location: Find the chat interface by clicking the "Chat" or "AI Assistant" tab in the left sidebar after importing data

How AI Chat Works

graph LR A[💬 Your Question] -->|Parse Intent| B[🧠 Query Processor] B -->|Retrieve Context| C[(🎯 Vector DB)] B -->|Query Data| D[(📊 Analytics DB)] C -->|Relevant Chunks| E[📦 Context Assembly] D -->|Query Results| E E -->|Build Prompt| F[🤖 Local LLM] A -->|Question| F F -->|Generate| G[💡 Answer] G -->|Add Citations| H[📝 Response] style A fill:#f3f4f6 style B fill:#dbeafe style C fill:#10b981,color:#fff style D fill:#10b981,color:#fff style E fill:#059669,color:#fff style F fill:#047857,color:#fff style G fill:#065f46,color:#fff style H fill:#064e3b,color:#fff

Processing Pipeline:
1. Question Analysis - Intent detection and entity extraction
2. Context Retrieval - Hybrid search (vector + BM25) over the dossier and indexed chunks
3. Data Query - SQL execution against the local analytics engine if needed
4. Prompt Engineering - Combine context with user question
5. Safe Handoff (when routing to cloud) - Mask sensitive values before any cloud round-trip; restore them when the answer returns
6. Inference - Generate the answer locally, or via the Stage 2 connector if enabled
7. Citation Linking - Add source references

Asking Questions

Basic Queries

Complex Analysis

Data Transformation

RAG Modes

Basic Mode - Fast, simple queries (2-5 seconds)
- Quick lookups and filtering
- Best for straightforward questions

Assistant Mode ⭐ Recommended (5-15 seconds)
- General analysis and multi-step reasoning
- Balanced speed and accuracy
- Best for most use cases

Deep Search Mode - Comprehensive analysis (15-60 seconds)
- Complex multi-source queries
- Maximum context and accuracy
- Best for research-style questions

Understanding Responses

AI answers include:
- Direct answer to your question
- Supporting evidence and statistics
- Source citations with links
- Confidence indicator (🟢 High, 🟡 Medium, 🔴 Low)

Best Practices

DO:
- ✅ Be specific: "Show Q1 2024 sales" not "Show sales"
- ✅ Use context: "Based on customer table..."
- ✅ Ask follow-ups to build on previous answers
- ✅ Specify output format: "as a table"

DON'T:
- ❌ Be vague: "Tell me about the data"
- ❌ Ask multiple unrelated questions at once
- ❌ Expect predictions beyond your data

Working with Multiple Sources

Performance Tips

For faster responses:
- Use Basic mode
- Select specific data sources (not "All")
- Use smaller models
- Ask focused questions

For better accuracy:
- Use Deep Search mode
- Step up to a larger local model (e.g., Qwen3 8B / DeepSeek-R1 Distill 7B), or route via the Stage 2 connector to a cloud model
- Provide more context
- Request confidence levels

Chat History

For more details, see the in-app help and FAQ section.