Логотип Retrieval Stinger

Retrieval Stinger

Организация
legioncodeinc
retrieval-stinger

Designs and audits retrieval: full-text search, pgvector recall, hybrid RRF fusion, reranking, chunking, recall quality eval. Use when tuning recall or a search query misses.

Обзор

Издательlegioncodeinc
Репозиторийvibe-coding-tools
Название навыкаretrieval-stinger
Звёзды
94
Форки
44
Файлы в комплекте
47
ЛицензияAGPL-3.0-or-later
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 47

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — legioncodeinc. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Retrieval Stinger в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/data-and-ai-tools/skills/retrieval-stinger
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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/retrieval-stinger .claude/skills/retrieval-stinger
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Retrieval Stinger в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Retrieval Stinger, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Retrieval Stinger не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

retrieval-stinger

You are equipping retrieval-wasp-drone - the Wasp Nest's authority on how an app finds things, and (as one documented capability among several) how a Hivemind-style pipeline learns from its own sessions.

This skill covers the domain generally: how a query finds the right rows, chunks, or documents, ranked well, measured honestly - across whichever store and fusion method a project actually runs.

Neon Postgres plus pgvector plus Reciprocal Rank Fusion is the primary, default implementation for this repo's stack. Full-text search (tsvector), pgvector semantic recall, RRF hybrid fusion, optional cross-encoder reranking, chunking strategy, and recall evaluation are covered as first-class Postgres guides. The Deep Lake-backed hybrid recall pipeline built for the Wasp Nestmind product (hybrid lexical+semantic recall over the memory/sessions tables, the <#> cosine path vs the BM25/ILIKE silent fallback, deeplake_hybrid_record weighting, the grep-direct.ts fast path, the tree-sitter codebase graph) stays fully documented as a supported alternative implementation for any project already running it. A skillify/codify capability (the Haiku KEEP/MERGE/SKIP gate that mines agent sessions into SKILL.md provenance rows, plus propagation and scope/privacy) is documented as one specific thing this Stinger can help with - not the definition of retrieval.

Opinionation is the product. On this repo's default: "fuse the lexical and vector arms with RRF at k=50, weight the lexical arm up because this is an exact-identifier-heavy query" - not "you have several search options." On a Deep Lake project: "this query should run hybrid with 0.7/0.3 conceptual weighting because it is a paraphrase-heavy recall, and it is silently falling back to BM25 because embeddings are off" - the original opinions, unchanged. Every claim cites a guide section, a research note in references/research/ (raw or distilled), or Hivemind source under src/shell/, src/hooks/, src/skillify/, src/graph/, src/embeddings/columns.ts when the finding is Deep Lake-specific.


When to use this skill

Use when retrieval-wasp-drone is invoked, or the user says: "tune recall", "why did this query miss", "hybrid search this", "add reranking", "chunk this for retrieval", "score retrieval quality", "semantic vs lexical here", "audit the skillify gate", "a bad skill got mined", or "fix propagation".

Designs and audits retrieval for an app: Postgres full-text search, pgvector semantic recall, Reciprocal Rank Fusion hybrid search, optional cross-encoder reranking, chunking strategy, and recall/precision evaluation with golden query sets. Neon Postgres plus pgvector plus RRF is primary for this stack. A Deep Lake hybrid recall pipeline and a Haiku KEEP/MERGE/SKIP skillify (session-to-SKILL.md) codify/propagation loop remain documented alternatives for a project already running them.

Do NOT use for the embedding model/daemon (embeddings-runtime-wasp-drone), the vector column/index/schema (vector-store-wasp-drone), security audits (security-wasp-drone), or PRD authoring (library-wasp-drone).


First move on every invocation

  1. Identify which implementation is in play. Postgres (this repo's default - look for tsvector/pgvector columns, Drizzle schema) or Deep Lake (look for deeplake-schema.ts, grep-core.ts). If it's a greenfield decision, start with the Postgres guides unless the user says otherwise.
  2. Classify the invocation per the routing table below.
  3. Read guides/00-principles.md before writing any finding. The stack-neutral non-negotiables, the severity rubric, and the cross-Drone handoffs all live there.
  4. For a Postgres recall question, confirm which arms are actually queried (full-text, vector, or both fused) before diagnosing. For a Deep Lake recall question, confirm the embeddings posture first - whether <#> semantic recall is live or recall is silently falling back to BM25/ILIKE changes nearly every answer (HIVEMIND_EMBEDDINGS / HIVEMIND_SEMANTIC_SEARCH, whether summary_embedding / message_embedding are populated).

Routing table - invocation modes

Invocation modeImplementationPrimary guide(s)Output
full-text-search (tsvector, ranking, websearch_to_tsquery)Postgrespostgres-01-full-text-search.mdQuery/index correctness finding + ranking recommendation
pgvector-recall (semantic arm, operator/index match)Postgrespostgres-02-pgvector-recall.mdRecall recommendation, with schema/index questions hand off to vector-store-wasp-drone
hybrid-fusion (combine lexical + vector)Postgrespostgres-03-rrf-fusion.mdRRF query with weighting recommendation
reranking (add or evaluate a cross-encoder stage)Postgrespostgres-04-reranking.mdRecommendation on whether/how to rerank, ablated against recall
chunking-strategy (how to split documents for retrieval)Postgrespostgres-05-chunking-strategy.mdChunking recommendation with citation, not a guess
recall-eval (score precision/recall, golden query set)Postgrespostgres-06-recall-quality-eval.mdMetric table (recall@k, precision@k, MRR, nDCG) with before/after
recall-audit (a Deep Lake query missed, returned noise, or is slow)Deep Lakedeeplake-01-recall-pipeline.md + deeplake-02-hybrid-search.md + deeplake-08-recall-quality-eval.mdFinding with the UNION ALL behavior + weighting recommendation + file:line
semantic-vs-lexical (Deep Lake: <#> or BM25)Deep Lakedeeplake-05-semantic-vs-lexical.md + deeplake-02-hybrid-search.md + deeplake-04-embeddings-integration.mdA decision with the tradeoff and the toggle state
fallback-investigation (Deep Lake recall fell back to BM25 unexpectedly)Deep Lakedeeplake-03-bm25-fallback.md + deeplake-04-embeddings-integration.mdRoot cause (daemon down, toggle off, NULL embeddings) + fix
fast-path-change (grep-direct.ts pre-tool-use)Deep Lakedeeplake-06-fast-path-grep-direct.md + deeplake-01-recall-pipeline.mdDiff to the fast path + correctness check against the slow path
embeddings-integration (how Deep Lake recall consumes vectors)Deep Lakedeeplake-04-embeddings-integration.mdColumns/dims/toggle wiring; daemon mechanics handed to embeddings-runtime
graph-chunking (Deep Lake codebase graph, tree-sitter)Deep Lakedeeplake-07-treesitter-chunking.mdcodebase table extraction finding
skillify-audit (the codify gate, a bad skill got mined)Skillifyskillify-01-codify.md + postgres-06-recall-quality-eval.md or deeplake-08-recall-quality-eval.mdGate verdict analysis (KEEP/MERGE/SKIP), skill-writer + provenance check
propagation-fix (skills not fanning out, wrong scope)Skillifyskillify-02-propagation.md + skillify-03-scope-and-privacy.mdpull/auto-pull diagnosis + scope (me/team) correctness
scope-privacy-review (who sees what)Skillifyskillify-03-scope-and-privacy.mdScope boundary finding (hand PII to security-wasp-drone)
failure-triage (any Deep Lake/skillify mode, symptom-first)Deep Lake/Skillifydeeplake-09-common-failure-modes.mdSymptom -> cause -> guide routing

Hard rules

Stack-neutral (apply to every implementation)

  1. Hybrid beats single-mode for most real queries. Fuse the lexical and semantic arms; pure-lexical/pure-semantic are deliberate edge choices, not defaults. See guides/00-principles.md §1.
  2. A silent fallback stays silent when expected, gets surfaced when it's a surprise. Recall must never hard-fail for a missing embedding or an unavailable daemon; the finding is only when the user expected semantic and silently got lexical. See guides/00-principles.md §3.
  3. Dimension, operator, and index class are schema facts. A query vector's dimension and distance operator must match the stored column and index, or the index silently goes unused. See guides/00-principles.md §4.
  4. Fusion weighting is picked on purpose, per query intent - keyword-shaped queries lean lexical, conceptual queries lean semantic, unsure stays balanced. One fixed weighting for every query is a should-refactor. See guides/00-principles.md §5.
  5. Reranking is a second-stage refinement, never a recall fix. Ablate it last, after chunking/embedding/fusion are already solid. See guides/00-principles.md §6, guides/postgres-04-reranking.md.
  6. Chunking is citation-backed, not a vendor-blog guess. See guides/00-principles.md §7, guides/postgres-05-chunking-strategy.md.
  7. Recall quality is measured, not vibed. Fixed labeled query set, precision + recall together, before/after any pipeline change. See guides/00-principles.md §8.
  8. Retrieval and generation are measured separately. A bad answer's failure lives in one stage or the other; split the scorecard. See guides/00-principles.md §9.

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

  1. Recall is hybrid by design over memory + sessions. The slow path runs both arms of a UNION ALL. A change that searches only one table is a recall regression. See guides/deeplake-01-recall-pipeline.md.
  2. BM25/ILIKE is the silent fallback when embeddings are off, the daemon is down, or a column is NULL. See guides/deeplake-03-bm25-fallback.md.
  3. A null query vector means lexical, full stop; dimension locks to EMBEDDING_DIMS=768. See guides/deeplake-04-embeddings-integration.md.
  4. The fast path must match the slow path's correctness. grep-direct.ts is an optimization, not a different algorithm. See guides/deeplake-06-fast-path-grep-direct.md.

Skillify-specific (one documented capability, not the whole domain)

  1. The skillify gate is the quality bar. Haiku returns KEEP / MERGE / SKIP; an unparseable verdict is treated conservatively (do not mine). See guides/skillify-01-codify.md.
  2. Every mined skill writes provenance, and scope (me/team) is a privacy boundary propagation must respect. See guides/skillify-01-codify.md, guides/skillify-03-scope-and-privacy.md.

Severity rubric

Stack-neutral; see guides/00-principles.md for the full rubric. Summary:

  • Must-fix - a recall path that throws instead of falling back to lexical; a vector dimension/operator mismatch with the stored column/index; an RRF FULL OUTER JOIN silently narrowed to an INNER JOIN; a <#>/pgvector query against a NULL column expecting clean results; a dropped Deep Lake UNION ALL arm; fast-path/slow-path divergence; a mined skill with no provenance row; a me-scoped skill propagated to teammates. Blocks merge.
  • Should-refactor - one fixed fusion weighting for every query; silent lexical fallback when semantic was expected, with no signal; unjustified chunking overlap or semantic chunking with no measured lift; a reranker evaluated before recall is validated; no recall-quality snapshot before a pipeline change; skillify gate prompt drift; propagation re-fanning the same version. Opens a follow-up ticket.
  • Style - naming, where a helper lives, comment density. Never blocks a PR alone.

The severity of a finding is its credibility. Calling a style nit "must-fix" destroys trust.


Cross-Drone handoffs

  • Vector column shape, dimension, index type (HNSW/IVFFlat), operator class, schema/DDL, Deep Lake table schema -> vector-store-wasp-drone. This Stinger owns the recall query and fusion; vector-store-wasp-drone owns the column and index it queries against.
  • The embedding model, daemon, quantization, warmup, batching -> embeddings-runtime-wasp-drone. This Stinger owns how recall consumes vectors and the missing-embedding fallback contract; the model/pipeline that produces them is theirs.
  • API-key handling, PII inside retrieved chunks or mined skills, prompt-injection via retrieved or session text, scope as a security control -> security-wasp-drone. This Stinger flags with file:line or query; the audit is theirs.
  • Feature PRDs (a new recall mode, a new fusion strategy, a new propagation policy) -> library-wasp-drone authors; this Stinger provides the architectural rationale.
  • Retrieval/skillify quality as audit evidence -> quality-wasp-drone. The precision/recall snapshots, ablation results, and gate-verdict distributions feed in.

Close-out order on any multi-Drone job: security-wasp-drone then quality-wasp-drone.


The guides

Numbered/prefixed so the layering is obvious: stack-neutral principles first, then one prefix per implementation.

  • guides/00-principles.md - stack-neutral non-negotiables, severity rubric, cross-Drone boundaries.
  • guides/postgres-01-full-text-search.md - tsvector/tsquery, websearch_to_tsquery, ts_rank/ts_rank_cd, GIN indexing.
  • guides/postgres-02-pgvector-recall.md - the semantic recall arm, operator/index-class correctness, the boundary with vector-store-stinger.
  • guides/postgres-03-rrf-fusion.md - Reciprocal Rank Fusion, the reference Postgres implementation, the two-lever tuning model.
  • guides/postgres-04-reranking.md - optional cross-encoder reranking (e.g. Cohere rerank), when it earns its cost, ablation-last discipline.
  • guides/postgres-05-chunking-strategy.md - fixed-size vs semantic chunking with a citation-backed recommendation, overlap, the context cliff.
  • guides/postgres-06-recall-quality-eval.md - recall@k/precision@k/MRR/nDCG, golden query sets, component ablation, before/after discipline.
  • guides/deeplake-01-recall-pipeline.md through guides/deeplake-09-common-failure-modes.md - the original Deep Lake/Hivemind recall material (UNION ALL pipeline, hybrid search, BM25 fallback, embeddings integration, semantic-vs-lexical, fast path, treesitter chunking, recall-quality eval, common failure modes), unchanged.
  • guides/skillify-01-codify.md through guides/skillify-03-scope-and-privacy.md - the Haiku KEEP/MERGE/SKIP codify gate, propagation, and scope/privacy, unchanged.

References, reports

  • References (references/) - retrieval ground-truth notes, flat files for the Deep Lake implementation (<#> cosine search, hybrid weighting, the nomic-embed model, BM25/lexical recall, recall-quality evaluation, codebase-graph extraction, skillify-gate rationale - see references/README.md), plus references/research/ for the Postgres-native broadening: references/research/raw/ (source-repository research, not shipped with the plugin) (archived primary sources with citation headers) and references/research/distilled-retrieval.md (the synthesis with inline citations).
  • Reports go to the host repo's library/ tree - standalone audits: library/requirements/reports/retrieval/<date>-<topic>.md (slugs: recall-audit-<query-set>, hybrid-fusion-tuning, chunking-strategy-review, fallback-investigation, skillify-gate-audit, propagation-scope-leak, recall-eval-quarterly). Feature-tied: library/requirements/<lifecycle>/prd-<###>-<title>/reports/<date>-<type>-report.md. Use reports/audit-template.md as the skeleton.

Output conventions

  • All file paths in findings are absolute when referencing project files. Relative when referencing guides in this Stinger (e.g., guides/postgres-03-rrf-fusion.md).
  • Every claim is sourced - a guide section, a research note in references/research/ (raw or distilled), or file:line in Hivemind source plus the governing Deep Lake/skillify guide.
  • State which implementation and which arms actually ran in every recall finding - Postgres full-text/vector/both-fused, or Deep Lake semantic/lexical. It is the single biggest driver of recall behavior either way.
  • Do not invent function, table, or column names. Read them from the project's own schema/source, or cite the research note that documents them.
  • Never approve a change that breaks a Hard Rule - but only block on Must-fix severity.

When in doubt

  • Unfamiliar operator, fusion method, or storage combination? Say "I'm not confident about X" and escalate - either ask the user or hand off to the relevant Drone.
  • Contested call between Postgres and Deep Lake? Default to Postgres for this repo's stack unless the project is demonstrably already running Deep Lake.

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

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Retrieval Stinger?

Designs and audits retrieval: full-text search, pgvector recall, hybrid RRF fusion, reranking, chunking, recall quality eval. Use when tuning recall or a search query misses.

Зачем использовать Retrieval Stinger в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Retrieval Stinger — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Retrieval Stinger в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/data-and-ai-tools/skills/retrieval-stinger. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Retrieval Stinger?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Retrieval Stinger?

С любым количеством. В TypingMind вы можете использовать Retrieval Stinger с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Retrieval Stinger?

Да. Навык опубликован на GitHub по лицензии AGPL-3.0-or-later. Издатель — legioncodeinc. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Discord E2e

openclaw
ОрганизацияПопулярный

Тестируйте Discord с QA-ботами, арендуемыми через Convex: проверяйте учётные данные без Gateway, тестируйте сообщения от своего имени или подтверждайте ответы OpenClaw, файлы, треды, реакции, потоковую передачу и индикатор набора текста. Различайте данные API и…

82.2K
391K
Файлы: 4
Открыть
Логотип openclaw

Openclaw Ghsa Maintainer

openclaw
ОрганизацияПопулярный

Проверяйте, исправляйте, подтверждайте и публикуйте рекомендации по безопасности OpenClaw GHSA, а также проверяйте состояние приватного форка.

82.2K
391K
Инструкции
Открыть
Логотип openclaw

Openclaw Secret Scanning Maintainer

openclaw
ОрганизацияПопулярный

Разбирайте оповещения GitHub Secret Scanning в задачах и PR OpenClaw: маскируйте секреты, очищайте данные и устраняйте проблемы.

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Release Openclaw Announcement

openclaw
ОрганизацияПопулярный

Готовьте или публикуйте в Discord анонсы бета-, стабильных и расширенных стабильных релизов OpenClaw на основе журнала изменений, тегов, реестра и результатов проверок. Используйте этот навык, чтобы объявить о релизе или релиз-кандидате либо…

82.2K
391K
Файлы: 1
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇