This is a clean two-tool wrapper around Butterbase's pgvector RAG pipeline. You create collections with fixed chunking params, ingest text or files (PDF, DOCX, etc.) asynchronously, poll until embeddings are ready, then query with optional LLM synthesis. The mental model is simple: collections hold documents, documents become chunks, queries do cosine similarity search. Access modes let you go from private (service-key only) to shared (any authenticated user) to custom RLS. Metadata filtering is exact-match key-value, so design your tags upfront. The chunk_size and chunk_overlap are immutable once set, which feels restrictive but forces you to think through your chunking strategy before you load 500 PDFs. Good for support bots, versioned docs, or multi-tenant knowledge bases where you need semantic search without reinventing embeddings infrastructure.
- GitHub stars
- 532
- last updated
- Jun 11, 2026
Install
$ npx -y skills add butterbase-ai/butterbase-skills --skill rag-dev --agent claude-codeInstalls into .claude/skills of the current project.
Files
Butterbase RAG (Retrieval-Augmented Generation)
Two tools cover the entire RAG surface:
manage_rag_content— collections, document ingestion, status polling, deletionrag_query— semantic search, optional LLM synthesis
Documents are ingested asynchronously: text or files become embeddings stored in pgvector, and queries do a similarity search at runtime.
1. The mental model
Collection Documents Chunks
────────── ────────── ──────
"product-faq" ──────────────► doc_1 (PDF) ───────────► chunk 1, 2, 3...
doc_2 (text) ──────────► chunk 4, 5...
doc_3 (markdown) ──────► chunk 6...
A collection holds documents; a document is split into chunks and embedded; rag_query searches by cosine similarity across chunks within a collection.
chunk_size and chunk_overlap are set once at collection creation and immutable — to change them, delete and recreate the collection.
2. End-to-end workflow
Sponsors
Details
- Repository
- github.com/butterbase-ai/butterbase-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Automation & Workflows, Sales & Marketing, Databases
- License
- MIT
- First seen
- Jun 11, 2026
