Mastra agent that indexes a PDF into a vector store and answers questions over it with page-cited retrieval and stratified sampling.
npx shadcn@latest add @agentcn/mastra/chat-with-pdf
—
mastra/chat-with-pdf