-
Notifications
You must be signed in to change notification settings - Fork 192
Add GEO guide #957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GEO guide #957
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
--- | ||
title: "GEO guide: Optimize docs for AI search and answer engines" | ||
sidebarTitle: "GEO" | ||
description: "Make your documentation more discoverable and cited more frequently by AI tools" | ||
icon: "cpu" | ||
--- | ||
|
||
Optimize your documentation for both traditional search engines and AI-powered answer engines like ChatGPT, Perplexity, and Google AI Overviews. | ||
|
||
Generative Engine Optimization (GEO) focuses on being cited by AI systems through comprehensive content and structured information, while traditional SEO targets search result rankings. | ||
|
||
## GEO quickstart | ||
|
||
### Initial setup | ||
|
||
1. **Configure SEO settings** in `docs.json` | ||
2. **Audit current pages** for missing descriptions and titles | ||
|
||
### Content improvements | ||
|
||
1. **Add comparison tables** to appropriate pages | ||
2. **Audit headings** to ensure they answer common questions | ||
3. **Improve internal linking** between related topics | ||
4. **Test with AI tools** to verify accuracy | ||
|
||
## GEO best practices | ||
|
||
In general, well written and well structured documentation will have strong GEO. You should still prioritize writing for your users, and if your content is meeting their needs, you will be well on your way to optimizing for AI tools. Creating genuinely helpful content rather than optimizing for optimization's sake is rewarded by both traditional and AI search engines. | ||
|
||
Focus on: | ||
|
||
- Content utility and comprehensive answers | ||
- Structured, scannable information | ||
- Direct answers to questions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. more philosophical question — should we encourage people to have a FAQs page that has direct answers? this is a product question as well, like the community forum / support use case There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Historically, FAQ pages have been dismissed by tech writers since you can't ever know every question someone is going to ask and people didn't really search in full questions. But now people are asking full questions of these tools, so FAQs might be better. Kind of a frontier and a shift in best practice so I don't know what's actually going to perform best. Reflexively, I don't want to encourage FAQ pages, but they might now be way more valuable than they were in the past. |
||
- Semantic relevance over keyword matching | ||
ethanpalm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Create comparison content | ||
|
||
AI engines prioritize content that directly compares options and provides complete information. | ||
ethanpalm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
For example, a comparison table: | ||
|
||
```markdown | ||
## API authentication methods | ||
|
||
| Method | Security Level | Implementation | Best For | | ||
|--------|---------------|----------------|----------| | ||
| API Keys | Basic | Simple headers | Internal tools | | ||
| OAuth 2.0 | High | Token exchange | User applications | | ||
| JWT | Medium | Signed tokens | Stateless APIs | | ||
``` | ||
|
||
### Answer questions directly | ||
|
||
Write content that addresses specific user questions: | ||
|
||
- Begin sections with the main takeaway | ||
- Use descriptive headings that match common queries | ||
- Break complex topics into numbered steps | ||
|
||
### Format for clarity | ||
|
||
These formatting practices help AI tools parse and understand your content: | ||
|
||
- Don't skip heading levels (H1 → H2 → H3) | ||
- Use specific object names instead of "it" or "this" | ||
- Label code blocks with their programming language | ||
- Give images descriptive alt text | ||
- Link to related concepts to help AI understand relationships | ||
|
||
## Mintlify configuration | ||
|
||
Use these features to improve GEO. | ||
|
||
### Add descriptive page metadata | ||
|
||
Include clear titles and descriptions in your frontmatter: | ||
|
||
```mdx | ||
--- | ||
title: "API authentication guide" | ||
description: "Complete guide to implementing API authentication with code examples" | ||
--- | ||
``` | ||
|
||
### Configure global SEO settings | ||
|
||
Add to your `docs.json`: | ||
|
||
```json | ||
{ | ||
"seo": { | ||
"indexing": "all", | ||
"metatags": { | ||
"og:type": "website", | ||
"og:site_name": "Your docs" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### LLMs.txt | ||
|
||
LLMs.txt files help AI systems understand your documentation structure, similar to how sitemaps help search engines. Mintlify automatically generates LLMs.txt files for your docs. No configuration is required. | ||
|
||
## Testing your documentation | ||
|
||
Test various AI tools with questions about your product and documentation to see how well your docs are being cited. | ||
|
||
**Ask AI assistants specific questions about your docs:** | ||
- "How do I set up authentication using this API?" | ||
- "Walk me through the installation process step by step" | ||
|
||
**Check that tools provide:** | ||
- Correct code samples | ||
- Accurate step-by-step instructions |
Uh oh!
There was an error while loading. Please reload this page.