Add documentation search tool for AI-powered doc discovery #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements
search_mapbox_docs_toolfollowing the Google Developer Knowledge API approach for enhanced documentation discovery.Changes
New Tool:
search_mapbox_docs_toolFeatures:
Input:
{ "query": "geocoding rate limits", "category": "apis", // optional "limit": 5 // optional, default 5 }Output:
{ "results": [ { "title": "Forward Geocoding", "excerpt": "...Rate limit: 600 requests per minute...", "category": "apis", "url": "https://docs.mapbox.com/...", "relevanceScore": 0.95 } ], "query": "geocoding rate limits", "totalResults": 3, "category": "apis" }Implementation Details
docs.mapbox.com/llms.txtTesting
✅ Comprehensive test suite with 12 tests:
✅ All 548 tests passing
Related
Closes #68
Part of enhanced documentation discovery initiative inspired by:
Next Steps
This is the first of 5 planned improvements: