Token导航 LogoToken导航

Agent Skill · 研究检索

langchain(LangChain 开发)

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

langchain 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,244。

总安装 339周安装 14GitHub Stars 4下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:langchain(LangChain 开发)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/langchain
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill langchain
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill langchain

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

该技能用于 LangChain 框架集成,支持 LLM 工作流链式组合与外部工具调用。适用于构建 AI 应用原型、问答系统或多模型协同处理复杂查询。通过 GitHub 仓库安装,兼容 Codex、Claude、Cursor、Gemini CLI。使用时应注意 API 密钥管理及外部数据源的安全接入。

适合快速搭建 AI 代理,但需评估生产环境下的稳定性与成本。

来源仓库内路径:skills/langchain

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/alphaonedev/openclaw-graph --skill langchain;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

langchain 怎么安装?

在终端执行 npx skills add https://github.com/alphaonedev/openclaw-graph --skill langchain。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

langchain 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

langchain 需要什么权限?

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

langchain 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

langchain 用的人多吗?

公开数据是累计安装 339 次,近一周安装 14 次,下载 111 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

langchain 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
langchain

LangChain 开发 · 本页

3394接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

langchain

Purpose

LangChain is a Python framework for developing applications that integrate large language models (LLMs) into workflows, enabling the creation of chains that combine multiple LLMs or tools for tasks like question answering or data processing.

When to Use

Use LangChain when building AI-powered apps that require chaining LLMs, such as integrating multiple models for complex queries, or when you need to handle external data sources with LLMs. Apply it for rapid prototyping of AI agents, like chatbots that fetch real-time data, or for ML operations in aimlops clusters where scalable LLM workflows are needed.

Key Capabilities

  • Chain Building: Create sequences of LLMs using classes like LLMChain; for example, combine a prompt template with an LLM call.
  • Tool Integration: Supports integrations with APIs like OpenAI via OpenAI class; handle vector stores with FAISS for semantic search.
  • Prompt Management: Use PromptTemplate to define and render prompts dynamically, e.g., with variables for user input.
  • Agent Frameworks: Build agents with tools using AgentType.ZERO_SHOT_REACT, allowing dynamic tool selection based on LLM output.
  • Async Support: Leverage asynchronous chains for scalable applications, such as processing multiple queries concurrently.

Usage Patterns

To use LangChain, install it via pip install langchain, then import and configure components. For basic chains, create an LLM instance and link it to prompts or tools. Pattern: Initialize an LLM with an API key, build a chain, and run it in a loop for iterative tasks. For agents, define tools and let the agent decide actions based on input.

Common Commands/API

  • Installation and Setup: Run pip install langchain[all] to include extras; set environment variables like export OPENAI_API_KEY=your_key for authentication.
  • Basic Chain Example: from langchain.llms import OpenAI from langchain.chains import LLMChain llm = OpenAI(model_name="gpt-3.5-turbo") chain = LLMChain(llm=llm, prompt="What is {topic}?") result = chain.run(topic="LangChain")
  • API Endpoints: When using LangChain with external services, call endpoints like https://api.openai.com/v1/chat/completions via LangChain wrappers; pass headers with auth tokens.
  • Config Formats: Use YAML for chain configurations, e.g., in a file: chains: - name: simple_chain llm: OpenAI prompt: "Summarize {text}" Load with from langchain.utilities import load_config.
  • CLI Commands: For LangChain CLI (if extended), use langchain serve to run chains as services, or debug with langchain debug --chain my_chain to trace executions.

Integration Notes

Integrate LangChain with other tools by wrapping them as callable functions. For example, to add a database query tool, use Tool.from_function and pass it to an agent. Set env vars for keys, e.g., $OPENAI_API_KEY for OpenAI models or $SERPAPI_API_KEY for search integrations. When combining with aimlops cluster tools, ensure compatibility by using LangChain's callback system for logging; import from langchain.callbacks import get_openai_callback to track token usage. For vector databases, integrate with Pinecone by initializing from langchain.vectorstores import Pinecone and providing your API key via env var.

Error Handling

Handle errors by wrapping chain runs in try-except blocks, e.g.:

try:
    result = chain.run(input_data)
except ValueError as e:
    print(f"Invalid input: {e}")
except Exception as e:
    print(f"General error: {e} - Check API key or network")

Common issues include API rate limits (check with if e.status_code == 429: retry()), invalid API keys (verify $OPENAI_API_KEY is set), or chain misconfigurations (use chain.validate() if available). Log errors using LangChain's handlers for debugging in production.

Concrete Usage Examples

  1. Simple Question-Answering Chain: Build a chain to answer questions using an LLM and a vector store. First, set export OPENAI_API_KEY=your_key. Then: from langchain.chains import RetrievalQA from langchain.llms import OpenAI qa_chain = RetrievalQA.from_chain_type(llm=OpenAI(), chain_type="stuff") answer = qa_chain.run({"query": "What is LangChain?"}) This fetches relevant documents and generates a response.
  2. Agent for Web Search: Create an agent that uses tools for web searches. Set export SERPAPI_API_KEY=your_key. Code: from langchain.agents import AgentType, load_tools, initialize_agent from langchain.llms import OpenAI tools = load_tools(["serpapi"]) agent = initialize_agent(tools, OpenAI(), agent=AgentType.ZERO_SHOT_REACT) response = agent.run("Search for latest AI news") The agent dynamically queries the web and returns results.

Graph Relationships

  • Related to cluster: aimlops (e.g., shares tools for ML operations).
  • Connected via tags: langchain (self), llm (links to other LLM tools), ai-framework (connects to frameworks like Hugging Face).
  • Dependencies: Requires OpenAI or similar APIs, integrates with vector stores like FAISS or Pinecone.

平台分布

Codex

32.46%
按下载量换算36

Claude

30.78%
按下载量换算34

Cursor

19.21%
按下载量换算21

Gemini CLI

9.02%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills