vamseeachanta

ai-prompting-rag-architecture

'Sub-skill of ai-prompting: RAG Architecture (+2).'

vamseeachanta 16 6 Updated 4mo ago
GitHub

Install

npx skillscat add vamseeachanta/workspace-hub/ai-prompting-rag-architecture

Install via the SkillsCat registry.

SKILL.md

RAG Architecture (+2)

RAG Architecture

User Query --> Embedding --> Vector Search --> Context Assembly --> LLM --> Response
     |                            |                   |               |
     +-- Query expansion         +-- Reranking       +-- Chunking    +-- Citations
     +-- Intent detection        +-- Filtering       +-- Templates   +-- Validation

Prompt Optimization Pipeline

Initial Prompt --> Generate Outputs --> Evaluate --> Optimize --> Deploy
      |                  |                 |            |            |
      +-- Template      +-- Test cases   +-- Metrics  +-- Search   +-- Monitor
      +-- Variables     +-- Edge cases   +-- Human    +-- Iterate  +-- A/B test

Agent Architecture

User Request --> Plan --> Tool Selection --> Execution --> Reflection --> Response
      |           |             |                |              |             |
      +-- Parse  +-- Decompose +-- Available    +-- Retry     +-- Verify    +-- Format
      +-- Intent +-- Prioritize+-- Constraints  +-- Timeout   +-- Correct   +-- Cite