1.7 KiB
1.7 KiB
Advanced Scenarios & Edge Cases
Multi-Language Documentation
Challenge: Docs in multiple languages
Approach:
- Identify target language from user
- Search for language-specific llms.txt
llms-es.txt,llms-ja.txt
- Fallback to English if not found
- Note language limitations in report
Version-Specific Documentation
Latest (default):
- Use base llms.txt URL
- No version specifier needed
Specific version:
WebSearch: "[library] v[version] llms.txt"
Check paths:
- /v2/llms.txt
- /docs/v2/llms.txt
- /{version}/llms.txt
For repos:
git checkout v[version] or tags/[version]
Framework with Plugins
Challenge: Core framework + 50 plugins
Strategy:
- Focus on core framework first
- Ask user which plugins needed
- Launch targeted search for specific plugins
- Note available plugins in report
- Don't document everything upfront
Documentation Under Construction
Signs:
- New release with incomplete docs
- Many "Coming soon" pages
- GitHub issues requesting docs
Approach:
- Note status upfront in report
- Combine available docs + repo analysis
- Check tests/ and examples/ directories
- Clearly mark "inferred from code"
- Link to GitHub issues for updates
Conflicting Information
When sources disagree:
- Identify primary official source
- Note version differences
- Present both approaches with context
- Recommend official/latest
- Explain why conflict exists
Priority order:
- Official docs (latest version)
- Official docs (versioned)
- GitHub README
- Community tutorials
- Stack Overflow
Rate Limiting
If hitting API limits:
- Use CONTEXT7_API_KEY from .env
- Implement exponential backoff
- Cache results in session
- Batch requests where possible