Implements local RAG (Retrieval Augmented Generation) using pre-computed CLIP embeddings for visual prompt enhancement: - core/compose/rag/ module with index loading, retrieval, and build script - CLIP-based image embeddings (openai/clip-vit-base-patch32) - Pure numpy cosine similarity search (no external services) - Category-aware retrieval mapped to canonical categories - Pre-built index with 613 prompts from scraped reference data New Compose node parameters: - use_rag: Enable visual RAG vocabulary enhancement - rag_threshold: Minimum similarity threshold (0.5-0.95) RAG tokens integrated as new TokenSource with 0.85 weight. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6 lines
114 B
JSON
6 lines
114 B
JSON
{
|
|
"model_name": "openai/clip-vit-base-patch32",
|
|
"embedding_dim": 512,
|
|
"num_items": 613,
|
|
"version": "1.0"
|
|
} |