← Back to list

rag-ingestion-v1
by atiati82
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: rag-ingestion-v1 description: Document ingestion pipeline - docs to chunks to metadata for RAG
RAG Ingestion Skill v1.0
Purpose: Ingest documents into the knowledge base for AI retrieval.
1) Non-Negotiables (Policy)
Document Sources
content/ # Markdown content files
docs/ # Documentation
ANDARA_*.md # System documentation
AI_LEARNING_*.md # Learning sessions
Database Tables
knowledge_base- Main knowledge entriesrag_memory_objects- Chunked content for RAGdocuments- Ingested documents
2) Inputs & Outputs
Ingestion Input
interface IngestRequest {
source: string; // File path
type: 'markdown' | 'pdf' | 'chat';
category: string;
metadata?: Record<string, any>;
}
Chunk Output
interface RAGChunk {
id: string;
content: string;
embedding?: number[];
metadata: {
source: string;
category: string;
timestamp: Date;
};
}
3) Quality Gates
Before Ingestion
- Source file exists and readable
- Category defined
- No duplicate content
After Ingestion
- Chunks created in database
- Searchable via RAG API
- Metadata accurate
Ingestion Scripts
| Script | Purpose |
|---|---|
scripts/master-ingest.sh | Run all ingestion |
scripts/ingest-ai-knowledge.ts | AI knowledge docs |
scripts/ingest-hub-pages.ts | Hub page content |
scripts/ingest-design-knowledge.ts | Design system docs |
scripts/ingest-chat-export.ts | Chat history |
scripts/ingest-notebooklm-content.ts | NotebookLM exports |
Ingestion Workflow
Single Document
tsx scripts/ingest-individual-sources.ts path/to/doc.md
Batch Ingestion
./scripts/master-ingest.sh
Hub Pages to RAG
npm run sync:hubs
RAG Query API
Endpoint
POST /api/ai/rag/query
Request
{
"query": "What is structured water?",
"limit": 5
}
Response
{
"results": [
{
"content": "Structured water is...",
"source": "water-science.md",
"score": 0.95
}
]
}
Score
Total Score
40/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon