Markdown & llms.txt
Markdown & llms.txt
These docs are published in formats that large language models read cleanly. Use them to give any LLM accurate, current context about the Sarvam API — no scraping, no stale training data.
What’s available
These follow the llms.txt convention. llms-full.txt and per-page .md exports are regenerated on every deploy; the llms.txt index is curated in fern/agents/llms.txt in this repository.
Read any page as Markdown
Append .md to any documentation URL to get the raw Markdown, with no navigation or styling:
This is the quickest way to drop a single page into an LLM prompt or a RAG index.
How to use it
Give an assistant the whole API
Paste the contents of llms-full.txt into a model with a large context window when you want it to reason over the complete API in one shot.
Index for retrieval
Fetch llms.txt, then load only the linked pages you need (each is available as .md). This keeps prompts small and relevant.
When to use llms.txt vs the MCP server
Both make the docs available to AI — they suit different workflows:
Rule of thumb: use the MCP server when an assistant should pull docs while you code; use llms.txt when you want to load documentation into a model yourself.
For docs contributors
The published llms.txt is sourced from fern/agents/llms.txt in this repo. When you add, rename, or remove a documentation page, update that file with a one-line entry: title, canonical .md URL, and a short summary copied from the page’s frontmatter description.
llms-full.txt and per-page .md exports are regenerated automatically on deploy — only the curated index needs a manual update.