- Remove includeVFS parameter and broken isVFS filtering logic - Add excludeVFS parameter for optional VFS entity filtering - VFS entities now part of knowledge graph by default - Enable O(1) graph adjacency optimizations for VFS operations - Update all VFS projections and PathResolver - Add comprehensive VFS visibility documentation This fixes the bug where VFS operations returned empty results due to operator object mismatch in storage adapters. VFS relationships now use proper graph traversal without metadata filtering. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| architecture | ||
| augmentations | ||
| deployment | ||
| features | ||
| guides | ||
| operations | ||
| vfs | ||
| api-returns.md | ||
| API_DECISION_TREE.md | ||
| API_REFERENCE.md | ||
| CORE_API_PATTERNS.md | ||
| CREATING-AUGMENTATIONS.md | ||
| DEVELOPER_LEARNING_PATH.md | ||
| EXTENDING_STORAGE.md | ||
| FIND_SYSTEM.md | ||
| METADATA_CONTRACT_IMPLEMENTATION.md | ||
| MIGRATION-V3-TO-V4.md | ||
| MODEL_LOADING_QUICK_REFERENCE.md | ||
| NEURAL_API_PATTERNS.md | ||
| PERFORMANCE.md | ||
| QUICK-START.md | ||
| README.md | ||
| RELEASE-GUIDE.md | ||
| SCALING.md | ||
| troubleshooting.md | ||
| universal-display-augmentation.md | ||
| VALIDATION.md | ||
| ZERO_CONFIG.md | ||
Brainy Documentation (v4.0.0)
Welcome to the comprehensive documentation for Brainy, the multi-dimensional AI database with Triple Intelligence Engine.
🆕 What's New in v4.0.0
Production-Ready Cost Optimization:
- Lifecycle Management: Automatic tier transitions for S3, GCS, Azure (96% cost savings!)
- Intelligent-Tiering: S3 Intelligent-Tiering and GCS Autoclass support
- Batch Operations: Efficient bulk delete operations (1000 objects per request)
- Compression: Gzip compression for FileSystem storage (60-80% space savings)
- Quota Monitoring: Real-time OPFS quota tracking for browser apps
- Tier Management: Azure Hot/Cool/Archive tier management
Cost Impact Example (500TB dataset):
- Before: $138,000/year
- After v4.0.0: $5,940/year
- Savings: $132,060/year (96%)
📊 Implementation Status
- ✅ Production Ready: Core features working today
- 🚧 In Development: Features coming soon
- 📅 Roadmap: See ROADMAP.md
Quick Links
Getting Started
- Quick Start Guide - Get up and running in minutes
- Enterprise for Everyone - No limits, no tiers, everything free
- Natural Language Queries - Query with plain English
Core Concepts
- Zero Configuration - Auto-adapts to any environment
- Noun-Verb Taxonomy - Revolutionary data model
- Triple Intelligence - Unified query system
- Architecture Overview - System design
API Documentation
- API Reference - Complete API documentation
- TypeScript Types - Type definitions
Advanced Topics
- Augmentations System - Enterprise plugins & neural import
- Storage Architecture - Storage adapter system
- Performance Tuning - Optimization guide
- Migration Guide - Upgrading from 1.x
What is Brainy?
Brainy is a next-generation AI database that combines:
- Vector Search: Semantic similarity using HNSW indexing
- Graph Relationships: Complex relationship mapping and traversal
- Field Filtering: Precise metadata filtering with O(1) lookups
- Natural Language: Query in plain English
Key Features
🧠 Triple Intelligence Engine
All three intelligence types (vector, graph, field) work together in every query for optimal results.
📝 Noun-Verb Taxonomy
Model your data naturally as entities (nouns) and relationships (verbs) - no complex schemas needed.
🌍 Natural Language Queries
Ask questions in plain English and Brainy understands your intent:
await brain.find("recent articles about AI with high ratings")
⚡ Production Ready
- Universal storage (FileSystem, S3, OPFS, Memory)
- Zero configuration with intelligent defaults
- Full TypeScript support
- Cross-platform compatibility
Quick Example
import { Brainy } from 'brainy'
// Initialize
const brain = new Brainy()
await brain.init()
// Add entities (nouns)
const articleId = await brain.add("Revolutionary AI Breakthrough", {
type: "article",
category: "technology",
rating: 4.8
})
const authorId = await brain.add("Dr. Sarah Chen", {
type: "person",
role: "researcher"
})
// Create relationships (verbs)
await brain.relate(authorId, articleId, "authored", {
date: "2024-01-15",
contribution: "primary"
})
// Query naturally
const results = await brain.find("highly rated technology articles by researchers")
📚 Complete Documentation Index
🚀 Quick Start Guides
| Document | Description |
|---|---|
| Getting Started | 5-minute setup guide - install, configure, first query |
| VFS Quick Start | Virtual filesystem in 30 seconds |
| Quick Start | Alternative quick start guide |
🆕 v4.0.0 Migration & Optimization
| Document | Description |
|---|---|
| v3→v4 Migration Guide | NEW - Upgrade guide with zero breaking changes |
| AWS S3 Cost Optimization | NEW - 96% cost savings with lifecycle policies |
| GCS Cost Optimization | NEW - 94% savings with Autoclass |
| Azure Cost Optimization | NEW - 95% savings with tier management |
| Cloudflare R2 Cost Guide | NEW - Zero egress fees + S3-compatible API |
🎯 Core Concepts
| Document | Description |
|---|---|
| Architecture Overview | High-level system design and components |
| Noun-Verb Taxonomy | Revolutionary data model - entities and relationships |
| Triple Intelligence | Vector + Graph + Field unified query system |
| Zero Configuration | Auto-adapts to any environment |
| Storage Architecture | v4.0.0 - Storage adapters and optimization |
| Data Storage Architecture | v4.0.0 - Metadata/vector separation, sharding |
| Index Architecture | HNSW, Graph, and Metadata indexing |
💾 Storage & Deployment
| Document | Description |
|---|---|
| Cloud Deployment Guide | v4.0.0 - Deploy on AWS, GCP, Azure, Cloudflare |
| AWS Deployment | AWS-specific deployment patterns |
| GCP Deployment | Google Cloud deployment |
| Kubernetes Deployment | K8s deployment configurations |
| Distributed Storage | Multi-node storage coordination |
| Extending Storage | Create custom storage adapters |
| Capacity Planning | Scale to millions of entities |
📊 API Documentation
| Document | Description |
|---|---|
| API Reference | Complete API documentation |
| Comprehensive API Overview | All APIs with examples |
| API Decision Tree | Choose the right API for your use case |
| Core API Patterns | Common patterns and best practices |
| Neural API Patterns | AI-powered query patterns |
| Find System | Natural language find() API |
| API Surface Design | API design principles |
| API Returns | Return types and structures |
🔧 Framework Integration
| Document | Description |
|---|---|
| Framework Integration Guide | React, Vue, Angular, Svelte, etc. |
| Next.js Integration | Server-side rendering with Brainy |
| Vue.js Integration | Vue 3 integration patterns |
📁 Virtual Filesystem (VFS)
| Document | Description |
|---|---|
| VFS Core Documentation | Core VFS concepts and architecture |
| Semantic VFS Guide | Semantic filesystem projections |
| VFS API Guide | Complete VFS API reference |
| Neural Extraction | AI-powered file analysis |
| Common Patterns | VFS usage patterns |
| User Functions | Custom VFS functions |
| VFS Graph Types | Graph-based VFS projections |
| VFS Examples & Scenarios | Real-world VFS examples |
| VFS Initialization | Setup and configuration |
| Projection Strategy API | Custom projection strategies |
| Building File Explorers | Build custom file browsers |
| VFS Troubleshooting | Common issues and solutions |
🧠 Advanced Topics
| Document | Description |
|---|---|
| Natural Language Queries | Query in plain English |
| Neural API | AI-powered features |
| Import Anything | Import data from any source |
| Distributed Systems | Multi-node deployments |
| Model Loading | Load and manage AI models |
| Model Loading Quick Reference | Model loading cheat sheet |
| Enterprise for Everyone | No paywalls, no tiers |
🔌 Augmentations (Plugins)
| Document | Description |
|---|---|
| Creating Augmentations | Build custom plugins |
| Augmentations Complete Reference | Full augmentation API |
| Augmentations Developer Guide | Plugin development guide |
| Augmentation Configuration | Configure augmentations |
| Augmentation System | System architecture |
| Augmentation System Audit | Actual vs planned features |
| Augmentations Actual | Currently implemented augmentations |
| API Server Augmentation | REST API server plugin |
⚡ Performance & Scaling
| Document | Description |
|---|---|
| Performance Guide | Optimization techniques |
| Performance Analysis | Benchmarks and analysis |
| Scaling Guide | Scale to billions of entities |
| Clustering Algorithms Analysis | HNSW algorithm details |
| Initialization & Rebuild | Index management |
📋 Reference
| Document | Description |
|---|---|
| Complete Feature List | All Brainy features |
| v3 Features | v3.x feature list |
| Metadata Architecture | Metadata namespacing |
| Metadata Contract Implementation | Metadata API contracts |
| Finite Type System | Type-safe noun/verb taxonomy |
| Validation | Data validation rules |
| Universal Display Augmentation | Display system |
🛠️ Development
| Document | Description |
|---|---|
| Troubleshooting | Common issues and solutions |
| Release Guide | How to release new versions |
🔍 Internal Documentation
| Document | Description |
|---|---|
| Audit Report | Feature audit |
| Cleanup Summary | Codebase cleanup notes |
| Honest Status | Actual implementation status |
Documentation Structure
docs/
├── README.md (this file) # Complete documentation index
├── MIGRATION-V3-TO-V4.md # v4.0.0 migration guide
│
├── guides/ # User guides
│ ├── getting-started.md
│ ├── natural-language.md
│ ├── neural-api.md
│ ├── import-anything.md
│ ├── framework-integration.md
│ ├── nextjs-integration.md
│ ├── vue-integration.md
│ ├── distributed-system.md
│ ├── model-loading.md
│ └── enterprise-for-everyone.md
│
├── architecture/ # System architecture
│ ├── overview.md
│ ├── noun-verb-taxonomy.md
│ ├── triple-intelligence.md
│ ├── zero-config.md
│ ├── storage-architecture.md # v4.0.0
│ ├── data-storage-architecture.md # v4.0.0
│ ├── index-architecture.md
│ ├── distributed-storage.md
│ ├── augmentations.md
│ ├── augmentation-system-audit.md
│ ├── augmentations-actual.md
│ ├── finite-type-system.md
│ └── ...
│
├── operations/ # Operations guides
│ ├── cost-optimization-aws-s3.md # v4.0.0
│ ├── cost-optimization-gcs.md # v4.0.0
│ ├── cost-optimization-azure.md # v4.0.0
│ ├── cost-optimization-cloudflare-r2.md # v4.0.0
│ └── capacity-planning.md
│
├── deployment/ # Deployment guides
│ ├── CLOUD_DEPLOYMENT_GUIDE.md # v4.0.0
│ ├── aws-deployment.md
│ ├── gcp-deployment.md
│ └── kubernetes-deployment.md
│
├── vfs/ # Virtual Filesystem docs
│ ├── QUICK_START.md
│ ├── VFS_CORE.md
│ ├── SEMANTIC_VFS.md
│ ├── VFS_API_GUIDE.md
│ ├── NEURAL_EXTRACTION.md
│ ├── COMMON_PATTERNS.md
│ └── ...
│
├── api/ # API documentation
│ ├── README.md
│ └── COMPREHENSIVE_API_OVERVIEW.md
│
├── augmentations/ # Augmentation docs
│ ├── COMPLETE-REFERENCE.md
│ ├── DEVELOPER-GUIDE.md
│ ├── CONFIGURATION.md
│ └── api-server.md
│
├── features/ # Feature documentation
│ ├── complete-feature-list.md
│ └── v3-features.md
│
└── internal/ # Internal docs
├── AUDIT_REPORT.md
├── CLEANUP_SUMMARY.md
└── HONEST_STATUS.md
Community
- GitHub: github.com/brainy-org/brainy
- Issues: Report bugs or request features
- Discussions: Join the conversation
License
Brainy is MIT licensed. See LICENSE for details.