Automatically translated.View original post

5 Step Self-Use AI Molding, Concise Edition! 🚀

1. Choose the brain (Cloud or Local?) 🧠

2. Prepare the key (API Key must be kept well!) 🔑

3.Design Command (Prompt Engineering is Heart) 📝

4. Write the connection pipe (Code, come!) 👨‍💻

5. Manage the answer (Handle Error exactly) 🛡️

Which one would like to look particularly deep? Ment can tell!

# Developer # programmer # selfdevelopment # Data ascience # learnonlemon8

1/17 Edited to

... Read moreการสร้าง AI ของตัวเองในยุคนี้ไม่ใช่เรื่องยากอย่างที่คิดเลยครับ โดยเฉพาะกับเทคโนโลยี Large Language Models (LLM) ที่เปิดโอกาสให้เราสามารถนำมาปรับใช้ได้หลากหลายรูปแบบ จากประสบการณ์ส่วนตัว ผมขอแชร์เทคนิคเพิ่มเติมในการเลือกสมอง (Brain) ของ AI ว่าควรเลือกใช้งานแบบ Cloud หรือแบบ Local อย่างไร การเลือกใช้ Cloud LLM เช่น OpenAI หรือ Claude เหมาะกับคนที่ต้องการความรวดเร็วและยืดหยุ่น ไม่ต้องมีฮาร์ดแวร์แรง แต่ต้องระวังเรื่องค่าใช้จ่ายรายครั้งที่อาจจะเพิ่มขึ้นถ้าใช้งานหนัก ในขณะที่ Local LLM อย่าง Ollama นั้นเหมาะมากสำหรับผู้ที่ต้องการประหยัดต้นทุน หรืออยากเก็บข้อมูลไว้ในเครื่องตัวเองเพื่อความปลอดภัย แต่จะต้องมี GPU แรงพอสมควร เรื่องเตรียมกุญแจ API Key ก็สำคัญมาก กุญแจนี้เปรียบเสมือนประตูเข้าสู่บริการ AI ของ Cloud ถ้าเปิดเผยกุญแจในโค้ดหรือส่งต่อแบบไม่ระวัง อาจโดนแฮกและถูกใช้จนหมดค่าใช้จ่ายได้ ผมแนะนำให้ใช้ไฟล์ .env เพื่อเก็บ API Key และใส่ไว้ใน .gitignore เพื่อป้องกันไม่ให้ไปโผล่บน GitHub สำหรับการออกแบบคำสั่งหรือที่เรียกว่า Prompt Engineering นั้น เป็นหัวใจสำคัญที่ช่วยให้ AI เข้าใจและตอบกลับได้ถูกต้อง เช่น กำหนด System Prompt ให้ AI รับบทบาทเป็นผู้เชี่ยวชาญเฉพาะด้าน หรือกำหนด Output Format เช่น JSON เพื่อช่วยให้ข้อมูลส่งต่อและนำไปใช้งานง่ายขึ้น ขั้นตอนการเขียนท่อเชื่อมต่อ (Integration Code) ผมลองใช้ไลบรารีอย่าง openai ใน Python และ Langchain ซึ่งช่วยให้การเรียกใช้งาน API ง่ายขึ้นมาก โค้ดตัวอย่างที่ใช้งานจริงดูง่ายต่อการปรับแต่งและเรียนรู้ สุดท้ายการจัดการคำตอบก็เป็นเรื่องจำเป็น เช่นต้องจัดการ Error Handling กรณีเน็ตล่ม API Key หมดอายุ หรือ AI ตอบข้อมูลผิดรูปแบบ โดยผมใช้ไลบรารี pydantic มาช่วยเช็คโครงสร้างข้อมูล ทำให้ระบบมีความเสถียรสูงขึ้น ถ้าใครสนใจลองใช้ Local LLM อย่าง Ollama ตัวโค้ดไม่ต่างจากของ Cloud เท่าไร แค่เปลี่ยน URL เป็นเครื่องตัวเองและไม่ต้องใช้ API Key ก็ช่วยให้การทดลองและพัฒนา AI ง่ายและฟรีมากขึ้น ลองทำดูแล้วจะรู้ว่าการมี AI ของตัวเองไม่ใช่เรื่องไกลตัวเลยครับ!

Related posts

4 Smart Ways to Leverage AI for Academic Success
As a student aiming for that perfect 4.0 GPA, I’ve realized that ChatGPT is more than just a tool for quick answers—it’s a game-changer for study efficiency and productivity. Here are 4 ways I use ChatGPT to ace my courses and streamline my learning: 1. Summarizing Complex Concepts 📚 One of the
Chloe✨

Chloe✨

399 likes

How I use ChatGPT to do hard work for me in 2025✨
ChatGPT has been a game-changer for getting things done this year. Here’s how I use it with prompts that actually work: 1. Writing Emails That Sound Professional Prompt 1: “Write a polite follow-up email to [recipient] asking about the status of [specific project or task]. Keep it professional
Stella Luna🌈

Stella Luna🌈

2948 likes

Study Habits that helped me get a 5.0 GPA💯
Hello everyone!! Today, I want to share some study habits that have helped me achieve good grades in my courses! 📚✨ These habits have worked well for me, but remember, everyone learns differently—the key is to find what works best for you. Give these tips a try and see if they help! 1️⃣ Find a Q
Stella Luna🌈

Stella Luna🌈

1385 likes

The 3-Step System I Use To Write A+ Essays 🧠✨
Writing classes can be tough, especially when you’re staring at a blank page with a deadline creeping up. But once I started doing a few key things, writing became a lot more manageable, and honestly, less stressful. Start with a clear thesis statement. This is the foundation of your entire pape
CompSkyy

CompSkyy

22 likes

ChatGPT: The Ultimate Study Buddy for a 4.0 GPA
The future is Here!! I absolutely love saving time, energy, and money! Time = Money, so when you can spend less time studying and more on something you would rather do, you save money! Here are some of my ways I’ve used ChatGPT as a Straight A Student : 1. Summarizing your typed notes from
Stella Studies

Stella Studies

1251 likes

Major-Specific Strategies to Achieve a ✨4.0 GPA✨🎓🧠
🎓1. Business & Management Majors (Business Management, Accounting, Finance, Economics) ✅Active Participation: Example: In a Marketing class, when discussing a case study like Coca-Cola’s rebranding, share your analysis of the marketing mix (4Ps). This not only engages you in the materi
Chalie_Baker

Chalie_Baker

6986 likes

AI Prompt Checklist 🍋✨
Ever feel like ChatGPT just doesn’t get you? 🙄 I used to get such generic answers until I found this framework by Ali Abdaal. If you want AI to actually be useful for your work or studies, you need to give it more than just a "Task." You need to give it Context and Soul. The Magic Formula
Draven Royce

Draven Royce

1 like

📌 ChatGPT but Better? Try These AI Sites
Yoodli 🎙️🧠 Yoodli is like having a speaking coach in your laptop. It gives real-time feedback on your tone, filler words, and pace as you practice interviews or speeches. I use it to prep for job interviews and even presentations, and it helps me track progress with data. Bonus: It shows your eye
emilie.studygram

emilie.studygram

1097 likes

How to Respect Yourself: 10 Key Principles🔑ℹ️⬇️
Respect is the foundation of self-worth. Here are ten ways to honor yourself and set the standard for how others should treat you: 1. Stop Chasing Those Who Aren’t Interested Focus on relationships that are mutual and respectful. Seeking validation from those who don’t reciprocate only undermi
RoadToRiches

RoadToRiches

243 likes

How To Heal & Restart🎧
Life comes in seasons. And life changes. Everyone goes through transitions. Change is inevitable. It often causes us to examine our values or re-evaluate our priorities. And sometimes, it leads us to this question: What should I do with my life? Should I start over in life? Where do I go from here?
Angelina

Angelina

344 likes

How to Use CoPilot
#copilot #copilotinword #copilotinexcel
LouiseAnn1960

LouiseAnn1960

130 likes

Nursing Process: Assessment Notes
1st semester nursing student notes: Assessment, step 1 of the nursing process textbook: Chapter 16 in Fundamentals of Nursing by Potter & Perry 12th edition #nursingnotes #nursingprocess #nursingstudent #nursingassessment #nursingschool
sydni g 🌷

sydni g 🌷

76 likes

7 AI-powered prompts you can use now!!!🔥🔥🔥
Here are 7 AI-powered prompts you can use to clarify, strengthen, and monetize your expertise. Each one is crafted to help you define your niche, refine your positioning, and uncover opportunities to capitalize on what makes you stand out: ⸻ 1. Define Your Expertise Clearly Prompt: “Act a
POSH🌸

POSH🌸

21 likes

4 Websites I'm Using to Aim for a 4.0 GPA
1. Gizmo AI 🧠 I use this to turn any of my course materials—lecture slides, PDFs, even YouTube videos—into a practice quiz in seconds. It's the ultimate way to practice active recall and test myself on what I actually know, not just what I've passively read. It’s like having an endless sup
emilie.studygram

emilie.studygram

89 likes

Stop waiting to be noticed
Raises don't come from luck, they come from strategy. ChatGPT helps you research, prepare, and negotiate with clarity and confidence. #career #salary #negotiation #chatgpt #prompts
Promptly Daily ✪

Promptly Daily ✪

8 likes

Must-Read Books for Managing Anxiety & Stress 🌿💆‍♀️
If you’re looking for books to help with anxiety, whether through practical strategies, mindset shifts, or emotional support, here are some of the best picks: ⸻ 🌿 Science-Based & Practical Strategies 💡 Understand anxiety and learn how to manage it effectively. 1. The Anxiety and Phob
Joy 📚

Joy 📚

767 likes

10 ChatGPT Prompts You Can Use For Marketing🔥🔥🔥
#chatgptprompts #chatgpt #marketing #prompts #posh
POSH🌸

POSH🌸

1 like

💭Best Self-heal Book Mindset Growth✨
Following 5 Books is a must-read for personal growth, self-heal, mindset change. Book Review:Why, What I’ve learned, Suitable for who? 1. Atomic Habit-James Clear ⭐️⭐️⭐️⭐️⭐️ At first glance of books cover I fall in love with it! After reading, I found it is practical and gem-like. Amazing
Jane

Jane

654 likes

ChatGPT Prompts to use at Work! 🤖
Using AI at work can help make your life a lot easier. I've started using ChatGPT as my "assistant" and it's helped me save time, be more productive, and overall helped me be better at my job 👩🏽‍💻✨ The basic version of ChatGPT is completely free! You can use these prompts or put
Melissa 👩🏽‍💻

Melissa 👩🏽‍💻

139 likes

use these 5 AI tools to 10x your productivity
using AI to do more things for you = more time for self care for yourself. check out these tools to increase your productivity by 10x: perplexity: your personal research assistant, always ready grammarly: elevate your writing otter.ai: turn spoken words into text reclaim: take control of you
cozystaria

cozystaria

12 likes

7 study tips Rory Gilmore would use 📚📖🤎☕
#gettoknowme #rorygilmore #gilmoregirlsaesthetic study tips Rory Gilmore would surely use.
rinnahstudies

rinnahstudies

15 likes

How to speak like an alpha woman
The idea of the "alpha woman" is a socially constructed concept, not a scientifically-backed archetype. The qualities associated with it reflect strong communication, confidence, and leadership skills that anyone can develop. Instead of striving to be a caricature of an "alpha," focus on cultivatin
Mindset Hustle TV1™

Mindset Hustle TV1™

8 likes

Mastering the Art of Study: A Harvard-Guide
#lemon8diarychallenge 🧭 Navigating the transition from high school to college can be overwhelming, but adopting effective study habits is crucial for academic success. Here's a concise summary of top study tips inspired by Harvard's approach to learning: 1️⃣ Avoid Cramming: Cra
Studywith_Lean

Studywith_Lean

462 likes

Diagnostic tests are a huge part of the CSE. Memorize the purpose of each tests and you’ll know why you’re choosing it as an option. #respiratorytherapy #rtstudent #college #testprep
RTbrainsandbeauty

RTbrainsandbeauty

4 likes

4 Tips to Become a Better Communicator 🌟
Effective communication is one of the most important skills for building strong relationships and succeeding in both your personal and professional life. Here are 4 tips to help you communicate more confidently and effectively: 1️⃣ Active Listening: Be Present Listening is just as important as
Elysia💕

Elysia💕

200 likes

No Desk? Here’s How I Do Math on the Go 📱📓
You don’t need a whole desk setup to get in a little math practice! I like to keep a tiny math kit with me, just a notebook, flashcards, or even printed practice problems I can do while waiting for an appointment or chilling at a café. It’s so helpful when I’m prepping for an exam or just trying to
CompSkyy

CompSkyy

27 likes

50|concise Chinese responses
#china #chinese #languagelearning #chineselearning #hsk
Sarah‘s Chinese

Sarah‘s Chinese

5 likes

5 Free Online Certifications to Boost Your Resume
Hi, lemons! In today's competitive job market, having a standout resume is crucial. Employers seek candidates with not only relevant experience but also a commitment to continuous learning. Fortunately, the digital age offers a wealth of free online certifications that can enhance your skill se
Lifestyle Babe

Lifestyle Babe

742 likes

✨📑 résumé editing tips that got me hired asap ✍🏾✨
Do’s ✅ Check for typos or spelling errors • Choose a visually pleasing, consistent format • Tailor your resume to fit the position • Be concise and to the point • Use action verb statements instead of complete sentences and/or paragraphs • Emphasize your most relevant skills, employment his
Breezy🫶🏾

Breezy🫶🏾

13 likes

LindseyRaena6

LindseyRaena6

1 like

Notetaking Methods!!! + when to use them
With a new semester starting this month, I wanted to share a few methods of taking notes that you can use in class! Every method has its advantages & disadvantages, so let’s dive in to figure out what is best for you and your courses! ✍️ 1. Outline: This is a pretty simple method, requiring
Grace

Grace

2115 likes

use these symbols in your notes
If you're new to my page, welcome! My name is Bethany. I am a 4th year nursing student (RN-S4) and a content creator living in New York City. Note-taking in college doesn't have to be lengthy and complicated. Use these symbols to make your notes concise and easier to read. Let me know in
BETHANY

BETHANY

395 likes

use ai to be more productive ✨
‧°𐐪♡𐑂°‧₊  🌱  Gemini AI is a total game-changer for Google Sheets! It helps create formulas, analyze data, and even suggests better formats- making your spreadsheets smarter and more efficient. Just ask for suggestions, tweak as needed, and watch your data work level up! I’ve used it to crunch numb
peachiesuga ♡

peachiesuga ♡

36 likes

How to study EFFECTIVELY
Hi everyone! I have a 4.8 gpa and I’m a student athlete, it’s hard to balance it so the little time I have to study I study GOOD. First picture is NOT mine - to see me and learn more ab me go to my profile! #grades #college #highschool #study #bodytransformation
Stunn

Stunn

12 likes

how to do a deep clean- move-out edition part 1
I was a professional housekeeper for over 3 years.I want to help you save some money because I would charge over four hundred dollars for this. If you need help getting that security deposit back, make sure you do a professional, deep clean like this. This is just part one showing you high dusting
SAHM_Sprinklz

SAHM_Sprinklz

51 likes

How I went from a failing student to Harvard
So, you're studying really hard, you're trying different time management methods, you are pulling long hours to study, and yet you're still not seeing the results that you want, I have been there too. So here are some tips that really changed the way I study and helped me to go from low
Ivy League Help

Ivy League Help

339 likes

🥰
All my work has a certificate, as I am the rightful creator 😊 I hope you all enjoy my creations!! 🫶🏼
A Beautiful Disaster 🌪️

A Beautiful Disaster 🌪️

6 likes

Dr. Muna Slewa

Dr. Muna Slewa

2 likes

Dr. Muna Slewa

Dr. Muna Slewa

1 like

🫶🫶🫶
All my statues are for preorder there is a processing time on these, I custom make all these unless I offer one that I created myself(colors) If interested please feel free to message me
A Beautiful Disaster 🌪️

A Beautiful Disaster 🌪️

2 likes

5 FREE Study Sites That’ll Save Your Semester 💻📚
Let’s make school a little softer this year… with my favorite FREE study sites that seriously changed everything 🫶🏻 I’m talking: aesthetic, beginner-friendly, broke-student-approved, and actually fun to use?? 💅🏻📚 Whether you’re in middle school, high school, college, or getting your GED like me
mads 👏🏻

mads 👏🏻

203 likes

Career Growth Mindset: ADHD Edition
Navigating a career can be challenging when you have ADHD, the hurdles can seem incredibly daunting. However, with the right mindset and strategies, you can harness your unique strengths and thrive professionally. Here are some tips and strategies to help you grow in your career as someone with
Alena Artemenko

Alena Artemenko

57 likes

How to Properly Communicate📕🗣️
This is something i’ve been working on over the years because i’ve realized just how bad I was at communication. A lot of it had to do with the way I was brought up and how communication was not present in my household growing up. However, that is not an excuse to stay the same and not improve in a
aria <3

aria <3

2736 likes

Here Are Key Words to Use When Charting as a Nurse
✍️🩺 Accurate and concise documentation is essential in nursing! Using the right terminology can help ensure clarity, protect you legally, and improve patient care. Here are some key words and phrases to use when charting: ✅ Assessment:    •   “Patient reports (symptom)” instead of “Patient s
Nurse Radiance

Nurse Radiance

684 likes

Ai extensions that will elevate your work flow
🎯 If your Website is not being recognized & recommended by OpenAI like: ChatGPT, Gemini AI or perplexity. 🎫 It would be as if your still using"My Space". SEO is in New garments and the clothing is: "AEO" & "GEO" My website is converting on the first page of my
Validai.pro

Validai.pro

1 like

5 + 1 ways to delegate real tasks to AI
Here are 5 + 1 practical, revenue-saving ways to offload real work to AI—complete with prompts, guardrails, and tool ideas. 1) Book tables, salons, services (with confirmations) What to delegate: Find options, compare availability, place the booking, confirm via email/SMS. Stack: ChatGPT + C
POSH🌸

POSH🌸

5 likes

Remote + $15–$17/hr + benefits 👀 basically getting paid to catch mistakes ✍🏽 #remoteworklife #workfromhomejobs #jobtok #wfh #wfhlife
Arialle Tate

Arialle Tate

12 likes

Some late night therapy was Much Needed😩 not my best but it will do! I did finally cut my pixie a lot shorter, I used: •scissors •razor comb #shortcut #pixiecutblackwomen #relaxedpixiecut #pixiecutinspo #grwmblackgirledition
Shay | SAHM💫

Shay | SAHM💫

3 likes

See more