Step 16 of 16
Deliver an end-to-end agent system with durable state, safe tools, MCP, evaluated RAG, and operations.
รวมทุกส่วนเป็น Knowledge Support Agent พร้อม tests, evals, MCP, approval, RAG และ operations ครับ
Level: Advanced
Workshop นี้รวมทุกบทเป็นระบบเดียวครับ คุณจะสร้าง Knowledge Support Agent ที่ตอบจาก engineering handbook, เรียก read-only tools, ขอ approval ก่อน publish และทำงานยาวผ่าน background worker
ส่งระบบที่ deploy เข้า staging ได้พร้อม evidence ว่า behavior, recovery, security, retrieval quality และ operations ผ่านเกณฑ์ที่กำหนดครับ
src/
TPCoder.KnowledgeAgent.Api/
TPCoder.KnowledgeAgent.Application/
TPCoder.KnowledgeAgent.Ingestion/
TPCoder.KnowledgeAgent.Infrastructure/
tests/
TPCoder.KnowledgeAgent.UnitTests/
TPCoder.KnowledgeAgent.IntegrationTests/
evals/
retrieval-cases.jsonl
API ต้องมี endpoints สำหรับเริ่ม conversation, ส่ง message, ดู job status, approve action และ cancel job ใช้ AgentSession ต่อ conversation และ persist state พร้อม optimistic concurrency ครับ
Ingestion worker รับ Markdown หรือ HTML, ทำ clean text, สร้าง deterministic chunks, ตรวจ token limit, generate embeddings และ upsert index version ใหม่ Retrieval ใช้ TextSearchProvider พร้อม tenant filter, top K, deduplication และ source metadata
dotnet build และ dotnet test ผ่านทำเป็น pull requests ตามลำดับเพื่อให้ review และ rollback ง่ายครับ:
TextSearchProvider, citations และ refusal behaviorแต่ละ PR ต้องมี feature flag, automated tests, migration/rollback note และ evidence จาก staging เมื่อเกี่ยวข้อง
Run the complete test, evaluation, load, restart and rollback suites against staging. Attach machine-readable results to the release candidate.
จัด review 4 รอบแยกกัน:
ส่ง source, infrastructure, tests, eval report, performance report, threat model, architecture decisions, dashboards และ runbooks พร้อม demo ที่ restart worker ระหว่างงานแล้วระบบ resume ได้
เริ่มด้วย in-memory store ให้ end-to-end test ผ่าน แล้วเปลี่ยนเป็น persistent vector store ผ่าน Microsoft.Extensions.VectorData abstraction ครับ ส่ง pull request ขนาดเล็กตาม capability เพื่อให้ review และ rollback ง่าย