-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial Advanced Features in Practice
This tutorial demonstrates how to combine all of Mosaic's advanced features into a single, powerful workflow. You'll start with a complex question, explore it through multiple models and branches, prune irrelevant paths, and distill the results into a synthesis.
Estimated time: 25 minutes
You're evaluating database technologies for a new application. You want to compare PostgreSQL, MongoDB, and SQLite across several dimensions. This is a perfect use case for Mosaic's advanced features.
First, upload any relevant documents you have:
- Open the DocumentPanel (📄)
- Upload any notes, requirements documents, or comparison articles you have
- Enable RAG (toggle ON)
Even without documents, the RAG system is useful — this step shows how to combine RAG with the other features.
Let's see how different models approach the comparison:
- Open Settings → Debate Models
- Select 2-3 models (e.g., Mistral Large, GPT-4o, Claude Sonnet 4)
- Click the root node
- Press Shift+Enter (not just Enter)
- Type:
Compare PostgreSQL, MongoDB, and SQLite for a new web application.
Consider: performance, scalability, data modeling flexibility, ecosystem, and use cases.
- Press Shift+Enter again (the text is already in the input)
You'll see multiple response nodes fan out, one for each model:
┌── [Mistral Large: comprehensive comparison]
[You: comparison] ──┼── [GPT-4o: structured comparison with tables]
└── [Claude: nuanced analysis with tradeoffs]
After each response completes, look for the confidence badge (a number in the corner of each response node):
- Mistral Large: 92
- GPT-4o: 88
- Claude Sonnet: 95
Claude's response has the highest confidence. This might be the one to explore first, but let's branch from all of them.
Explore each model's response by branching:
- Click Mistral Large's response and ask about scalability:
Can you elaborate on PostgreSQL's horizontal scaling options?
- Click GPT-4o's response and ask about schema flexibility:
How does MongoDB's schema-less design help in rapid prototyping?
- Click Claude's response and ask about performance:
Under what conditions does SQLite outperform the other two?
Your canvas now has three branches:
[root → comparison]
├── [Mistral: comparison] → [You: scalability] → [AI: response]
├── [GPT-4o: comparison] → [You: schema] → [AI: response]
└── [Claude: comparison] → [You: performance] → [AI: response]
As each branch response completes, look for suggestion nodes (dimmer nodes connected with dotted lines). These are AI-generated follow-up questions.
- From the scalability branch, a suggestion might be: "How does read replication work in PostgreSQL?"
- From the schema branch: "What are the trade-offs of MongoDB's document model?"
- From the performance branch: "When should you avoid SQLite?"
Click a suggestion to materialize it into a real branch. This saves you from typing follow-up questions — the AI predicts what you might want to ask next.
Let's go deeper on one branch:
- Click the latest node in the scalability branch
- Ask:
Show me a real-world architecture that uses PostgreSQL with horizontal scaling
- After the response, ask:
Write a Python script that demonstrates connection pooling with PostgreSQL
using asyncpg or psycopg2
-
Run the code using the inline code execution button (
▶️ )
Your scalability branch now has practical code you can test immediately.
By now, your canvas might have 8-10 nodes. Some branches may be less relevant to your goal. Let's prune:
- Click the Prune button (🧹) in the TopBar
- When asked for a goal, enter:
I'm trying to decide which database to use for a high-traffic web application
with flexible data requirements
- Mosaic scores each leaf branch against this goal
- Branches scoring below 40 are dimmed
For example, if the "when to avoid SQLite" branch scored 72 (relevant), but a "JSONB in PostgreSQL" tangent scored 15 (less relevant), the tangent would be dimmed.
The Prune Banner appears at the bottom. You can Restore All if you disagree with the pruning.
Now distill all valuable branches into a synthesis:
- Click the Distill button (🌿) in the TopBar
- Mosaic collects all leaf nodes and sends them to the AI
- A new distillation node appears with a gold border
- Gold dashed edges connect it to all source leaves
The distillation might produce:
## Database Comparison Synthesis
### Winner by Use Case
- **PostgreSQL**: Best for high-traffic web apps with complex queries
(supported by Mistral scalability deep-dive and Claude performance analysis)
- **MongoDB**: Best for rapid prototyping with evolving schemas
(supported by GPT-4o schema flexibility analysis)
- **SQLite**: Best for embedded/single-user scenarios
(performance branch confirms limitations at scale)
### Recommendation
For your high-traffic web application with flexible data requirements,
PostgreSQL is the strongest candidate...
Your work is now complete. Export the entire canvas:
- Open Settings (⚙️)
- Click Export
- A JSON file downloads:
mosaic-database-comparison.json
This file contains all nodes, edges, positions, bookmarks, and analytics. Share it with colleagues or archive it for later reference.
To revisit this analysis:
- Open Settings (⚙️)
- Click Import
- Select your exported JSON file
- The entire canvas restores with all nodes, branches, and positions intact
Before distilling, upload relevant documents and enable RAG. The distillation will include context from your documents, making the synthesis more informed than one based purely on the AI's training data.
Pruning removes low-value branches before distillation, which means:
- Less context for the AI to process (lower token cost)
- Higher quality synthesis (only relevant content included)
- Faster distillation (fewer leaves to summarize)
The most powerful workflow:
- Run parallel debate (3-4 models)
- Branch from each model's response to explore specific aspects
- Compare confidence scores to identify the most reliable answers
- Prune branches that don't align with your goal
- Distill the remaining branches into a final synthesis
Before major operations like pruning or clearing, export your canvas:
- Settings → Export →
mosaic-before-pruning.json - This gives you a safety net to restore if pruning is too aggressive
Bookmark nodes that represent key insights or decisions. Later:
- Filter to bookmarks-only to see the "table of contents" of your canvas
- Distill only bookmarked branches for a curated synthesis
- Share exported canvas with bookmarks as a summary document
1. Upload RAG documents (optional)
2. Parallel debate with multiple models
3. Review confidence scores
4. Branch from each model's response
5. Follow suggestion tendrils
6. Deep dive with code execution
7. Prune irrelevant branches
8. Distill into synthesis
9. Export for sharing/archiving
This workflow took ~25 minutes and produced:
- Multi-model analysis
- 3+ conversation branches
- Practical code examples
- AI-generated synthesis
- Exportable archive
In a linear chat interface, this would require multiple separate conversations, manual copy-pasting, and significant context-switching. Mosaic's canvas handles it all in one spatial view.
| Goal | Shortcut / Action |
|---|---|
| Start parallel debate |
Shift+Enter (instead of Enter) |
| Open Settings | Click gear icon (⚙️) |
| Fit all nodes | Press F
|
| Delete a node | Select it → Delete
|
| Undo a mistake | Ctrl+Z |
| Bookmark important node | Right-click → Bookmark |
| Open search | Ctrl+F |
| New canvas | Ctrl+N |
| Collapse a branch | Right-click → Collapse |
| Export canvas | Settings → Export |
Practice this workflow a few times. The combination of parallel debate → branching → pruning → distillation is where Mosaic's spatial canvas truly shines compared to traditional linear chat interfaces.
- Tutorial - Customizing Mosaic — Fine-tune system prompts, temperature, and theme
- Advanced AI Features — Deep dive into each feature's technical details
- Overall Architecture and Data Flow — How features interact under the hood
Mosaic — Branch, explore, and run code inline — an infinite canvas for AI conversations.
Built with Tauri, React, and Mistral AI.
GitHub Repository |
Report an Issue |
Releases
- Canvas and Node System
- LLM Provider Integration
- RAG System Guide
- Advanced AI Features
- Keyboard Shortcuts and UI Reference
- Tutorial - Branching and Parallel Exploration
- Tutorial - Using RAG with Documents
- Tutorial - Advanced Features in Practice
- Tutorial - Customizing Mosaic