Framework Guides

DeepCitation works with any LLM provider or framework. These guides show the exact integration pattern for the most common setups, so you spend 10 minutes wiring, not 30 minutes figuring it out.


Available Guides

Guide Best for
LangChain Backend RAG pipelines — legal, medical, financial AI
Next.js App Router Full-stack apps with React Server Components + streaming
Vercel AI SDK useChat / streamText apps on Vercel infrastructure

How DeepCitation Fits Any Framework

DeepCitation is framework-agnostic. It adds two server-side steps around your existing LLM call:

[your docs] → prepareAttachments() → [enhanced prompt] → [your LLM] → verifyAttachment() → [verified output]
  1. Before the LLM callprepareAttachments() uploads source files and returns a deepTextPromptPortion string you inject into your prompt
  2. After the LLM callverifyAttachment() checks citations in the LLM’s response against the source, returning visual proof

The React components (CitationComponent, CitationDrawer) are client-only and optional — they render the verification results. You can use a plain text or Slack renderer instead.


Table of contents


Back to top

© 2026 DeepCitation — a product of FileLasso, Inc.