원클릭으로
sdlc-ai-engineering
AI/LLM engineering: LLMOps, prompt engineering, model integration, AI safety, production AI systems.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
AI/LLM engineering: LLMOps, prompt engineering, model integration, AI safety, production AI systems.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
AI/LLM engineering: LLMOps, prompt engineering, model integration, AI safety, production AI systems.
Data engineering: pipelines, data quality, data mesh, data lakehouse, ETL/ELT, streaming architecture.
DevSecOps: supply chain security, SBOMs, policy-as-code, zero-trust, security automation.
Green software engineering: sustainability, carbon-aware computing, energy-efficient architecture, eco-friendly development.
Data engineering: pipelines, data quality, data mesh, data lakehouse, ETL/ELT, streaming architecture.
DevSecOps: supply chain security, SBOMs, policy-as-code, zero-trust, security automation.
| name | sdlc-ai-engineering |
| description | AI/LLM engineering: LLMOps, prompt engineering, model integration, AI safety, production AI systems. |
| version | 6.3.0 |
| author | Dinoudon |
| license | MIT |
| platforms | ["linux","macos","windows"] |
| metadata | {"hermes":{"tags":["ai","llm","mlops","llmops","prompt-engineering","ai-safety","model-integration","production-ai"]}} |
Build production-grade AI/LLM systems. Covers LLMOps, prompt engineering, model integration, AI safety, and production deploy
AI engineering is the discipline of building reliable, scalable, and safe AI-powered systems. It combines software engineering best practices with ML/AI-specific concerns like prompt engineering, model evaluation, and AI safety.
LLMOps:
- Operations for LLM-based systems
- Similar to MLOps but focused on language models
- Covers deployment, monitoring, cost management
Prompt Engineering:
- Crafting inputs to get desired outputs from LLMs
- Techniques: few-shot, chain-of-thought, role prompting
- Model-specific optimizations
Model Integration:
- Connecting LLMs to external systems
- Function calling, tool use, RAG
- Multi-model orchestration
System prompt:
- Sets model behavior and constraints
- Defines role and persona
- Establishes output format
- Provides context and background
User prompt:
- Specific task or question
- Input data or context
- Constraints and requirements
- Desired output format
Assistant prompt (prefill):
- Guides response format
- Sets tone and style
Components:
- Model serving (inference API)
- Prompt management (versioning, templates)
- Vector database (RAG, embeddings)
- Cache layer (response caching)
- Monitoring (latency, cost, quality)
- Guardrails (content filtering, safety)
Architecture patterns:
Monolithic:
- Single model handles everything
- Simple to deploy and manage
- Limited scalability
Microservices:
Components:
- Document loader (PDF, web, database)
- Text splitter (chunking strategy)
- Embedding model (text-to-vector)
- Vector database (storage and search)
- Retriever (similarity search)
- LLM (generation with context)
Flow:
1. Load documents
2. Split into chunks
3. Generate embeddings
4. Store in vector DB
5. User query → embed query
6. Similarity search → retrieve relevant chunks
Definition:
- LLM generates structured function calls
- System executes functions
- Results fed back to LLM
- LLM generates final response
Use cases:
- Database queries
- API calls
- Calculations
- File operations
- External service integration
Example (OpenAI format):
tools = [
Input filtering:
- Detect harmful prompts
- Block injection attempts
- Validate input format
- Rate limiting
Output filtering:
- Check for harmful content
- Validate output format
- Detect hallucinations
- Ensure compliance
Implementation:
class Guardrail:
def check_input(self, prompt):
Horizontal scaling:
- Multiple model replicas
- Load balancing
- Auto-scaling based on traffic
Implementation:
- Kubernetes with HPA
- Cloud provider auto-scaling
- Queue-based scaling
Vertical scaling:
- Larger model instances
- GPU upgrades
- Memory optimization
Automated evaluation:
- Exact match (for classification)
- BLEU/ROUGE (for generation)
- BERTScore (semantic similarity)
- Custom metrics (task-specific)
LLM-as-judge:
- Use separate LLM to evaluate
- Compare to reference answers
- Score on multiple dimensions
Example prompt:
"Rate this response on a scale of 1-5:
- Relevance: Does it answer the question?
- Accuracy: Is the information correct?
Cost factors:
- Model selection (GPT-4 vs GPT-3.5)
- Token usage (input + output)
- Request volume
- Caching effectiveness
Optimization strategies:
1. Model selection:
- Use cheapest model that meets requirements
- Route simple tasks to cheaper models
- Reserve expensive models for complex tasks
2. Prompt optimization:
- Shorter prompts = fewer tokens
- Remove redundant instructions
RAG Pattern:
- Retrieve relevant context
- Augment prompt with context
- Generate response
- Use for knowledge-intensive tasks
Agent Pattern:
- LLM as reasoning engine
- Tools for actions
- Memory for context
- Use for complex, multi-step tasks
Chain Pattern:
- Sequence of LLM calls
- Each call processes previous output
LangChain:
- Comprehensive LLM framework
- Chains, agents, memory
- Large ecosystem
- Good for prototyping
LlamaIndex:
- Data framework for LLMs
- RAG specialization
- Data connectors
- Good for knowledge systems
Semantic Kernel:
- Microsoft's LLM framework
- Enterprise-focused