feat(ai): unify AI architecture, implement RAG and legacy migration
CI / CD Pipeline / build (push) Failing after 5m36s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
2026-05-15 11:10:44 +07:00
parent 0240d80da5
commit 6cb3ae10ee
56 changed files with 6051 additions and 304 deletions
@@ -0,0 +1,21 @@
// File: src/modules/ai/dto/ai-rag-query.dto.ts
// Change Log
// - 2026-05-14: เพิ่ม DTO สำหรับ BullMQ RAG Query ตาม ADR-023 Phase 4.
import { IsNotEmpty, IsString, IsUUID, MaxLength } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
/** DTO สำหรับส่ง RAG query เข้า BullMQ queue (FR-009, FR-010) */
export class AiRagQueryDto {
@ApiProperty({
description: 'คำถามสำหรับ RAG ไม่เกิน 500 ตัวอักษร',
maxLength: 500,
})
@IsString()
@IsNotEmpty()
@MaxLength(500)
question!: string;
@ApiProperty({ description: 'publicId ของโครงการ (ADR-019) เพื่อ isolation' })
@IsUUID()
projectPublicId!: string;
}