Community编程与开发github.com

langchain-ai/langchain-rag

构建任何检索增强生成(RAG)系统时调用此技能。涵盖文档加载器、递归字符文本分割器、嵌入(OpenAI)以及向量存储(Chroma、FAISS、Pinecone)。

langchain-rag 是什么?

该技能专为开发者构建检索增强生成(RAG)系统而设计,提供从文档加载到最终检索的全流程指导。它支持多种文档加载器,能够从不同来源(如PDF、网页、数据库)提取文本,并利用递归字符文本分割器(RecursiveCharacterTextSplitter)将长文档智能切分成语义完整的块。在嵌入方面,技能以OpenAI嵌入模型为例,演示如何将文本转换为向量表示,进而集成主流的向量存储工具,包括Chroma、FAISS和Pinecone,用于高效的相似性搜索。该技能适用于LangChain框架,可帮助开发者快速搭建RAG流水线,减少重复实验,加快从原型到生产的过程。通过提供清晰的代码示例和最佳实践,它使得即便是RAG新手也能自信地构建基于知识检索的问答系统。

兼容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/langchain-ai/langchain-skills/tree/main/skills/langchain-rag

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

langchain-rag 是做什么的?

构建任何检索增强生成(RAG)系统时调用此技能。涵盖文档加载器、递归字符文本分割器、嵌入(OpenAI)以及向量存储(Chroma、FAISS、Pinecone)。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

langchain-ai/deep-agents-core

INVOKE THIS SKILL when building ANY Deep Agents application. Covers create_deep_agent(), harness architecture, SKILL.md format, and configuration options.

langchain-ai/deep-agents-memory

INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access. Covers StateBackend (ephemeral), StoreBackend (persistent), FilesystemMiddleware, and CompositeBackend for routing.

langchain-ai/deep-agents-orchestration

INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents. Covers SubAgentMiddleware, TodoList for planning, and HITL interrupts.

langchain-ai/framework-selection

INVOKE THIS SKILL at the START of any LangChain/LangGraph/Deep Agents project, before writing any agent code. Determines which framework layer is right for the task: LangChain, LangGraph, Deep Agents, or a combination. Must be consulted before other agent skills.

langchain-ai/langchain-dependencies

INVOKE THIS SKILL when setting up a new project or when asked about package versions, installation, or dependency management for LangChain, LangGraph, LangSmith, or Deep Agents. Covers required packages, minimum versions, environment requirements, versioning best practices, and common community tool packages for both Python and TypeScript.

langchain-ai/langchain-fundamentals

Create LangChain agents with create_agent, define tools, and use middleware for human-in-the-loop and error handling.

langchain-ai/langchain-middleware

INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output. Covers HumanInTheLoopMiddleware for human approval of dangerous tool calls, creating custom middleware with hooks, Command resume patterns, and structured output with Pydantic/Zod.

langchain-ai/langgraph-fundamentals

INVOKE THIS SKILL when writing ANY LangGraph code. Covers StateGraph, state schemas, nodes, edges, Command, Send, invoke, streaming, and error handling.

langchain-ai/langgraph-human-in-the-loop

INVOKE THIS SKILL when implementing human-in-the-loop patterns, pausing for approval, or handling errors in LangGraph. Covers interrupt(), Command(resume=...), approval/validation workflows, and the 4-tier error handling strategy.

langchain-ai/langgraph-persistence

INVOKE THIS SKILL when your LangGraph needs to persist state, remember conversations, travel through history, or configure subgraph checkpointer scoping. Covers checkpointers, thread_id, time travel, Store, and subgraph persistence modes.

langchain-ai/swarm

Dispatches many independent items in parallel: create a table, fan out to subagents, aggregate results. One row = one unit of work.

相关技能