Agent skill

langchain-vector-stores

LangChain 向量存储集成使用指南,包括 Chroma、Pinecone、FAISS 和内存向量存储

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill langchain-integrations-vector-stores --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/ai-llm/langchain-integrations-vector-stores/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# langchain-vector-stores (JavaScript/TypeScript) ## 概述 向量存储是经过优化的数据库,用于存储和搜索高维向量(嵌入)。它们通过基于向量相似度而非关键字匹配来查找相似文档,从而实现语义搜索。对于 RAG(检索增强生成)系统至关重要。 ### 核心概念 - **向量数据库**:用于存储和查询嵌入的专用数据库 - **相似度搜索**:使用向量距离度量(余弦、欧几里得)查找相似文档 - **元数据过滤**:将向量搜索与元数据过滤器结合 - **持久化**:某些向量存储在内存中运行,其他持久化到磁盘/云 - **扩展性**:不同的存储具有不同的可扩展性特征 ## 向量存储选择决策表 | 向量存储 | 最适用于 | 包 | 持久化 | 可扩展性 | 主要特性 | |--------------|----------|---------|-------------|-------------|--------------| | **FAISS** | 本地、高性能 | `@langchain/community` | 磁盘 | 中等 | 快速、支持 CPU/GPU、本地 | | **Chroma** | 开发、简单 | `@langchain/community` | 磁盘 | 中等 | 易于设置、本地优先、Python API | | **Pinecone** | 生产环境、托管 | `@langchain/pinecone` | 云 | 高 | 完全托管、自动扩展、免运维 | | **Memory** | 测试、原型 | `langchain/vectorstores/memory` | 仅内存 | 低 | 简单、无设置、临时 | | **Weaviate** | GraphQL、混合搜索 | `@langchain/weaviate` | 云/自托管 | 高 | GraphQL、混合搜索、模块化 | | **Qdrant** | 高性能、过滤 | `@langchain/qdrant` | 云/自托管 | 高 | 快速、高级过滤、基于 Rust | | **Supabase** | PostgreSQL 用户 | `@langchain/community` | 云/自托管 | 高 | PostgreSQL 扩展、熟悉的工具 | ### 何时选择各存储 **选择 FAISS 如果:** - 您需要高性能的本地向量搜索 - 您希望避免外部依赖 - 您有大量向量(数百万)需要快速搜索 **选择 Chroma 如果:** - 您想要简单的本地开发 - 您需要易于持久化而无需复杂设置 - 您正在构建原型或小型应用程序 **选择 Pinecone 如果:** - 您正在构建生产应用程序 - 您希望零运维开销 - 您需要自动

What's inside
Steps it walks through
  1. 概述
  2. 核心概念
  3. 向量存储选择决策表
  4. 何时选择各存储
  5. 代码示例
  6. 内存向量存储(最简单)
  7. FAISS 向量存储
  8. Chroma 向量存储
  9. Pinecone 向量存储
  10. 增量添加文档
  11. 作为检索器使用
  12. 最大边际相关性 (MMR)
  13. 边界
  14. Agent 能够做的
Ships with 1 file
  • metadata.json
Commands it runs
npm install @langchain/community
Pinecone
npm install @langchain/pinecone @pinecone-database/pinecone
Weaviate
npm install @langchain/weaviate weaviate-ts-client
Qdrant
npm install @langchain/qdrant @qdrant/js-client-rest
More from claude-skill-registry
All skills →
About this skill
What does the langchain-vector-stores skill do?

LangChain 向量存储集成使用指南,包括 Chroma、Pinecone、FAISS 和内存向量存储

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill langchain-integrations-vector-stores --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going