Efficiently perform web searches using the mcp-local-rag server with semantic similarity ranking. Use this skill when you need to search the web for current information, research topics across multiple sources, or gather context from the internet without using external APIs. This skill teaches effective use of RAG-based web search with DuckDuckGo, Google, and multi-engine deep research capabilities.
Add this skill
npx mdskills install nkapila6/local-rag-searchComprehensive search skill with excellent tool selection guidance and practical examples throughout
1---2name: local-rag-search3description: Efficiently perform web searches using the mcp-local-rag server with semantic similarity ranking. Use this skill when you need to search the web for current information, research topics across multiple sources, or gather context from the internet without using external APIs. This skill teaches effective use of RAG-based web search with DuckDuckGo, Google, and multi-engine deep research capabilities.4---56# Local RAG Search Skill78This skill enables you to effectively use the mcp-local-rag MCP server for intelligent web searches with semantic ranking. The server performs RAG-like similarity scoring to prioritize the most relevant results without requiring any external APIs.910## Available Tools1112### 1. `rag_search_ddgs` - DuckDuckGo Search13Use this for privacy-focused, general web searches.1415**When to use:**16- User prefers privacy-focused searches17- General information lookup18- Default choice for most queries1920**Parameters:**21- `query`: Natural language search query22- `num_results`: Initial results to fetch (default: 10)23- `top_k`: Most relevant results to return (default: 5)24- `include_urls`: Include source URLs (default: true)2526### 2. `rag_search_google` - Google Search27Use this for comprehensive, technical, or detailed searches.2829**When to use:**30- Technical or scientific queries31- Need comprehensive coverage32- Searching for specific documentation3334### 3. `deep_research` - Multi-Engine Deep Research35Use this for comprehensive research across multiple search engines.3637**When to use:**38- Researching complex topics requiring broad coverage39- Need diverse perspectives from multiple sources40- Gathering comprehensive information on a subject4142**Available backends:**43- `duckduckgo`: Privacy-focused general search44- `google`: Comprehensive technical results45- `bing`: Microsoft's search engine46- `brave`: Privacy-first search47- `wikipedia`: Encyclopedia/factual content48- `yahoo`, `yandex`, `mojeek`, `grokipedia`: Alternative engines4950**Default:** `["duckduckgo", "google"]`5152### 4. `deep_research_google` - Google-Only Deep Research53Shortcut for deep research using only Google.5455### 5. `deep_research_ddgs` - DuckDuckGo-Only Deep Research56Shortcut for deep research using only DuckDuckGo.5758## Best Practices5960### Query Formulation611. **Use natural language**: Write queries as questions or descriptive phrases62 - Good: "latest developments in quantum computing"63 - Good: "how to implement binary search in Python"64 - Avoid: Single keywords like "quantum" or "Python"65662. **Be specific**: Include context and details67 - Good: "React hooks best practices for 2024"68 - Better: "React useEffect cleanup function best practices"6970### Tool Selection Strategy71721. **Single Topic, Quick Answer** → Use `rag_search_ddgs` or `rag_search_google`73 ```74 rag_search_ddgs(75 query="What is the capital of France?",76 top_k=377 )78 ```79802. **Technical/Scientific Query** → Use `rag_search_google`81 ```82 rag_search_google(83 query="Docker multi-stage build optimization techniques",84 num_results=15,85 top_k=786 )87 ```88893. **Comprehensive Research** → Use `deep_research` with multiple search terms90 ```91 deep_research(92 search_terms=[93 "machine learning fundamentals",94 "neural networks architecture",95 "deep learning best practices 2024"96 ],97 backends=["google", "duckduckgo"],98 top_k_per_term=599 )100 ```1011024. **Factual/Encyclopedia Content** → Use `deep_research` with Wikipedia103 ```104 deep_research(105 search_terms=["World War II timeline", "WWII key battles"],106 backends=["wikipedia"],107 num_results_per_term=5108 )109 ```110111### Parameter Tuning112113**For quick answers:**114- `num_results=5-10`, `top_k=3-5`115116**For comprehensive research:**117- `num_results=15-20`, `top_k=7-10`118119**For deep research:**120- `num_results_per_term=10-15`, `top_k_per_term=3-5`121- Use 2-5 related search terms122- Use 1-3 backends (more = more comprehensive but slower)123124## Workflow Examples125126### Example 1: Current Events127```128Task: "What happened at the UN climate summit last week?"1291301. Use rag_search_google for recent news coverage1312. Set top_k=7 for comprehensive view1323. Present findings with source URLs133```134135### Example 2: Technical Deep Dive136```137Task: "How do I optimize PostgreSQL queries?"1381391. Use deep_research with multiple specific terms:140 - "PostgreSQL query optimization techniques"141 - "PostgreSQL index best practices"142 - "PostgreSQL EXPLAIN ANALYZE tutorial"1432. Use backends=["google", "stackoverflow"] if available1443. Synthesize findings into actionable guide145```146147### Example 3: Multi-Perspective Research148```149Task: "Research the impact of remote work on productivity"1501511. Use deep_research with diverse search terms:152 - "remote work productivity statistics 2024"153 - "hybrid work model effectiveness studies"154 - "work from home challenges research"1552. Use backends=["google", "duckduckgo"] for broad coverage1563. Synthesize different perspectives and studies157```158159## Guidelines1601611. **Always cite sources**: When `include_urls=True`, reference the source URLs in your response1622. **Verify recency**: Check if the content appears current and relevant1633. **Cross-reference**: For important facts, use multiple search terms or engines1644. **Respect privacy**: Use DuckDuckGo for general queries unless specific needs require Google1655. **Batch related queries**: When researching a topic, create multiple related search terms for deep_research1666. **Semantic relevance**: Trust the RAG scoring - top results are semantically closest to the query1677. **Explain your choice**: Briefly mention which tool you're using and why168169## Error Handling170171If a search returns insufficient results:1721. Try rephrasing the query with different keywords1732. Switch to a different backend1743. Increase `num_results` parameter1754. Use `deep_research` with multiple related search terms176177## Privacy Considerations178179- DuckDuckGo: Privacy-focused, doesn't track users180- Google: Most comprehensive but tracks searches181- Recommend DuckDuckGo as default unless user specifically needs Google's coverage182183## Performance Notes184185- First search may be slower (model loading)186- Subsequent searches are faster (cached models)187- More backends = more comprehensive but slower188- Adjust `num_results` and `top_k` based on use case189
Full transparency — inspect the skill content before installing.