Skip to content

RoboSystems is a financial knowledge graph platform that transforms complex financial data into actionable intelligence through graph-based analytics and AI-powered insights. Fork-ready with full GitHub Actions CI/CD for deploying CloudFormation infrastructure to your AWS account.

License

Notifications You must be signed in to change notification settings

RoboFinSystems/robosystems

Repository files navigation

RoboSystems

RoboSystems is an enterprise-grade financial knowledge graph platform that transforms complex financial data into actionable intelligence through graph-based analytics and AI-powered insights.

  • Graph-Based Financial Intelligence: Leverages graph database technology to model complex financial relationships
  • GraphRAG Architecture: Knowledge graph-based retrieval-augmented generation for LLM-powered financial analysis
  • Model Context Protocol (MCP): Standardized server and client for LLM integration
  • Multi-Source Data Integration: SEC XBRL filings, QuickBooks accounting data, and custom financial datasets
  • Enterprise-Ready Infrastructure: Multi-tenant architecture with tiered scaling and production-grade query management
  • Developer-First API: RESTful API designed for integration with financial applications

Core Features

  • Multi-Tenant Graph Databases: Isolated graph databases with tiered cluster-based scaling
  • AI Agent Interface: Natural language financial analysis via Model Context Protocol (MCP)
  • Entity & Generic Graphs: Curated schemas for RoboLedger/RoboInvestor, plus custom schema support
  • Shared Repositories: SEC XBRL filings knowledge graph for context mining
  • QuickBooks Integration: Complete accounting synchronization with trial balance creation
  • DuckDB Staging System: High-performance data validation and bulk ingestion pipeline
  • Credit-Based Billing: AI operations consume credits based on token usage
  • Query Queue System: Production-ready query management with admission control

Quick Start

Docker Development Environment

# Install uv (Python package and version manager)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Or on macOS with Homebrew: brew install uv

# Install just (command runner)
uv tool install rust-just

# Start all services (includes automatic migrations and seeds)
just start

This initializes the .env file and starts the complete RoboSystems stack with:

  • Graph database (Kuzu by default, Neo4j optional)
  • PostgreSQL with automatic migrations
  • Valkey message broker
  • All development services

Local Development

# Setup Python environment (uv automatically handles Python versions)
just init

Examples & Demos

See RoboSystems in action with runnable demos that create graphs, load data, and execute queries with the robosystems-client:

just demo-sec NVDA          # Loads and queries NVIDIA's SEC XBRL financial data
just demo-accounting        # Creates chart of accounts with 6 months of transactions
just demo-custom-graph      # Builds custom graph schema with relationship networks
  • SEC Demo - Real public company financials from SEC XBRL filings
  • Accounting Demo - Double-entry bookkeeping with trial balance and financial statements
  • Custom Graph Demo - Generic graph with custom schema and relationship patterns

Each demo has a corresponding Wiki article with detailed guides.

Development Commands

Testing

just test                   # Default test suite
just test-cov               # Tests with coverage
just test-all               # Tests with code quality

Log Monitoring

just logs worker 200                 # View worker logs
just logs-grep api "pipeline" 500    # Search API logs
just logs-follow worker              # Tail worker logs

See justfile for 50+ development commands including database migrations, CloudFormation linting, graph operations, administration, and more.

Prerequisites

System Requirements

  • Docker & Docker Compose
  • 8GB RAM minimum
  • 20GB free disk space

Required Tools

  • uv for Python package and version management
  • rust-just for project command runner (installed via uv)

Deployment Requirements

  • Fork this repo
  • GHA secrets & variables initialized
  • AWS account with credentials & secrets initialized

Architecture

RoboSystems is built on a modern, scalable architecture with:

Application Layer:

  • FastAPI REST API with versioned endpoints (/v1/)
  • MCP Server for AI-powered financial analytics
  • Celery workers with priority queues

Graph Database System:

  • Pluggable backends (Kuzu by default, Neo4j optional)
  • Multi-tenant isolation with dedicated databases per entity
  • DuckDB staging system for high-performance data ingestion
  • Tiered infrastructure from multi-tenant to dedicated instances

Data Layer:

  • PostgreSQL for IAM and graph metadata
  • Valkey for caching and message broker
  • AWS S3 for data lake storage and static assets
  • DynamoDB for instance/graph/volume registry

Infrastructure:

  • ECS Fargate for API/Workers (ARM64/Graviton)
  • EC2 auto-scaling groups for graph database writers
  • RDS PostgreSQL + ElastiCache Valkey
  • CloudFormation-managed infrastructure

For detailed architecture documentation, see the Architecture Overview in the Wiki.

AI

Model Context Protocol (MCP)

  • Financial Analysis: Natural language queries across entity and benchmark data
  • Cross-Database Queries: Compare entity data against SEC public data
  • Credit Tracking: AI operations consume credits based on actual token usage
  • Handler Pool: Managed MCP handler instances with resource limits

Agent System

  • Multi-agent architecture with intelligent routing
  • Dynamic agent selection based on query context
  • Parallel query processing with GraphRAG-enabled responses
  • Extensible framework for custom domain expertise

Credit System

  • AI-Focused: Credits consumed only by AI operations (Anthropic/OpenAI API calls)
  • Token-Based Billing: Actual token usage determines credit consumption

Client Libraries

RoboSystems provides comprehensive client libraries for building applications:

MCP (Model Context Protocol) Client

AI integration client for connecting Claude and other LLMs to RoboSystems.

npx -y @robosystems/mcp
  • Features: Claude Desktop integration, natural language queries, graph traversal, financial analysis
  • Use Cases: AI agents, chatbots, intelligent assistants, automated research
  • Documentation: npm | GitHub

TypeScript/JavaScript Client

Full-featured SDK for web and Node.js applications with TypeScript support.

npm install @robosystems/client
  • Features: Type-safe API calls, automatic retry logic, connection pooling, streaming support
  • Use Cases: Web applications, Node.js backends, React/Vue/Angular frontends
  • Documentation: npm | GitHub

Python Client

Native Python SDK for backend services and data science workflows.

pip install robosystems-client
  • Features: Async/await support, pandas integration, Jupyter compatibility, batch operations
  • Use Cases: Data pipelines, ML workflows, backend services, analytics
  • Documentation: PyPI | GitHub

Documentation

User Guides (Wiki)

Developer Documentation (Codebase)

Core Services:

Graph Database System:

Middleware Components:

Development Resources:

  • Examples - Runnable demos and integration examples
  • Tests - Testing strategy and organization
  • Admin Tools - Administrative utilities and scripts

Security & Compliance:

API Reference

Support

License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT © 2025 RFS LLC

About

RoboSystems is a financial knowledge graph platform that transforms complex financial data into actionable intelligence through graph-based analytics and AI-powered insights. Fork-ready with full GitHub Actions CI/CD for deploying CloudFormation infrastructure to your AWS account.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages