local-rag-search
Original:🇺🇸 English
Translated
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.
1installs
Added on
NPX Install
npx skill4agent add sundial-org/awesome-openclaw-skills local-rag-searchTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Local RAG Search Skill
This 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.
Available Tools
1. rag_search_ddgs
- DuckDuckGo Search
rag_search_ddgsUse this for privacy-focused, general web searches.
When to use:
- User prefers privacy-focused searches
- General information lookup
- Default choice for most queries
Parameters:
- : Natural language search query
query - : Initial results to fetch (default: 10)
num_results - : Most relevant results to return (default: 5)
top_k - : Include source URLs (default: true)
include_urls
2. rag_search_google
- Google Search
rag_search_googleUse this for comprehensive, technical, or detailed searches.
When to use:
- Technical or scientific queries
- Need comprehensive coverage
- Searching for specific documentation
3. deep_research
- Multi-Engine Deep Research
deep_researchUse this for comprehensive research across multiple search engines.
When to use:
- Researching complex topics requiring broad coverage
- Need diverse perspectives from multiple sources
- Gathering comprehensive information on a subject
Available backends:
- : Privacy-focused general search
duckduckgo - : Comprehensive technical results
google - : Microsoft's search engine
bing - : Privacy-first search
brave - : Encyclopedia/factual content
wikipedia - ,
yahoo,yandex,mojeek: Alternative enginesgrokipedia
Default:
["duckduckgo", "google"]4. deep_research_google
- Google-Only Deep Research
deep_research_googleShortcut for deep research using only Google.
5. deep_research_ddgs
- DuckDuckGo-Only Deep Research
deep_research_ddgsShortcut for deep research using only DuckDuckGo.
Best Practices
Query Formulation
-
Use natural language: Write queries as questions or descriptive phrases
- Good: "latest developments in quantum computing"
- Good: "how to implement binary search in Python"
- Avoid: Single keywords like "quantum" or "Python"
-
Be specific: Include context and details
- Good: "React hooks best practices for 2024"
- Better: "React useEffect cleanup function best practices"
Tool Selection Strategy
-
Single Topic, Quick Answer → Useor
rag_search_ddgsrag_search_googlerag_search_ddgs( query="What is the capital of France?", top_k=3 ) -
Technical/Scientific Query → Use
rag_search_googlerag_search_google( query="Docker multi-stage build optimization techniques", num_results=15, top_k=7 ) -
Comprehensive Research → Usewith multiple search terms
deep_researchdeep_research( search_terms=[ "machine learning fundamentals", "neural networks architecture", "deep learning best practices 2024" ], backends=["google", "duckduckgo"], top_k_per_term=5 ) -
Factual/Encyclopedia Content → Usewith Wikipedia
deep_researchdeep_research( search_terms=["World War II timeline", "WWII key battles"], backends=["wikipedia"], num_results_per_term=5 )
Parameter Tuning
For quick answers:
- ,
num_results=5-10top_k=3-5
For comprehensive research:
- ,
num_results=15-20top_k=7-10
For deep research:
- ,
num_results_per_term=10-15top_k_per_term=3-5 - Use 2-5 related search terms
- Use 1-3 backends (more = more comprehensive but slower)
Workflow Examples
Example 1: Current Events
Task: "What happened at the UN climate summit last week?"
1. Use rag_search_google for recent news coverage
2. Set top_k=7 for comprehensive view
3. Present findings with source URLsExample 2: Technical Deep Dive
Task: "How do I optimize PostgreSQL queries?"
1. Use deep_research with multiple specific terms:
- "PostgreSQL query optimization techniques"
- "PostgreSQL index best practices"
- "PostgreSQL EXPLAIN ANALYZE tutorial"
2. Use backends=["google", "stackoverflow"] if available
3. Synthesize findings into actionable guideExample 3: Multi-Perspective Research
Task: "Research the impact of remote work on productivity"
1. Use deep_research with diverse search terms:
- "remote work productivity statistics 2024"
- "hybrid work model effectiveness studies"
- "work from home challenges research"
2. Use backends=["google", "duckduckgo"] for broad coverage
3. Synthesize different perspectives and studiesGuidelines
- Always cite sources: When , reference the source URLs in your response
include_urls=True - Verify recency: Check if the content appears current and relevant
- Cross-reference: For important facts, use multiple search terms or engines
- Respect privacy: Use DuckDuckGo for general queries unless specific needs require Google
- Batch related queries: When researching a topic, create multiple related search terms for deep_research
- Semantic relevance: Trust the RAG scoring - top results are semantically closest to the query
- Explain your choice: Briefly mention which tool you're using and why
Error Handling
If a search returns insufficient results:
- Try rephrasing the query with different keywords
- Switch to a different backend
- Increase parameter
num_results - Use with multiple related search terms
deep_research
Privacy Considerations
- DuckDuckGo: Privacy-focused, doesn't track users
- Google: Most comprehensive but tracks searches
- Recommend DuckDuckGo as default unless user specifically needs Google's coverage
Performance Notes
- First search may be slower (model loading)
- Subsequent searches are faster (cached models)
- More backends = more comprehensive but slower
- Adjust and
num_resultsbased on use casetop_k