ragify_flutter 0.0.2
ragify_flutter: ^0.0.2 copied to clipboard
Intelligent Context Orchestration Framework for Flutter - Smart Context for LLM-Powered Applications
example/README.md
π RAGify Flutter Package Examples #
Welcome to the RAGify Flutter package examples! This directory contains working Flutter applications that demonstrate how to use the RAGify Flutter package in real Flutter projects.
π― What This Provides #
These are actual Flutter apps that you can run, modify, and use as a starting point for your own projects. Each example is a complete, working Flutter application that imports and uses the RAGify package.
π± Available Examples #
1. π Basic Usage (basic_usage/
) #
- Purpose: Get started with RAGify in 5 minutes
- What you'll learn: Basic initialization, data sources, context retrieval
- Features: Simple search interface, system status, basic logging
- Perfect for: First-time users, understanding core concepts
2. π― Advanced Features (advanced_features/
) #
- Purpose: Master advanced scoring and fusion capabilities
- What you'll learn: Multi-algorithm scoring, user personalization, intelligent fusion
- Features: Tabbed interface, advanced scoring, fusion engine, user profiles
- Perfect for: Building intelligent content systems, user personalization
3. π Full Integration (full_integration/
) #
- Purpose: See all RAGify features working together
- What you'll learn: Complete workflow, all engines, comprehensive integration
- Features: Full feature set, real-time updates, comprehensive monitoring
- Perfect for: Understanding complete workflow, production applications
πββοΈ How to Run Examples #
Prerequisites #
- Flutter SDK (3.10.0 or higher)
- Dart SDK (3.8.1 or higher)
- RAGify Flutter package (this project)
Running Examples #
Option 1: Run from Root Directory
# From the ragify_flutter root directory
flutter run -d chrome example/basic_usage/lib/main.dart
flutter run -d chrome example/advanced_features/lib/main.dart
flutter run -d chrome example/full_integration/lib/main.dart
Option 2: Run from Example Directory
# Navigate to specific example
cd example/basic_usage
flutter run -d chrome
# Or for mobile
flutter run -d android
flutter run -d ios
Option 3: Open in IDE
- Open the example directory in your IDE (VS Code, Android Studio, etc.)
- Run the
main.dart
file directly
π§ How Examples Work #
Package Import #
Each example imports the RAGify package using:
import 'package:ragify_flutter/ragify_flutter.dart';
Local Development #
Examples use path: ../
to import the package from the parent directory, allowing you to:
- Modify the package and see changes immediately
- Test new features before publishing
- Debug package issues in real Flutter apps
Real Flutter Apps #
These are actual Flutter applications that:
- Use Material Design components
- Have proper state management
- Include error handling and loading states
- Show real-time updates and interactive features
π Learning Path #
π’ Beginner: Start with Basic Usage #
- Run the basic usage example
- Understand initialization and basic setup
- See how data sources work
- Learn basic context retrieval
π‘ Intermediate: Explore Advanced Features #
- Run the advanced features example
- Master advanced scoring algorithms
- Understand user personalization
- Learn intelligent fusion strategies
π΄ Advanced: Master Full Integration #
- Run the full integration example
- See all features working together
- Understand complete workflows
- Learn production patterns
π Customizing Examples #
Modifying for Your Use Case #
- Copy an example to your project
- Update the package import to use the published version:
dependencies: ragify_flutter: ^1.0.0 # Use published version
- Modify the UI and business logic
- Add your data sources and requirements
Common Customizations #
- Database connections for your specific databases
- API endpoints for your services
- UI themes matching your brand
- Business logic for your domain
- Error handling for your requirements
π¨ Troubleshooting #
Common Issues #
1. Package Not Found
# Ensure you're in the example directory
cd example/basic_usage
# Get dependencies
flutter pub get
2. Import Errors
- Check that the package path is correct in
pubspec.yaml
- Ensure you're running from the example directory
- Verify Flutter and Dart versions
3. Platform Issues
- Web: Use
flutter run -d chrome
- Android: Use
flutter run -d android
- iOS: Use
flutter run -d ios
Getting Help #
- Check the logs in the app
- Verify Flutter version:
flutter --version
- Check dependencies:
flutter pub deps
- Clean and rebuild:
flutter clean && flutter pub get
π Example Features Matrix #
Feature | Basic Usage | Advanced Features | Full Integration |
---|---|---|---|
Core Setup | β Complete | β Complete | β Complete |
Data Sources | β Basic | β Basic | β Complete |
Context Retrieval | β Basic | β Basic | β Complete |
Vector Search | β Basic | β Basic | β Complete |
Advanced Scoring | β None | β Complete | β Complete |
Advanced Fusion | β None | β Complete | β Complete |
Privacy & Security | β Basic | β Basic | β Complete |
Real-time Updates | β None | β None | β Complete |
Comprehensive Monitoring | β Basic | β Basic | β Complete |
π― Next Steps #
After Running Examples #
- Understand the code - Read through the implementation
- Modify features - Change UI, add functionality
- Integrate into your app - Use patterns from examples
- Customize for your domain - Adapt to your use case
Building Your Own App #
- Start with basic usage as a template
- Add advanced features as needed
- Customize the UI for your brand
- Integrate with your backend and data sources
π€ Contributing #
Improving Examples #
- Report issues with examples
- Submit improvements via pull requests
- Add new examples for specific use cases
- Improve documentation and code comments
Sharing Your Use Cases #
- Show how you used RAGify in your projects
- Share customizations and improvements
- Contribute patterns that worked for you
- Help other developers learn from your experience
π Ready to Get Started? #
Choose an example and run it:
# Quick start (5 minutes)
flutter run -d chrome example/basic_usage/lib/main.dart
# Advanced features
flutter run -d chrome example/advanced_features/lib/main.dart
# Full integration
flutter run -d chrome example/full_integration/lib/main.dart
These are REAL Flutter apps that you can run, modify, and use in your own projects!
For more information about the RAGify package, see the main README.md and documentation.