Overview
The Examples section is a short list of example projects demonstrating basic AI engineering with Mastra, including text generation, structured output, streaming responses, and retrieval‐augmented generation (RAG).
LLM
Agent
Workflow
RAG
Chunk TextChunk MarkdownChunk HTMLChunk JSONEmbed Text ChunkEmbed Chunk ArrayAdjust Chunk SizeAdjust Chunk DelimitersEmbed Text with CohereInsert Embedding in PineconeInsert Embedding in PgVectorRetrieve ResultsBasic RAGOptimizing Information DensityMetadata FilteringRe-ranking ResultsChain of Thought PromptingChain of Thought Prompting w/WorkflowGraph RAG