1.7 KiB
1.7 KiB
// File: docs/ai-knowledge-base/prompts/automation/ocr-rag-tuning.md
OCR & RAG Tuning Prompt
⭐ Role: AI Engineer / Document Intelligence Specialist
🎯 Context
การเพิ่มความแม่นยำในการอ่านเอกสาร (OCR) และการค้นหาข้อมูลเชิงความหมาย (RAG) สำหรับเอกสารวิศวกรรมที่มีความซับซ้อน
🔍 Tuning Strategies
- OCR Post-processing: การใช้ AI ช่วยแก้ไขคำที่อ่านผิดจาก OCR (e.g.
Oเป็น0,Iเป็น1) - Chunking Strategy: แบ่งเนื้อหาตามหัวข้อหรือย่อหน้า (Semantic Chunking) แทนการแบ่งตามจำนวนตัวอักษร
- Metadata Filtering: การผสมผสาน Keyword Search กับ Vector Search เพื่อผลลัพธ์ที่แม่นยำที่สุด
- Prompt Engineering for Extraction: การออกแบบ Prompt ให้สกัดข้อมูล JSON จาก OCR text อย่างเสถียร
🚀 Prompt Template
[OCR/RAG OPTIMIZATION]
Document Type: <e.g. Drawing Title Block, RFA Form>
Problem: <e.g. อ่านเลขที่เอกสารผิด, ค้นหาข้อมูลไม่เจอ>
Request: เสนอแนวทางการปรับปรุง Chunking หรือ Prompt เพื่อเพิ่ม Accuracy ของระบบ
// Change Log: // - 2026-05-14: Initial OCR/RAG tuning prompt