ragify_flutter 0.0.1 copy "ragify_flutter: ^0.0.1" to clipboard
ragify_flutter: ^0.0.1 copied to clipboard

Intelligent Context Orchestration Framework for Flutter - Smart Context for LLM-Powered Applications

πŸš€ RAGify Flutter #

Intelligent Context Orchestration Framework for Flutter - Smart Context for LLM-Powered Applications

A Flutter package that combines data from multiple sources (documents, APIs, databases, real-time) and resolves conflicts intelligently. Built specifically for LLM-powered Flutter applications that need accurate, current information.

🎯 Why RAGify Flutter? #

Building AI-powered Flutter apps is challenging because:

  • Multiple data sources need to be combined intelligently
  • Conflicting information between sources must be resolved
  • Real-time updates require efficient context management
  • Privacy and security need to be built-in, not bolted-on
  • Performance must be optimized for mobile and web

RAGify Flutter solves these problems with a unified, production-ready framework.

🌟 What You Get #

Core Capabilities #

  • Multi-Source Context Fusion - Combine data from documents, APIs, databases, and real-time sources
  • Intelligent Conflict Resolution - Detect and resolve contradictions using source authority and freshness
  • Privacy Management - 4-tier privacy levels (Public, Private, Enterprise, Restricted)
  • Concurrent Processing - Process multiple sources simultaneously for better performance
  • Relevance Scoring - Multi-factor assessment of context relevance

Flutter-Specific Features #

  • Cross-Platform Support - Works on iOS, Android, Web, and Desktop
  • Async/Await Support - Full async support for non-blocking operations
  • State Management Integration - Works with Provider, Bloc, Riverpod, and other state management solutions
  • Performance Optimized - Efficient memory usage and processing

πŸš€ Quick Start #

1. Add Dependency #

dependencies:
  ragify_flutter: ^0.1.0

2. Import Package #

import 'package:ragify_flutter/ragify_flutter.dart';

3. Basic Usage #

// Create RAGify instance
final ragify = RAGify();

// Initialize
await ragify.initialize();

// Add data sources
ragify.addDataSource(DocumentSource(
  name: 'docs',
  documentPath: './documents',
));

// Get context
final context = await ragify.getContext(
  query: 'What are the latest features?',
  maxChunks: 10,
  minRelevance: 0.7,
);

// Use the context
for (final chunk in context.chunks) {
  print('${chunk.content} (Score: ${chunk.relevanceScore?.score})');
}

πŸ—οΈ Architecture #

Core Components #

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                Flutter Application                            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                    RAGify Flutter                             β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚   Fusion    β”‚ β”‚   Scoring   β”‚ β”‚   Storage   β”‚ β”‚   Updates   β”‚ β”‚
β”‚  β”‚  Engine     β”‚ β”‚  Engine     β”‚ β”‚  Engine     β”‚ β”‚  Engine     β”‚ β”‚
β”‚  β”‚ (Conflicts) β”‚ β”‚ (Relevance) β”‚ β”‚ (Save)      β”‚ β”‚ (Live)      β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚   Vector    β”‚ β”‚   Cache     β”‚ β”‚   Privacy   β”‚ β”‚   Monitor   β”‚ β”‚
β”‚  β”‚     DB      β”‚ β”‚  Manager    β”‚ β”‚  Manager    β”‚ β”‚  Engine     β”‚ β”‚
β”‚  β”‚(Local/Cloud)β”‚ β”‚(Memory/Redis)β”‚ β”‚ (Encrypt)   β”‚ β”‚(Performance)β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                    Data Sources                                 β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  Documents  β”‚ β”‚    APIs     β”‚ β”‚  Databases  β”‚ β”‚ Real-time   β”‚ β”‚
β”‚  β”‚ (PDF, DOCX, β”‚ β”‚ (REST,      β”‚ β”‚ (SQL,       β”‚ β”‚   Data      β”‚ β”‚
β”‚  β”‚ TXT, MD)    β”‚ β”‚ GraphQL)    β”‚ β”‚ NoSQL)      β”‚ β”‚(WebSocket,  β”‚ β”‚
β”‚  β”‚             β”‚ β”‚             β”‚ β”‚             β”‚ β”‚ MQTT, Kafka)β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“± Examples #

The package includes complete example applications:

  • Basic Usage - Simple context retrieval
  • Advanced Features - Complex integration patterns
  • Full Integration - Complete application examples

Run examples:

cd example/basic_usage
flutter run

πŸ”§ Configuration #

final config = RagifyConfig(
  privacyLevel: PrivacyLevel.enterprise,
  maxContextSize: 50000,
  defaultRelevanceThreshold: 0.7,
  enableCaching: true,
  cacheTtl: 7200,
  conflictDetectionThreshold: 0.8,
  sourceTimeout: 60.0,
  maxConcurrentSources: 20,
);

final ragify = RAGify(config: config);

πŸ§ͺ Testing #

# Run all tests
flutter test

# Run with coverage
flutter test --coverage

# Current coverage: 40.92%

πŸ”’ Privacy & Security #

  • 4 Privacy Levels: Public, Private, Enterprise, Restricted
  • Encryption: AES-256, RSA-2048, ChaCha20 support
  • Access Control: Role-based permissions (Guest to Superuser)
  • Audit Logging: Complete operation tracking
  • Compliance: GDPR, HIPAA, SOX ready

πŸš€ Performance #

  • Response Time: Optimized for <200ms typical queries
  • Concurrent Processing: Multi-isolate parallel processing
  • Memory Efficient: Intelligent caching and chunking
  • Cross-Platform: Platform-specific optimizations

πŸ”Œ Data Sources #

  • Documents: PDF, DOCX, TXT, Markdown
  • APIs: REST, GraphQL with rate limiting
  • Databases: PostgreSQL, MySQL, MongoDB, SQLite
  • Real-time: WebSocket, MQTT, Redis, Kafka

🀝 Contributing #

We welcome contributions! See Contributing Guide for details.

# Development setup
git clone https://github.com/sumitnemade/ragify_flutter.git
cd ragify_flutter
flutter pub get
flutter test

πŸ“„ License #

BSD 3-Clause License - see LICENSE file for details.

πŸ†˜ Support #


Built with ❀️ for the Flutter community

1
likes
0
points
207
downloads

Publisher

unverified uploader

Weekly Downloads

Intelligent Context Orchestration Framework for Flutter - Smart Context for LLM-Powered Applications

Repository (GitHub)
View/report issues

Topics

#ai #context-management #data-fusion #privacy #flutter

Documentation

Documentation

License

unknown (license)

Dependencies

async, crypto, dio, encrypt, flutter, hive, hive_flutter, http, intl, json_annotation, logger, mongo_dart, mysql1, path, path_provider, postgres, provider, shared_preferences, sqflite, uuid, web_socket_channel

More

Packages that depend on ragify_flutter