Building Minds in Quantum Minds
Introduction
This guide walks you through the process of creating, configuring, and deploying AI-powered minds in Quantum Minds. Whether you're starting from scratch, using a template, or generating a mind using AI, this document provides comprehensive guidance on building effective mind workflows.
Mind Creation Methods
Quantum Minds offers four different approaches to create minds, each suited to different needs and expertise levels:
1. Starting from Scratch (Blank Template)
Best for: Custom workflows with specific requirements, experienced users who want full control
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Blank Template"
- Enter a mind title and description
- Click "Create" to open the Mind Builder interface
- Add and connect operators on the canvas
- Configure each operator's parameters
- Save and test your mind
2. Using Pre-built Templates
Best for: Common use cases, beginners, or when you need a starting point for customization
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Browse available templates in the Templates tab
- Select a template that matches your needs
- Review the template structure and description
- Click "Create" to create a copy of the template
- Customize as needed
- Save and test your mind
Available template categories include:
- Data Analysis
- Document Processing
- Customer Experience
- Financial Reporting
- Media Generation
- Industry-specific solutions
3. AI-Assisted Creation
Best for: Quick mind creation, users who know what they want but aren't sure how to build it
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Create Mind using AI"
- Enter a detailed description of what you want the mind to do
- Specify data sources or collections to use (optional)
- Select an AI model for generation
- Click "Create" to generate the mind
- Review and refine the generated mind
- Save and test your mind
Tips for effective AI-assisted creation:
- Be specific about the desired outcomes
- Mention specific operator types if you have preferences
- Describe the data sources you plan to use
- Include information about any special requirements
4. Importing Mind Schema
Best for: Reusing or sharing minds, migrating minds between environments
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Import MindSchema"
- Upload a previously exported mind schema file (.json)
- Review imported mind details
- Click "Create" to finalize import
- Update connections or settings if needed
- Save and test your mind
Mind Builder Interface
Canvas
The main workspace where you build your mind:
- Operator Nodes: Visual representations of operators
- Connections: Lines showing data flow between operators
- Flow Paths: Conditional branches created by Flow operators
- Annotations: Notes and explanations added to the canvas
Toolbar
Located at the top of the builder, providing essential tools:
- Save: Save current mind state
- Run: Execute the current mind
- AI: Get AI assistance for the current mind
- Export: Export mind schema
- Share: Share mind with others
- Settings: Configure mind settings
Operator Panel
Located on the left side, providing access to operators:
- Categories: Organized by function (SQL, Table, Document, etc.)
- Search: Find specific operators
- Favorites: Quick access to frequently used operators
- Recent: Recently used operators
Properties Panel
Located on the right side when an operator is selected:
- Parameters: Configure operator inputs and settings
- Documentation: Access operator documentation
- Variables: View and manage operator output variables
- Testing: Test the operator in isolation
Adding and Configuring Operators
Adding Operators to the Canvas
- Browse or search for an operator in the Operator Panel
- Drag the operator onto the canvas, or click to add it at the default position
- Position the operator where you want it in your workflow
Configuring Operator Parameters
- Select an operator on the canvas
- The Properties Panel will display available parameters
- Fill in required parameters (marked with *)
- Configure optional parameters as needed
- Use the documentation tab for guidance on parameter usage
Working with Variables
Every operator creates output variables that can be referenced by other operators:
- Variable naming follows the pattern:
$OperatorName_ID.output.property
- Example:
$TextToSQL_001.output.content
- Example:
- To use a variable:
- Select the target operator
- In the input field where you want to use the variable, type `# Building Minds in Quantum Minds
Introduction
This guide walks you through the process of creating, configuring, and deploying AI-powered minds in Quantum Minds. Whether you're starting from scratch, using a template, or generating a mind using AI, this document provides comprehensive guidance on building effective mind workflows.
Mind Creation Methods
Quantum Minds offers four different approaches to create minds, each suited to different needs and expertise levels:
1. Starting from Scratch (Blank Template)
Best for: Custom workflows with specific requirements, experienced users who want full control
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Blank Template"
- Enter a mind title and description
- Click "Create" to open the Mind Builder interface
- Add and connect operators on the canvas
- Configure each operator's parameters
- Save and test your mind
2. Using Pre-built Templates
Best for: Common use cases, beginners, or when you need a starting point for customization
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Browse available templates in the Templates tab
- Select a template that matches your needs
- Review the template structure and description
- Click "Create" to create a copy of the template
- Customize as needed
- Save and test your mind
Available template categories include:
- Data Analysis
- Document Processing
- Customer Experience
- Financial Reporting
- Media Generation
- Industry-specific solutions
3. AI-Assisted Creation
Best for: Quick mind creation, users who know what they want but aren't sure how to build it
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Create Mind using AI"
- Enter a detailed description of what you want the mind to do
- Specify data sources or collections to use (optional)
- Select an AI model for generation
- Click "Create" to generate the mind
- Review and refine the generated mind
- Save and test your mind
Tips for effective AI-assisted creation:
- Be specific about the desired outcomes
- Mention specific operator types if you have preferences
- Describe the data sources you plan to use
- Include information about any special requirements
4. Importing Mind Schema
Best for: Reusing or sharing minds, migrating minds between environments
Process:
- Navigate to the Quantum Minds dashboard
- Click "Create New Mind"
- Select "Import MindSchema"
- Upload a previously exported mind schema file (.json)
- Review imported mind details
- Click "Create" to finalize import
- Update connections or settings if needed
- Save and test your mind
Mind Builder Interface
Canvas
The main workspace where you build your mind:
- Operator Nodes: Visual representations of operators
- Connections: Lines showing data flow between operators
- Flow Paths: Conditional branches created by Flow operators
- Annotations: Notes and explanations added to the canvas
Toolbar
Located at the top of the builder, providing essential tools:
- Save: Save current mind state
- Run: Execute the current mind
- AI: Get AI assistance for the current mind
- Export: Export mind schema
- Share: Share mind with others
- Settings: Configure mind settings
to see available variables
- Select the appropriate variable from the dropdown
- You can combine variables with static text or other variables
Dynamic Parameters
Some operators support dynamic parameters that can change based on context:
- Session variables:
${session.variable_name}
- User variables:
${user.variable_name}
- Environment variables:
${env.variable_name}
- Trigger variables:
${trigger.variable_name}
These can be used to create dynamic workflows that adapt to different users, sessions, or environments.
Creating Connections
Basic Connections
To create a linear flow between operators:
- Hover over the output connector of the source operator
- Click and drag to the input connector of the target operator
- Release to create the connection
- The connection will show as a line between the operators
Managing Multiple Outputs
When an operator has multiple outputs (like Flow.Condition):
- Each output appears as a separate connector point
- Connect each output to the appropriate next operator
- Connections are labeled according to their output type
- Different styling indicates different types of connections (normal flow, conditional path, etc.)
Auto-Connecting Variables
When you reference a variable from one operator in another:
- The system automatically creates a visual connection between those operators
- These connections appear as dotted lines to distinguish them from explicit connections
- You can hide or show these auto-connections using the view settings
Testing and Debugging
Running a Mind
To test your mind:
- Click the "Run" button in the toolbar
- The system will execute operators in the correct sequence based on connections
- A progress indicator shows which operators are currently executing
- Results appear in the output panel at the bottom of the screen
Debugging Mode
For troubleshooting complex minds:
- Enable debugging mode from the toolbar
- Execution will pause after each operator
- Review the outputs before continuing
- Use the step buttons to control execution
- View detailed logs in the debug panel
Common Issues and Solutions
Issue | Possible Causes | Solutions |
---|---|---|
Missing variable reference | Typo in variable name, Operator not yet executed | Check variable spelling, Ensure connected operators execute in the correct order |
Empty results | No data returned, Filter too restrictive | Verify data source has content, Check filter conditions |
Timeout errors | Operation too complex, External service delay | Optimize queries, Break into smaller operations, Check service status |
Out of memory | Too much data, Infinite loops | Limit data size, Add pagination, Check for circular references |
Incorrect output format | Mismatched types, Parsing errors | Verify input/output compatibility, Add type conversion |
Advanced Mind Building
Creating Reusable Patterns
For efficiency in building multiple similar minds:
- Identify common workflows in your organization
- Create mind templates for these patterns
- Export mind fragments as separate schema files
- Share these patterns with your team
- Import patterns into new minds to avoid rebuilding common elements
Working with Models
When using operators that leverage AI models:
- Select appropriate models for your task in the operator properties
- Consider model strengths and limitations:
- Larger models (70B+) for complex reasoning
- Smaller models (7B) for faster, simpler tasks
- Specialized models for specific domains
- Test different models to find the best balance of performance and accuracy
- Consider cost implications of different model choices
Performance Optimization
For minds that need to process large amounts of data or run frequently:
- Filter data early in the workflow
- Use efficient operators for heavy processing
- Consider chunking large datasets
- Use database-native operations when possible
- Cache results where appropriate
- Monitor execution times to identify bottlenecks
Mind Templates
Templates provide ready-to-use starting points for common use cases. Here are some popular templates:
Data Analysis Templates
- Sales Dashboard: Analyze sales data with visualizations and insights
- Customer Segmentation: Identify customer segments based on behavior
- Trend Analysis: Detect and visualize trends in time-series data
- Data Quality Monitor: Check data quality and generate alerts
Document Processing Templates
- Contract Analyzer: Extract key terms and obligations from contracts
- Research Assistant: Analyze research papers and extract insights
- Report Generator: Create reports based on document collections
- Document Classifier: Categorize documents by content and purpose
Industry-Specific Templates
- Financial Statement Analyzer: Process financial reports and extract metrics
- Healthcare Patient Summary: Generate patient summaries from medical records
- Legal Case Research: Research relevant precedents for legal cases
- Supply Chain Optimizer: Analyze and optimize supply chain operations
Deploying Minds
Execution Methods
Once your mind is built, you can deploy it in several ways:
On-Demand Execution:
- Run the mind manually when needed
- Use for ad-hoc analysis or occasional tasks
Scheduled Execution:
- Set up recurring schedules (hourly, daily, weekly, monthly)
- Use for regular reporting or data processing
- Configure notification options for results
Event-Triggered Execution:
- Configure the mind to run in response to events
- Events can include new data arrival, API calls, or system alerts
- Use for real-time processing and responses
API Endpoint:
- Expose the mind as an API endpoint
- Call from external applications
- Pass parameters to customize execution
Publishing as an App
To make minds accessible to users across your organization:
- Finalize and test your mind thoroughly
- Click "Publish" from the mind details page
- Configure publishing settings:
- App name and description
- Access permissions
- Input parameters that users can modify
- Refresh settings
- Visualization preferences
- Generate a MINDSHARE_KEY for secure access
- Use the published link to share the app
- Embed in dashboards or other applications if needed
Access Control
Manage who can access and use your minds:
User-Level Permissions:
- View: See mind results
- Execute: Run the mind
- Edit: Modify the mind
- Manage: Change settings and permissions
Role-Based Access Control:
- Assign permissions to roles rather than individuals
- Manage access at scale
- Integrate with your organization's identity management
Collection-Level Security:
- Control access to underlying data sources
- Ensure data governance compliance
- Implement row-level security where needed
Best Practices
Mind Organization
- Naming Conventions: Use clear, descriptive names for minds and operators
- Documentation: Add descriptions and annotations to explain complex logic
- Modularity: Break complex workflows into manageable sections
- Version Control: Keep track of major changes and iterations
User Experience
- Input Validation: Check user inputs to prevent errors
- Progress Indicators: Show execution status for long-running minds
- Error Handling: Provide clear error messages and recovery options
- Result Presentation: Format outputs for easy understanding
Maintenance
- Regular Testing: Periodically verify mind functionality
- Dependency Tracking: Document external dependencies
- Performance Monitoring: Track execution times and resource usage
- Update Management: Keep templates and patterns current with new capabilities
Examples and Scenarios
Example 1: Customer Support Analysis
Purpose: Analyze customer support tickets to identify trends and improvement opportunities
Operators Used:
- TextToSQL (get recent tickets)
- SQLExecution (retrieve data)
- PandasAi (initial analysis)
- TableToGraph (visualize volumes by category)
- OpenSearch (generate insights)
- CardGenerator (create summary dashboard)
Flow:
TextToSQL → SQLExecution → PandasAi → [TableToGraph, OpenSearch] → CardGenerator
Example 2: Document-Based Research
Purpose: Research a specific topic across a large document collection
Operators Used:
- RAGSubQuestions (break down research question)
- RAGSummarize (retrieve relevant information)
- TableToTextSummary (organize findings)
- Flow.Condition (check if more research needed)
- TextToGraph (visualize relationships)
- TextSummarize (create executive summary)
Flow:
RAGSubQuestions → RAGSummarize → TableToTextSummary → Flow.Condition
then_ → TextToGraph → TextSummarize
else_ → RAGSubQuestions (with refined questions)
Example 3: Automated Financial Reporting
Purpose: Generate periodic financial reports with analysis and visualizations
Operators Used:
- TextToSQL (extract financial data)
- SQLExecution (run queries)
- Code.Python.Execute (calculate financial metrics)
- TableToGraph (create financial charts)
- OpenSearch (generate narrative)
- ExcelToPPT (create presentation)
Flow:
TextToSQL → SQLExecution → Code.Python.Execute → [TableToGraph, OpenSearch] → ExcelToPPT
Next Steps
Now that you understand how to build minds in Quantum Minds, explore the following resources:
- Building Your First Mind (Tutorial)
- Advanced Mind Patterns
- Integration with Lightning RAG
- Operator Reference Documentation
Overview | Operator Categories | Mind Templates | Integration Guide