skool-rag
Skool RAG Pipeline
Goal
Query Skool community content using a RAG (Retrieval-Augmented Generation) pipeline with vector search and reranking.
Scripts
./scripts/skool_rag_prepare.py- Prepare content for indexing./scripts/skool_rag_index.py- Index content in Pinecone./scripts/skool_rag_query.py- Query the knowledge base
Pipeline
1. Prepare Content
python3 ./scripts/skool_rag_prepare.py --community makerschool
Scrapes and chunks community content.
2. Index in Pinecone
python3 ./scripts/skool_rag_index.py --input .tmp/skool_chunks.json
Creates OpenAI embeddings and stores in Pinecone.
3. Query
python3 ./scripts/skool_rag_query.py --query "How do I get my first client?"
Pipeline:
- OpenAI embeddings for query
- Pinecone vector search
- Cohere reranking
- Claude response generation
Environment
PINECONE_API_KEY=your_key
OPENAI_API_KEY=your_key
COHERE_API_KEY=your_key
ANTHROPIC_API_KEY=your_key
Schema
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
query |
string | Yes | Natural language question to search for |
community |
string | No | Community slug to index (default: makerschool) |
Outputs
| Name | Type | Description |
|---|---|---|
answer |
string | AI-generated answer with source references |
Credentials
| Name | Source |
|---|---|
PINECONE_API_KEY |
.env |
OPENAI_API_KEY |
.env |
COHERE_API_KEY |
.env |
ANTHROPIC_API_KEY |
.env |
Composable With
Skills that chain well with this one: skool-monitor
Cost
Pinecone + OpenAI embeddings + Cohere reranking + Claude
More from aiagentwithdhruv/skills
image-to-video
Generate AI video from static images using Kling 3.0, Hailuo, Luma Ray3, Runway Gen-4.5, and 8 other tools. Covers free vs paid tools, prompt writing (motion-only), camera control, and face stability. Use when user asks to animate an image, create AI video, or convert photo to video.
91mac-control
MCP server for AI-powered macOS control — apps, display, audio, files, screenshots, clipboard
60gmaps-leads
Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.
42excalidraw-visuals
Use when someone asks for a hand-drawn visual, PNG image, rendered diagram, visual explanation, or says "excalidraw image" or "excalidraw visual". This generates PNG images, not editable files.
34video-edit
Complete video editing toolkit - silence removal, auto-captions, vertical crop, YouTube clipping, 3D transitions, and social media compression. Use when user asks to edit video, remove silences, add captions/subtitles, crop to vertical/shorts, download YouTube clips, compress video, or create video teasers.
29design-website
Generate a premium mockup website for a prospect using the buildinamsterdam.com template style. Use when user asks to design a website, create a mockup, or build a prospect website.
27