agentsclimarketplace

Rag

Skill Neznakometz/StackForge/storage/skills/rag

Thin core + domain sets for a fast, stack-aware project start. Cross-agent (Claude Code, Cursor, Codex, Gemini) via the SKILL.md standard. MIT.

Install
npx -y skills add Neznakometz/StackForge --skill rag

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Retrieval-Augmented Generation — chunking, embeddings, vector storage, search and reranking. Apply when building search over knowledge/documents, Q&A over a corpus, semantic search.

SKILL.md

1.9 KB, as published. Nobody here has run it

RAG (retrieval-augmented generation)

When RAG is needed / not needed

  • Needed: a large knowledge/docs corpus that doesn't fit in context and changes; you need fresh/private data with citation.
  • NOT needed: the data fits in context; the task is about code (a code index is better, see the long-context skill); a one-off question (direct search is simpler).

Pipeline

  1. Chunking. Cut by meaning (sections/paragraphs), not by fixed characters blindly; a reasonable chunk size + overlap so you don't tear a thought apart. Keep metadata (source, section) for citation and filters.
  2. Embeddings. One embedding model per corpus (query and documents — by the same model). Version it: changing the model → reindexing.
  3. Storage. pgvector (if Postgres already exists) or Qdrant. Index — HNSW by default (good recall without tuning lists, parameters m=16, ef_construction=200); IVFFlat — only for very large, rarely changing data for the sake of build speed/memory. Don't create an index on an empty table (k-means centroids on empty data → a broken index) — load the data first.
  4. Search. Query understanding (intent/filters/tenant) → optional lexical prefilter → ANN top 50–200 → reranking by exact distance + metadata → top-k into context.
  5. Hybrid. Semantic + full-text (BM25/FTS) via Reciprocal Rank Fusion (RRF) — noticeably better on terms/exact matches.
  6. Generation. Into the answer — only the retrieved chunks, each statement with a link to the source; don't mix the model's memory in as fact.

Multitenancy/security

  • Scope the search by tenant (a filter in the query/metadata) — don't hand back someone else's chunks.
  • Don't index secrets/PII.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.