スキル一覧に戻る
atiati82

rag-ingestion-v1

by atiati82

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

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 entries
  • rag_memory_objects - Chunked content for RAG
  • documents - 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

ScriptPurpose
scripts/master-ingest.shRun all ingestion
scripts/ingest-ai-knowledge.tsAI knowledge docs
scripts/ingest-hub-pages.tsHub page content
scripts/ingest-design-knowledge.tsDesign system docs
scripts/ingest-chat-export.tsChat history
scripts/ingest-notebooklm-content.tsNotebookLM 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
    }
  ]
}

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

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

レビュー

💬

レビュー機能は近日公開予定です