243 lines
5.7 KiB
YAML
243 lines
5.7 KiB
YAML
# Project Configuration for Local LLM Agent
|
|
# ===========================================================================
|
|
#
|
|
# Defines project detection patterns, LoRA adapter mappings, and context hints.
|
|
#
|
|
# ===========================================================================
|
|
|
|
# Default configuration
|
|
defaults:
|
|
confidence_threshold: 0.6 # Minimum confidence to use project-specific settings
|
|
fallback_tier: small
|
|
fallback_lora: null
|
|
|
|
# Project definitions
|
|
projects:
|
|
# ERP Core
|
|
erp-core:
|
|
display_name: "ERP Core"
|
|
description: "Core ERP system functionality"
|
|
patterns:
|
|
- "erp-core"
|
|
- "erp core"
|
|
- "core erp"
|
|
- "enterprise resource"
|
|
- "factura"
|
|
- "invoice"
|
|
- "inventario"
|
|
- "inventory"
|
|
- "contabilidad"
|
|
- "accounting"
|
|
keywords:
|
|
high_weight: # Weight: 3
|
|
- "NestJS"
|
|
- "TypeORM"
|
|
- "PostgreSQL"
|
|
- "facturacion"
|
|
- "inventario"
|
|
medium_weight: # Weight: 2
|
|
- "entity"
|
|
- "service"
|
|
- "controller"
|
|
- "migration"
|
|
low_weight: # Weight: 1
|
|
- "api"
|
|
- "endpoint"
|
|
- "crud"
|
|
lora_adapter: "erp-core"
|
|
default_tier: main
|
|
context_hints:
|
|
- "Uses NestJS framework with TypeORM"
|
|
- "Database is PostgreSQL"
|
|
- "Follows hexagonal architecture"
|
|
- "Spanish domain terminology"
|
|
|
|
# ERP Construccion
|
|
erp-construccion:
|
|
display_name: "ERP Construccion"
|
|
description: "Construction industry ERP vertical"
|
|
patterns:
|
|
- "erp-construccion"
|
|
- "construccion"
|
|
- "construction"
|
|
- "obra"
|
|
- "proyecto de construccion"
|
|
keywords:
|
|
high_weight:
|
|
- "obra"
|
|
- "presupuesto"
|
|
- "estimacion"
|
|
- "material"
|
|
- "subcontratista"
|
|
medium_weight:
|
|
- "construccion"
|
|
- "building"
|
|
- "contratista"
|
|
lora_adapter: "erp-construccion"
|
|
default_tier: main
|
|
inherits_from: erp-core
|
|
context_hints:
|
|
- "Inherits from erp-core"
|
|
- "Construction-specific domain"
|
|
- "Project and budget management"
|
|
|
|
# Trading Platform
|
|
trading-platform:
|
|
display_name: "Trading Platform"
|
|
description: "Financial trading platform"
|
|
patterns:
|
|
- "trading"
|
|
- "trading-platform"
|
|
- "platform_trading"
|
|
- "broker"
|
|
- "market"
|
|
keywords:
|
|
high_weight:
|
|
- "order"
|
|
- "position"
|
|
- "market data"
|
|
- "trade"
|
|
- "portfolio"
|
|
- "stock"
|
|
- "forex"
|
|
medium_weight:
|
|
- "exchange"
|
|
- "ticker"
|
|
- "price"
|
|
- "volume"
|
|
low_weight:
|
|
- "buy"
|
|
- "sell"
|
|
- "limit"
|
|
- "market order"
|
|
lora_adapter: "trading"
|
|
default_tier: main
|
|
context_hints:
|
|
- "Real-time data processing"
|
|
- "High-frequency operations"
|
|
- "Financial domain terminology"
|
|
|
|
# Gamilit
|
|
gamilit:
|
|
display_name: "Gamilit Platform"
|
|
description: "Gamilit ecosystem platform"
|
|
patterns:
|
|
- "gamilit"
|
|
- "gamil"
|
|
keywords:
|
|
high_weight:
|
|
- "gamilit"
|
|
- "plataforma"
|
|
medium_weight:
|
|
- "ecosistema"
|
|
lora_adapter: "gamilit"
|
|
default_tier: main
|
|
context_hints:
|
|
- "Reference implementation"
|
|
- "Template for other projects"
|
|
|
|
# Betting Analytics
|
|
betting-analytics:
|
|
display_name: "Betting Analytics"
|
|
description: "Sports betting analytics platform"
|
|
patterns:
|
|
- "betting"
|
|
- "analytics"
|
|
- "apuestas"
|
|
- "odds"
|
|
keywords:
|
|
high_weight:
|
|
- "bet"
|
|
- "odds"
|
|
- "sports"
|
|
- "probability"
|
|
- "stake"
|
|
medium_weight:
|
|
- "match"
|
|
- "league"
|
|
- "team"
|
|
- "prediction"
|
|
low_weight:
|
|
- "score"
|
|
- "result"
|
|
lora_adapter: "betting"
|
|
default_tier: main
|
|
context_hints:
|
|
- "Statistical analysis focus"
|
|
- "Sports domain knowledge"
|
|
|
|
# MiChangarrito
|
|
michangarrito:
|
|
display_name: "MiChangarrito"
|
|
description: "Small business POS system"
|
|
patterns:
|
|
- "michangarrito"
|
|
- "changarrito"
|
|
- "punto de venta"
|
|
- "pos"
|
|
keywords:
|
|
high_weight:
|
|
- "venta"
|
|
- "producto"
|
|
- "caja"
|
|
- "ticket"
|
|
medium_weight:
|
|
- "tienda"
|
|
- "negocio"
|
|
- "cliente"
|
|
lora_adapter: null # Uses base model
|
|
default_tier: small
|
|
context_hints:
|
|
- "Simple POS system"
|
|
- "Small business focus"
|
|
- "Spanish interface"
|
|
|
|
# Template SaaS
|
|
template-saas:
|
|
display_name: "Template SaaS"
|
|
description: "SaaS template project"
|
|
patterns:
|
|
- "template-saas"
|
|
- "saas template"
|
|
- "multi-tenant"
|
|
keywords:
|
|
high_weight:
|
|
- "tenant"
|
|
- "subscription"
|
|
- "saas"
|
|
medium_weight:
|
|
- "template"
|
|
- "boilerplate"
|
|
lora_adapter: null
|
|
default_tier: main
|
|
context_hints:
|
|
- "Multi-tenant architecture"
|
|
- "Subscription-based"
|
|
- "Template for new SaaS projects"
|
|
|
|
# Tier configuration
|
|
tiers:
|
|
small:
|
|
max_tokens: 512
|
|
max_context: 4096
|
|
latency_target_ms: 500
|
|
description: "Fast responses for simple queries"
|
|
main:
|
|
max_tokens: 2048
|
|
max_context: 16384
|
|
latency_target_ms: 2000
|
|
description: "Full responses for complex tasks"
|
|
large:
|
|
max_tokens: 4096
|
|
max_context: 32768
|
|
latency_target_ms: 5000
|
|
description: "Extended responses for comprehensive analysis"
|
|
|
|
# Confidence scoring weights
|
|
confidence_weights:
|
|
pattern_match: 5 # Exact pattern match
|
|
high_keyword: 3 # High-weight keyword found
|
|
medium_keyword: 2 # Medium-weight keyword found
|
|
low_keyword: 1 # Low-weight keyword found
|
|
context_hint_match: 2 # Context hint mentioned
|