เพิ่ม Port ให้กับ Container ที่ลืม map ไว้ตอนสร้าง

เรื่องของเรื่องลองพวก LLM อยู่พวกเลยเอา ubuntu container ทำงานทุกอย่างเลย แต่ทว่าลืมไป แล้วถ้าจะลองใช้จากข้างนอกต้องทำยังไง ? เพราะตอนสร้าง Container ไม่ได้กำหนด Port ไว้ วิธีการที่เป็นไปได้ ? สำหรับ Blog นี้จะเน้นไปท่า Container Network เพิ่ม พวก Reverse Proxy เข้าไปครับ โดยภาพที่ผมทำจะตามรูปเลยครับ โดยภาพรวมจะเป็นแบบนี้ หลังจากเห็นภาพรวมแล้วมาลองกันครับ ถ้าลองยิงจากข้างนอกแล้วติดปัญหา ลอง docker exec เข้าไปใน nginx แล้วลอง curl ครับ

AI-102: Develop natural language processing solutions with Azure AI Services

azure

Analyze text with Azure AI Language การใช้งานเหมือนปกติเลย สร้าง Resource ตามงาน > สร้าง Endpoint + Key เพื่อใช้ – Detect language เป็น REST โดยมีข้อกำหนด JSON response Ref: Detect language – Training | Microsoft Learn – Extract key phrases input – Analyze sentiment วัดผล ความพอใจ เช่น Product Review / Prioritizing customer service responses วัดผลที่ละประโยค positive, negative, and neutral classification values between 0 and 1. ถ้าประโยค มีหลายอันเอามา weight กัน ยกเว้นที่มีประโยค positive and negative อันนี้จะขึ้น mix – Named Entity Recognition identifier อะไรที่แตกได้ Entity categories recognized by Named Entity Recognition in Azure AI Language – Azure AI services | Microsoft Learn – Extract linked entities หา ref Linked entities…

AI-102: Create computer vision solutions with Azure AI Vision

azure

Analyze images Azure AI Vision Sample Code Possible Feature (Result) Code Description VisualFeatures.Tags: VisualFeatures.Objects: VisualFeatures.Caption VisualFeatures.DenseCaptions: Generates more detailed captions for the objects detected VisualFeatures.People VisualFeatures.SmartCrops VisualFeatures.Read Exercise – Analyze images with Azure AI Vision mslearn-ai-vision (microsoftlearning.github.io) จาก Exercise บางตัวอย่าง Background Removal ไม่มีใน VisualFeatures Knowledge check: Analyze images Image classification with custom Azure AI Vision models Create a custom vision project 3-5 images per class to train a custom image classification Ref: Image classification with custom Azure AI Vision models – Training | Microsoft Learn Creating your dataset Exercise – Classify images with an Azure AI Vision custom model Knowledge…

ทำไมการตรวจสอบ .gitmodules / git link ถึงสำคัญ

เขียน KM + แชร์ ปัญหาในองค์กรมานาน และผมคิดว่าปัญหาแบบนี้น่าจะเจอทุกที่ ที่ทำ Submodule ไว้ เลยเอามาแชร์ดีกว่า ถ้าคุณทำบุญมาดี ตอน Build มันจะ ERROR นั้นโชคดีที่สุดแล้ว ดีกว่าไป ERROR ที่ลูกค้า แล้วปัญหานี้จะแก้ไขยังไง ? ตอนนั้นผมเสนอไปในแนวทางที่ 1 ดักตั้งแต่ Merge Request เลย แต่เจอประเด็น เรื่อง Resource ให้ Agent / ไม่อยากให้ Tools มาจับผิด เลยไปในแนวทาง พลังแห่งพวกฟ้องครับ แต่ความเป็นจริง Dev ทุกคนลืม / ส่ง Merge แล้วไปเลย เมื่อก่อนผมใจดีขยับให้ตลอดมา 4-5 ปี จนหลังๆผมปล่อยจอย ในเมื่อ SA/ DEV กลัวการ merge กันนัก ก็ไม่ทำให้และบังคับ ให้ Jenkins Pipeline เป็นคนโวยวายแทนตามแนวทางที่ 2 อันนี้จริงๆ หักดิบทำเลยนะ เพราะเคยเสนอไปแล้ว ทุกคนกลัวเล็ก กลัวน้อย ให้ Jenkins ทำ มันจะไปขวางการส่งลูกค้า ต้องรอนานขึ้น เรายอมเสียเวลาไปแก้วิกฤต ซึ่งเวลาที่ทุกอย่างมันสายไปแล้ว พังที่ Site ลูกค้า ไปแก้ตอน MA แต่ไม่ยอมมาตรวจสอบตั้งแต่แรก

AI-102: Get started with Azure AI Services

azure

Prepare to develop AI solutions on Azure – Define artificial intelligence – Understand AI-related terms AI Engineers responsible AI: Fairness / Reliability and safety / Privacy and security / Inclusiveness / Transparency / Accountability Product Azure Machine Learning (Data scientists / SW Eng.- ใช้ Automate ML / SDK / Endpoint) Capabilities of Azure AI Services Natural language processing Knowledge mining and document intelligence Computer vision Decision support Generative AI Text analysis AI Search Image analysis Content safety Azure OpenAI Service Question answering Document Intelligence Video analysis Content moderation DALL-E image generation Language understanding Custom Document Intelligence Image classification Translation Custom…