brainy/test-cortex-demo.sh
David Snelling 0fef72aa24 feat: add Cortex CLI, augmentation system, and enterprise features
Major enhancements to Brainy vector + graph database:

Core Features (FREE):
- Cortex CLI: Complete command center for database management
- Neural Import: AI-powered data understanding and entity extraction
- Augmentation Pipeline: 8-stage extensible processing system
- Brainy Chat: Natural language interface to query data
- Performance monitoring and health diagnostics
- Backup/restore with compression and encryption
- Webhook system for enterprise integrations

Infrastructure:
- Clean separation of core (open source) and premium features
- Lazy-loaded augmentations with zero performance impact
- Comprehensive documentation for all new features
- Full TypeScript support with proper interfaces

Performance:
- Zero impact on core operations (proven with benchmarks)
- 2-3% performance improvement from better caching
- Package size remains at 643KB (no bloat)

Security:
- Removed sensitive files from Git history
- Added .gitignore rules for PDFs and private files
- Premium features in separate private repository

Premium Features (separate repository):
- Quantum Vault connectors (Notion, Salesforce, Slack, Asana)
- Licensing system for premium augmentations
- Revenue projections and business model

This commit maintains 100% backward compatibility while adding
powerful enterprise features as progressive enhancements.
2025-08-07 19:33:03 -07:00

66 lines
No EOL
2.2 KiB
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Cortex Demo Script - Test all the features!
echo "🧠 Welcome to Cortex Demo!"
echo "=========================="
echo ""
# Initialize Cortex with memory storage (for quick testing)
echo "1⃣ Initializing Cortex..."
echo "Choose 'Memory (testing)' when prompted"
echo ""
node bin/cortex.js init
# Add some test data
echo ""
echo "2⃣ Adding sample data..."
node bin/cortex.js add "John is a software engineer at TechCorp" --metadata '{"type": "person", "role": "engineer", "company": "TechCorp"}'
node bin/cortex.js add "Jane is a data scientist at DataCo" --metadata '{"type": "person", "role": "scientist", "company": "DataCo"}'
node bin/cortex.js add "AI Project for customer analytics" --metadata '{"type": "project", "domain": "AI", "status": "active"}'
node bin/cortex.js add "Machine Learning Workshop next week" --metadata '{"type": "event", "topic": "ML", "date": "2024-02-15"}'
# Add relationships
echo ""
echo "3⃣ Adding graph relationships..."
node bin/cortex.js verb "John" "works_on" "AI Project"
node bin/cortex.js verb "Jane" "leads" "AI Project"
node bin/cortex.js verb "John" "attends" "Machine Learning Workshop"
# Show statistics
echo ""
echo "4⃣ Database statistics..."
node bin/cortex.js stats --detailed
# List searchable fields
echo ""
echo "5⃣ Searchable fields..."
node bin/cortex.js fields
# Test search with filters
echo ""
echo "6⃣ Advanced search with MongoDB-style filters..."
node bin/cortex.js search "engineer" --filter '{"type": "person"}' --limit 5
# Test similarity
echo ""
echo "7⃣ Testing semantic similarity..."
node bin/cortex.js similarity "software developer" "programmer"
# Test embedding
echo ""
echo "8⃣ Generate embedding..."
node bin/cortex.js embed "artificial intelligence"
# Interactive chat (you can exit with 'exit')
echo ""
echo "9⃣ Try chatting with your data!"
echo "Type 'exit' to quit the chat"
echo ""
node bin/cortex.js chat "What do we know about AI?"
echo ""
echo "🎉 Demo complete! You can now try:"
echo " - cortex explore # Interactive graph exploration"
echo " - cortex chat # Interactive chat mode"
echo " - cortex llm # Setup an LLM provider"
echo " - cortex shell # Interactive shell"