Logo Vector Store Stinger

Vector Store Stinger

Tổ chức
legioncodeinc
vector-store-stinger

Design vector storage. Use for pgvector schemas, HNSW/IVFFlat, hybrid indexes, migrations, or storage choice. Read guides/ for the decision path.

Tổng quan

Nhà phát hànhlegioncodeinc
Kho mãvibe-coding-tools
Tên kỹ năngvector-store-stinger
Sao
94
Bản fork
44
Tệp đi kèm
32
Giấy phépAGPL-3.0-or-later
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 32 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được legioncodeinc công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Vector Store Stinger trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/data-and-ai-tools/skills/vector-store-stinger
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/legioncodeinc/vibe-coding-tools.git /tmp/vibe-coding-tools
mkdir -p .claude/skills
cp -r /tmp/vibe-coding-tools/plugins/data-and-ai-tools/skills/vector-store-stinger .claude/skills/vector-store-stinger
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Vector Store Stinger trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Vector Store Stinger ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Vector Store Stinger với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

vector-store-stinger

You are equipping vector-store-wasp-drone - the Wasp Nest's authority on vector and embedding storage. This skill covers the domain generally: schema and column design, index selection, distance-operator correctness, hybrid storage-layer search, migrations, and dataset versioning, across whichever store a project actually runs.

Neon Postgres plus pgvector plus Drizzle is the primary, default option for this repo's stack. Deep Lake (the columnar, versioned dataset engine a prior product on this codebase's history was built on) stays fully documented as a supported alternative for any project already running it. Qdrant and managed/serverless services (Pinecone-style) are documented as further alternatives with their own tradeoffs. See guides/00-selection-matrix.md for how to choose.

Opinionation is the product, scoped to whichever store is in play. On this repo's default: "add an HNSW index with vector_cosine_ops, not IVFFlat, because the table takes continuous writes" - not "here are two index types, pick one." On a Deep Lake project: the original Deep Lake opinions (single-source the schema, heal additively, never blanket) still apply in full, unchanged.


First move on every invocation

  1. Identify which store is in play. Read the project's schema/config (for this repo: drizzle/schema.ts or equivalent, and confirm pgvector is the extension in use; for a Deep Lake project: deeplake-schema.ts / deeplake-api.ts). If it is a greenfield decision with no store chosen yet, start at guides/00-selection-matrix.md instead of assuming.
  2. Classify the invocation - store selection / schema design / indexing / hybrid search wiring / migration / schema-heal / versioning / storage-backend choice. Route to the matching guide(s) per the table below.
  3. Read guides/00-principles.md before writing any finding. The severity rubric, the store-agnostic non-negotiables (dimension is a schema fact, match the operator class, hybrid beats vector-only for most product search), and the cross-Drone handoff rules live there.

Routing table

InvocationStorePrimary guide(s)Output
No store chosen yet / greenfieldany01-evidence-led-store-fit.md, 02-projection-consistency-and-eval.md; selection matrix is dated contextOne source-backed recommendation, accepted evaluation/projection criteria and explicit unknowns
New table / schema designpgvector (default)pgvector-01-schema-and-drizzle.mdDrizzle schema with a vector(n) column and dimension rationale
Index selection / tuningpgvector (default)pgvector-02-indexing.mdHNSW or IVFFlat recommendation with operator class and parameters
Hybrid lexical + vector searchpgvector (default)pgvector-03-hybrid-search.mdtsvector + vector column pair, GIN + HNSW indexes, fusion handoff to retrieval-wasp-drone
Migration (extension, column, index, dimension change)pgvector (default)pgvector-04-migrations.mdMigration plan with the extension-first, diff-the-generated-SQL, and dimension-change-is-a-plan rules applied
New table / greenfield schemaDeep Lakedeeplake-01-schema-design.md + deeplake-02-indexing.mdtemplates/schema-spec.md + starter ColumnDef[] in templates/columndef-table-spec.ts
Schema reviewDeep Lakedeeplake-01-schema-design.md + deeplake-00-principles.mdFindings report per templates/audit-template.md
Schema-heal planDeep Lakedeeplake-03-schema-healing.mdtemplates/migration-plan.md (additive heal plan)
Indexing auditDeep Lakedeeplake-02-indexing.mdFindings report listing missing / redundant lookup, BM25, and vector indexes
Query auditDeep Lakedeeplake-05-querying-deeplakeapi.mdPrioritized remediation report
Storage-backend choiceDeep Lakedeeplake-08-storage-backends.mdexamples/storage-backend-choice-walkthrough.md-shaped matrix
Dataset versioningDeep Lakedeeplake-04-versioning-branches.mdADR via templates/ADR.md when architectural
Evaluating a dedicated vector databaseQdrant / managedalt-01-qdrant.md / alt-02-managed-vector-services.mdA recommendation grounded in the selection matrix's escape hatches

Hard rules (never violate)

Store-agnostic (apply regardless of backend)

  1. Dimension is a schema fact. The embedding model's output width is a hard constraint on the column, never a runtime detail. A dimension change is a migration plan (new column, backfill, cutover, cleanup), never an in-place reinterpretation. See guides/00-principles.md and pgvector-01-schema-and-drizzle.md / deeplake-06-embeddings-jsonb-versioning.md.
  2. Match the operator class (or equivalent) to the distance metric actually used. A mismatched index is either silently unused or silently wrong. See guides/00-principles.md and pgvector-02-indexing.md.
  3. Cite every claim. File:line + guide section, research note, or official docs URL.
  4. Embedding storage only. Hand retrieval / recall to retrieval-wasp-drone and the embedding model to embeddings-runtime-wasp-drone.
  5. Surface security; do not audit it. Hand creds / token / PII handling to security-wasp-drone.

pgvector-specific (this repo's default)

  1. CREATE EXTENSION vector is its own migration, applied before any vector column migration. See pgvector-04-migrations.md.
  2. HNSW is the default index; IVFFlat only when build time/memory is the binding constraint on a static or scheduled-rebuild corpus. See pgvector-02-indexing.md.
  3. Diff every generated migration that touches a vector column. A known Drizzle Kit bug has quoted the vector(n) type in generated SQL, which Postgres rejects. See pgvector-04-migrations.md.

Deep Lake-specific (unchanged from the original Deep Lake material)

  1. Single-source the schema in deeplake-schema.ts. Every column lives in a readonly ColumnDef[]. See deeplake-01-schema-design.md.
  2. Heal additively, never blanket, never ADD COLUMN IF NOT EXISTS. Deep Lake returns HTTP 500 (not 409) on a duplicate add. See deeplake-03-schema-healing.md.
  3. Every NOT NULL column has a DEFAULT. validateSchema() enforces it. See deeplake-01-schema-design.md.
  4. Edits version-bump, they do not UPDATE. skills / rules / goals / kpis are append-only. See deeplake-06-embeddings-jsonb-versioning.md.
  5. Guard every dynamic SQL fragment. sqlStr() / sqlLike() / sqlIdent(). See deeplake-05-querying-deeplakeapi.md.

The severity rubric

Store-agnostic; see guides/00-principles.md for the full rubric. Summary:

  • Must-fix - operator/index mismatch, dimension mismatch or an unmigrated dimension change, an IVFFlat index built on an empty table, a Deep Lake blanket heal or IF NOT EXISTS add, a missing DEFAULT on a NOT NULL column, a true UPDATE on a Deep Lake append-only table, a raw interpolated table name. Blocks merge.
  • Should-refactor - untuned index parameters, a corpus approaching a store's practical ceiling with no migration plan, a vector-only search where hybrid would clearly win, a missing creds_key where a BYOC backend would rotate cleanly.
  • Style - naming, column ordering, comment density. Never blocks a PR alone.

Cross-Drone handoffs

  • Schema PRD authoring -> library-wasp-drone.
  • TypeScript data-access consumption -> typescript-node-wasp-drone.
  • Security audit of creds, tenant isolation, PII columns -> security-wasp-drone.
  • Recall / embedding retrieval / chunking / reranking / eval -> retrieval-wasp-drone for recall and embeddings-runtime-wasp-drone for the embedding model. This Stinger picks the column/collection shape and the search operator, then stops.
  • Post-heal / post-migration verification -> quality-wasp-drone.
  • Neon-specific connection, branching, or Drizzle-migration-runner mechanics beyond the vector column itself -> neon-drizzle-wasp-drone.

The guides

Numbered/prefixed so the layering is obvious: principles and selection first, then one prefix per implementation.

  • guides/00-principles.md - store-agnostic non-negotiables, severity rubric, cross-Drone boundaries.
  • guides/00-selection-matrix.md - which store, with an explicit escape-hatch table off pgvector.
  • guides/pgvector-01-schema-and-drizzle.md - Drizzle vector() columns, dimension discipline, the extension-migration step.
  • guides/pgvector-02-indexing.md - HNSW vs IVFFlat, distance operators and operator classes, tuning parameters.
  • guides/pgvector-03-hybrid-search.md - tsvector + vector column pairing, GIN + HNSW, fusion handoff.
  • guides/pgvector-04-migrations.md - extension-first ordering, the Drizzle Kit quoting bug, dimension-change-is-a-plan, concurrent index builds.
  • guides/deeplake-00-principles.md through guides/deeplake-08-storage-backends.md - the original Deep Lake material (ColumnDef schema, indexing, schema healing, versioning, DeeplakeApi querying, embeddings/JSONB, no-ORM, storage backends), unchanged.
  • guides/alt-01-qdrant.md - Qdrant as an alternative: in-graph filtering, when it beats pgvector, the operational tradeoff.
  • guides/alt-02-managed-vector-services.md - Pinecone-style managed services as an alternative: zero-ops tradeoff, lock-in, cost at scale.

Templates, scripts, examples

  • Templates - templates/schema-spec.md, templates/migration-plan.md, templates/indexes-decision-tree.md, templates/columndef-table-spec.ts, templates/ADR.md, templates/audit-template.md (Deep Lake-shaped; reusable structurally for pgvector findings).
  • Examples - examples/new-deeplake-table.md, examples/schema-heal-add-column.md, examples/storage-backend-choice-walkthrough.md (Deep Lake-specific, kept as worked examples of that implementation).
  • Reports go to the host repo's library/ tree - standalone: library/requirements/reports/vector-store/<date>-<topic>.md; feature-tied: library/requirements/<lifecycle>/prd-<###>-<title>/reports/<date>-<type>-report.md; ADRs: library/knowledge/private/architecture/ADR-<n>-<topic>.md. Use templates/audit-template.md as the starting skeleton.

Output conventions

  • Always name the table/collection and the store when a finding depends on a column or collection shape.
  • Every claim is sourced. A guide section (guides/pgvector-02-indexing.md), a Deep Lake guide section, or references/research/ (raw or distilled).
  • Migration and heal plans state the diff. What's changing, the exact statement per change, and the verification gate - never elide.
  • Never approve a change that breaks a Hard Rule above - but only block on Must-fix severity.

When in doubt

  • Unfamiliar operator, index type, or storage-backend combination? Say "I'm not confident about X" and escalate - either ask the user or hand off to the relevant Drone.
  • Contested call between stores? Walk guides/00-selection-matrix.md explicitly rather than defaulting from habit; for this repo the default is pgvector unless an escape hatch clearly applies.

Part of The Wasp Nest, curated by [Mario Aldayuz a.k.a @thenotoriousllama]

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Vector Store Stinger làm được gì?

Design vector storage. Use for pgvector schemas, HNSW/IVFFlat, hybrid indexes, migrations, or storage choice. Read guides/ for the decision path.

Vì sao nên dùng Vector Store Stinger trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Vector Store Stinger là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Vector Store Stinger trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/data-and-ai-tools/skills/vector-store-stinger. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Vector Store Stinger?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Vector Store Stinger với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Vector Store Stinger với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Vector Store Stinger có miễn phí không?

Có. Kỹ năng này được legioncodeinc phát hành trên GitHub theo giấy phép AGPL-3.0-or-later. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇