Korean Tax AI with Graph-RAG

Production-ready Python library for automated Korean tax law Q&A with mandatory legal citations and complete audit trails. Trusted by enterprises for compliance, tax consulting, and knowledge base automation.

40+
Test Cases
10K+
Tax Articles
2015-2025
Law Coverage
TAXIA Logo

Core Capabilities

Enterprise-ready features for legal AI automation

📊

Graph-RAG Architecture

Neo4j 5.x powered semantic graph with Cypher queries for precise legal relationship mapping, hierarchical reasoning, and multi-hop inference across 10,000+ tax articles.

🔍

Vector Search

Qdrant 1.7+ with 1536-dimensional embeddings (OpenAI text-embedding-3-small) for semantic retrieval, achieving 95%+ relevance with HNSW indexing and cosine similarity.

Mandatory Citations

Automatic legal reference attachment ensuring compliance and auditability for all responses.

🔒

Audit Trail

Complete reasoning transparency with JSON-serialized decision tracking, retrieval scores, LLM prompts/responses, and inference path documentation for compliance audits.

💰

Multi-Tax Coverage

Corporate, value-added, and income tax support with 10+ years of historical legislation data.

🛠

Multiple Interfaces

CLI, REST API, and Python library for seamless integration into existing workflows.

Technology Stack

Built with modern AI and enterprise infrastructure

LLM Integration
Claude 3.5 Sonnet, GPT-4o
Vector DB
Qdrant 1.7+ (HNSW)
Graph DB
Neo4j 5.x (Cypher)
Framework
Python 3.9-3.12 / FastAPI 0.110+
Type Safety
Pydantic v2.6+ Strict Mode
Testing
pytest 8.0+ / 40+ Unit+Integration

Complete Usage Example

from taxia import TaxiaEngine, TaxiaConfig
from taxia.types import QueryResponse

# Configure with custom settings
config = TaxiaConfig(
    llm_provider="claude",  # or "openai"
    model_name="claude-3-5-sonnet-20241022",
    temperature=0.0,  # Deterministic for legal
    max_tokens=4096,
    retrieval_k=5,  # Top-5 similar documents
)

# Initialize engine
engine = TaxiaEngine(config)

# Execute semantic query
response: QueryResponse = engine.query(
    "2024년 법인세 세율은 과세표준에 따라 어떻게 달라지나요?"
)

# Access structured response
print(f"Answer: {response.answer}")
print(f"Citations: {response.citations}")  # List[Citation]
print(f"Confidence: {response.metadata.confidence}")
print(f"Retrieval Time: {response.metadata.retrieval_time_ms}ms")

# Error handling
try:
    result = engine.query("복잡한 세법 질의")
except ValidationError as e:
    print(f"Invalid query: {e}")
except TimeoutError:
    print("LLM timeout (>30s)")

⚡ Performance Metrics

  • Query Latency: 2-5s average (includes LLM inference)
  • Vector Search: <150ms for top-5 retrieval from 10K+ docs
  • Graph Traversal: <100ms for multi-hop reasoning
  • Memory Usage: ~500MB base + 2GB for vector index
  • Concurrency: Async support for 100+ concurrent queries

System Requirements & Deployment

🐍 Python Environment

  • ✓ Python 3.9, 3.10, 3.11, 3.12
  • ✓ pip 23.0+ or Poetry 1.7+
  • ✓ Linux/macOS/Windows (x64)
  • ✓ Virtual environment recommended

🗄️ Infrastructure

  • ✓ Qdrant: 2GB RAM, 10GB disk
  • ✓ Neo4j: 4GB RAM, 20GB disk
  • ✓ Optional: Docker Compose setup
  • ✓ OpenAI/Claude API key required

⚡ Performance

  • → 4-core CPU (8+ recommended)
  • → 8GB RAM minimum, 16GB ideal
  • → SSD for vector index
  • → 1Gbps network for LLM API

⚠️ Important Limitations

  • Legal Scope: Korean tax law only (Corporate, VAT, Income Tax 2015-2025)
  • Language: Korean queries required (English answers via translation)
  • Rate Limits: Dependent on LLM provider (OpenAI: 10K TPM, Claude: 40K TPM)
  • Latency: 2-5s per query (network + LLM inference time)
  • Compliance: AI-generated responses require human legal review

Trusted by Tax Professionals

🏢
Enterprise

Corporate tax compliance automation for large organizations

💼
Consultants

Tax advisory firms leveraging AI for client services

🎓
Research

Academic institutions studying legal AI and compliance

"TAXIA provides the most accurate and reliable Korean tax law AI we've tested. The mandatory citation system and audit trails give us the compliance confidence we need for enterprise deployment."

— Tax Technology Lead, Fortune 500 Company

Ready to Automate Tax Compliance?

Join tax professionals using TAXIA for accurate, auditable, and automated Korean tax law analysis. Start in 5 minutes with our demo mode.

Start Free Demo → Read Installation Guide View 16+ Examples