semantic_search
Search across multiple programming libraries using hybrid AI-powered relevance ranking to find the most accurate documentation results.
Instructions
Enhanced semantic search across one or more libraries with AI-powered relevance ranking.
Uses hybrid search combining:
- Vector embeddings for semantic similarity (50% weight)
- Keyword matching for precise results (30% weight)
- Source authority and metadata (20% weight)
Args:
query: The search query.
libraries: A single library or a list of libraries to search in.
context: Optional context about your project or use case.
version: Library version to search (e.g., "4.2", "stable", "latest"). Default: "latest"
auto_detect_version: Automatically detect installed package version. Default: False
use_vector_rerank: Enable vector-based semantic reranking for better relevance. Default: True
Returns:
Enhanced search results with AI-powered relevance scores and metadata, ranked across all libraries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| context | No | ||
| version | No | latest | |
| libraries | Yes | ||
| use_vector_rerank | No | ||
| auto_detect_version | No |