Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

langsearchlangsearch 搜索

Agent Skill

langsearch 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

17,204

周安装

739

GitHub Stars

2

下载量

6,030
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:langsearch(langsearch 搜索)
来源仓库:https://github.com/vaibhav1805/langsearch
安装命令:
openclaw skills install langsearch
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install langsearch

简介

提供免费网络搜索与语义重排序 API,适用于 AGI 应用的信息检索。

  • 适合在 OpenClaw 中执行关键词搜索或获取当前互联网资讯。
  • 通过 clawhub 安装,无需额外依赖,可直接调用搜索接口。
  • 使用前请确认是否允许联网及返回内容的合规性审查机制。
  • 建议限制高频请求以避免触发反爬机制或服务限制。

SKILL.md

name
langsearch
description
Free web search and semantic reranking API for AGI applications. Use when you need to perform web searches, retrieve current information from the internet, or improve search accuracy with semantic reranking. Includes integration examples for building RAG (Retrieval-Augmented Generation) pipelines and LLM applications that require real-world context. Requires LANGSEARCH_API_KEY credential.
metadata
version
1.0.1
homepage
https://langsearch.com
source
https://langsearch.com/api-keys
openclaw
requires
env
primaryEnv
LANGSEARCH_API_KEY
credentialsDescription
API key for LangSearch service. Get a free key at https://langsearch.com/api-keys
networkAccess
LangSearch API (https://api.langsearch.com)
supplyChainRisk
Low - communicates only with official LangSearch API
apiEndpoint
https://api.langsearch.com/v1

LangSearch

⚠️ Security & Credentials

Required Credentials:

  • LANGSEARCH_API_KEY - Your free LangSearch API key (required)

Security Best Practices:

  1. Get a free API key - Sign up at langsearch.com/api-keys
  2. Protect your API key - Never commit .env files containing LANGSEARCH_API_KEY to version control
  3. Use environment variables - Store the key in .env or set via export LANGSEARCH_API_KEY="..."
  4. Monitor usage - Check your API usage on the LangSearch dashboard
  5. Code inspection - This tool only uses the official LangSearch API. All communication is via HTTPS to api.langsearch.com

Network Access:

  • Only connects to: https://api.langsearch.com (official LangSearch API)
  • No external data collection or telemetry
  • No tracking or logging sent elsewhere

Overview

LangSearch provides free APIs for web search and semantic reranking. It combines keyword search precision with vector-based semantic matching, making it ideal for integrating current web information into LLM applications and building RAG systems.

Quick Start

Prerequisites

  1. Get a free API key at https://langsearch.com/api-keys
  2. Set your API key as an environment variable: export LANGSEARCH_API_KEY="your-api-key"

Basic Web Search

The simplest way to search the web using LangSearch:

import requests
import json
import os

api_key = os.getenv("LANGSEARCH_API_KEY")
headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json"
}

query = "latest AI developments 2025"
payload = {
    "query": query,
    "count": 5,
    "summary": True
}

response = requests.post(
    "https://api.langsearch.com/v1/web-search",
    headers=headers,
    json=payload
)

results = response.json()
print(json.dumps(results, indent=2))

Or using cURL:

curl -X POST https://api.langsearch.com/v1/web-search \
  -H "Authorization: Bearer $LANGSEARCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "latest AI developments 2025",
    "count": 5,
    "summary": true
  }'

Web Search API

The web search endpoint retrieves information from billions of web documents using hybrid search (keyword + vector matching) with optional summaries.

Endpoint

POST https://api.langsearch.com/v1/web-search

Request Parameters

ParameterTypeRequiredDescription
querystringYesThe search query
countintegerNoNumber of results to return (default: 10, max: 100)
summarybooleanNoInclude markdown summaries in results (default: false)
freshnessstringNoFilter results by freshness (day, week, month, year)

Response Structure

The API returns an array of search results with:

  • title - Result title
  • url - Result URL
  • snippet - Text excerpt from the page
  • summary - Markdown formatted summary (if summary: true in request)
  • score - Relevance score

Example Use Cases

Current Information Retrieval When your LLM needs up-to-date information:

# Search for recent developments
response = requests.post(
    "https://api.langsearch.com/v1/web-search",
    headers=headers,
    json={
        "query": "Python 3.14 release notes",
        "count": 3,
        "summary": True,
        "freshness": "week"
    }
)

Multi-Query Research Build context from multiple searches:

queries = [
    "climate change mitigation strategies",
    "renewable energy trends 2025",
    "carbon capture technology"
]

all_results = []
for query in queries:
    response = requests.post(
        "https://api.langsearch.com/v1/web-search",
        headers=headers,
        json={"query": query, "count": 5, "summary": True}
    )
    all_results.extend(response.json())

Semantic Reranking API

Improve search accuracy by reranking results based on semantic relevance to your query.

Endpoint

POST https://api.langsearch.com/v1/rerank

Request Parameters

ParameterTypeRequiredDescription
querystringYesThe search query for context
documentsarrayYesArray of documents to rerank (each with title, text, etc.)
modelstringNoReranking model (default: langsearch-rerank-1)
top_nintegerNoNumber of top results to return (default: 10)
return_documentsbooleanNoInclude full documents in response (default: false)

Example: Reranking Web Search Results

# Get initial search results
search_response = requests.post(
    "https://api.langsearch.com/v1/web-search",
    headers=headers,
    json={"query": "machine learning deployment best practices", "count": 10}
)

search_results = search_response.json()

# Prepare documents for reranking
documents = [
    {"title": r.get("title", ""), "text": r.get("snippet", "")}
    for r in search_results
]

# Rerank for better relevance
rerank_response = requests.post(
    "https://api.langsearch.com/v1/rerank",
    headers=headers,
    json={
        "query": "best practices for deploying ML models in production",
        "documents": documents,
        "top_n": 5
    }
)

reranked = rerank_response.json()

Building RAG Applications

Combine web search with LLM context for better information retrieval and generation:

def rag_query(user_question):
    # Step 1: Search the web for relevant information
    search_response = requests.post(
        "https://api.langsearch.com/v1/web-search",
        headers=headers,
        json={
            "query": user_question,
            "count": 5,
            "summary": True
        }
    )

    search_results = search_response.json()

    # Step 2: Extract summaries and URLs for context
    context = "\
".join([
        f"- {r['title']}: {r.get('summary', r.get('snippet', ''))}"
        for r in search_results
    ])

    # Step 3: Use with your LLM
    # This is where you'd call your LLM with the context
    rag_context = f"""
Based on recent web search results:

{context}

Answer the user's question: {user_question}
"""

    return rag_context, search_results

Error Handling

Common HTTP status codes:

StatusMeaningAction
200SuccessResults returned normally
401UnauthorizedCheck API key is valid and set correctly
429Rate limitedRetry with exponential backoff
500Server errorRetry the request later

See scripts/web_search_example.py for a complete example with error handling.

Resources

This skill includes example resource directories that demonstrate how to organize different types of bundled resources:

scripts/

Executable code (Python/Bash/etc.) that can be run directly to perform specific operations.

Examples from other skills:

  • PDF skill: fill_fillable_fields.py, extract_form_field_info.py - utilities for PDF manipulation
  • DOCX skill: document.py, utilities.py - Python modules for document processing

Appropriate for: Python scripts, shell scripts, or any executable code that performs automation, data processing, or specific operations.

Note: Scripts may be executed without loading into context, but can still be read by Claude for patching or environment adjustments.

references/

Documentation and reference material intended to be loaded into context to inform Claude's process and thinking.

Examples from other skills:

  • Product management: communication.md, context_building.md - detailed workflow guides
  • BigQuery: API reference documentation and query examples
  • Finance: Schema documentation, company policies

Appropriate for: In-depth documentation, API references, database schemas, comprehensive guides, or any detailed information that Claude should reference while working.

assets/

Files not intended to be loaded into context, but rather used within the output Claude produces.

Examples from other skills:

  • Brand styling: PowerPoint template files (.pptx), logo files
  • Frontend builder: HTML/React boilerplate project directories
  • Typography: Font files (.ttf, .woff2)

Appropriate for: Templates, boilerplate code, document templates, images, icons, fonts, or any files meant to be copied or used in the final output.


Any unneeded directories can be deleted. Not every skill requires all three types of resources.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

86.04%
按下载量换算5,188

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills