AI Mega Prompts
A technique of concatenating multiple notes and documents into a single comprehensive file to provide rich context to LLMs.
Also known as: Mega Prompts, Knowledge Prompts, Context Bundles
Category: Techniques
Tags: ai, prompting, pkm, knowledge-management, productivity
Explanation
AI Mega Prompts is a practical technique for leveraging Large Language Models with your personal knowledge base. The idea is simple: use scripts or tools to find and concatenate relevant notes, documents, and their metadata into a single text file that can be uploaded to an AI.
How it works:
1. **Selection**: Identify notes relevant to your query (by folder, tags, or link traversal)
2. **Concatenation**: Combine all selected notes into one file, preserving metadata and links
3. **Upload**: Provide the mega prompt to an LLM (via file upload or paste)
4. **Query**: Ask questions that leverage the full context of your knowledge
Tools for creating AI Mega Prompts:
- **Code2Prompt**: Generates prompts from code repositories
- **files-to-prompt**: Concatenates files into prompt-ready format
- **Custom scripts**: Can traverse Maps of Content (MoCs) to gather related notes
Benefits:
- Provide comprehensive context in a single interaction
- Leverage your personal knowledge with any AI that supports file uploads
- Work with topic-specific knowledge bundles
- Enable AI to see connections across multiple notes
Best practices:
- Focus on specific topics rather than entire vaults
- Include metadata (tags, links) for context
- Use with LLMs that have large context windows
- Combine with Maps of Content for structured knowledge sharing
This technique turns your PKM system into a powerful knowledge augmentation layer for AI interactions.
Related Concepts
← Back to all concepts