Automatically translated.View original post

When the RAG we built...Fight life but we fight back! 🦾

A headache with the word "can't find information" when you put it in? 💢

It's not a coincidence, but it's technical!

Today, let's take a look at how to upgrade RAG to be smarter in a leap.

✅ Lost in the middle.

✅ measured with RAGAS to stop thinking that it's accurate.

✅ Upgrade to Modular RAG with a cool Logic Path.

Stack ready tool. The maker is ready (will sleep)! Who uses which one? Comment, let's talk. 👇

# programmer # Developer # selfdevelopment # Data ascience # learnonlemon8

1/20 Edited to

... Read moreในการใช้งาน Retrieval-Augmented Generation (RAG) หลายคนอาจเคยเจออาการ "หลงทางตรงกลาง" หรือข้อมูลบางส่วนในบริบทที่ใส่เข้าไปถูกละเลยซึ่งเกิดจาก LLM ไม่สามารถจำข้อมูลในช่วงกลางของบริบทได้อย่างถูกต้อง เทคนิคหนึ่งที่ผมใช้เองคือการเลือกขนาด Chunk ที่เหมาะสม (Small-to-Big Retrieval) โดยการค้นหาด้วยประโยคสั้นๆ แต่ดึงทั้งย่อหน้าของเนื้อหามาใช้ ทำให้ข้อมูลที่ส่งให้โมเดลครบถ้วนและแม่นยำกว่า อีกเทคนิคที่สำคัญคือ Modular RAG ที่เน้นการสร้าง Logical Path ซึ่งทำให้โมเดลสามารถประมวลผลข้อมูลเป็นลำดับขั้นตอน แยกความสำคัญและตรวจสอบข้อมูลได้ด้วยตัวเอง เช่น Self-RAG ที่ให้โมเดลตรวจสอบ context ของตัวเองว่าตอบคำถามได้จริงไหม และถ้ายังไม่พอจะกลับไปค้นหาอีกครั้ง ช่วยเพิ่มความแม่นยำและลดความผิดพลาดจากข้อมูลที่ไม่น่าเชื่อถือ สำหรับผู้ที่ต้องการวัดประสิทธิภาพของ RAG แบบเป็นระบบ การใช้ RAGAS Framework จะช่วยให้เราสามารถประเมินค่า Metrics เช่น Faithfulness, Answer Relevance, และ Context Precision ได้แบบอัตโนมัติ ช่วยลดการมโนว่าผลลัพธ์แม่นยำโดยไม่มีข้อมูลยืนยัน เครื่องมือยอดนิยมที่ผมแนะนำตอนเริ่มต้น เช่น LangChain สำหรับการจัดการ orchestration, LlamaIndex สำหรับการจัดการข้อมูล Retrieval แบบเฉพาะ และ Vector DB อย่าง Pinecone, Milvus และ ChromaDB ที่ช่วยเก็บและดึงข้อมูล vector ได้อย่างรวดเร็วและมีประสิทธิภาพ ด้วยการใช้เทคนิคและเครื่องมือเหล่านี้ร่วมกัน ผมพบว่า RAG ที่พัฒนาขึ้นสามารถตอบโจทย์การดึงข้อมูลจากฐานข้อมูลขนาดใหญ่ได้ดีขึ้นมาก ลดปัญหาการ "ข้อมูลหาไม่เจอ" ที่เคยเจอมา และยังช่วยให้ผู้ใช้งานสามารถพัฒนาระบบตอบคำถามด้วย AI ได้อย่างมั่นใจมากขึ้น ลองปรับใช้เทคนิคเหล่านี้ดูนะครับ จะช่วยให้การพัฒนา RAG ของคุณก้าวกระโดดขึ้นจริงๆ!

Related posts

Fight Together( First Draft)
#poetry #writertok #poetsoflemon8 #poetrycommunity
Severin Blackthorn

Severin Blackthorn

76 likes

Built bubble butt in 10 weeks 😝
#lemon8workout #fitness #healthylifestyle2024
Cozy Gifts

Cozy Gifts

4654 likes

Sweet Dreams are made of this💤☁️👇🏻
I prioritize getting good sleep for my mental health, work ethic, and physical health. A lot of things determine quality sleep like temperature, personal preferences, and quality of comfort, but we often neglect our senses that have nothing to do with touch. I have to sleep in a dark room and t
cc 🍒🐆🍸🏳️‍🌈

cc 🍒🐆🍸🏳️‍🌈

2155 likes

Pressure didn’t break me. It built me 💪🏾💪🏾🫶🏾🙏🏾🙏🏾
#rootedinradiance88 #fyp #Lemon8 #lemon8challenge #viral
rootedinradiance88

rootedinradiance88

61 likes

sounds super cringe but helpful when you spiral
save for your next spiral. my biggest learning was to track my progress in a long term journal to see how far I’ve come. I use the journee app for doing a voice brain dump mid spiral and for tracking my moods but you can use whatever system you like. what you want to collect is a) evidence that you
journee

journee

12 likes

how we stay besties even when life gets busy 💜👯‍♀️
As we get older, friendship starts to look different. It’s not about seeing each other every day or texting 24/7—it’s about being intentional with the time we do have. We’ve both had seasons of chaos: work stress, relationship stuff, burnout, healing, growth. But somehow… we’ve never let that pu
caroline 🫶🏼

caroline 🫶🏼

36 likes

This is what I’m built for🚀💰#luxury #success #moti
This is what I’m built for🚀💰 #luxury #success #motivation #fyp
Yirah

Yirah

2003 likes

How I built a solid core in 2 months
Feeling the burn and loving it! 🔥 Today’s core workout is all about building those solidcore obliques for strength and definition. #coreconfidence #coreworkoutroutine #lemon8fitnesstips
Paige💅🏾

Paige💅🏾

54 likes

my life changed when i realized this:
this is embarrassing to admit…but making good habits stick has always been SO hard for me. i’ll do well for a few days, even a week. i trick myself into thinking i’ve got it down, and then inevitably fall off every single habit and procrastinate doing anything positive for myself until i’m an anxio
carley ◡̈

carley ◡̈

421 likes

I love this home we’ve built!
A few of my favorite before and afters of our home design I dreamt up. 🥰 #interiordesign #interiordesignideas #homedesign #homedesignideas #DIY #homeprojects #kitchenremodel #bathroomremodel #entrywaydesign #homeremodel
Astin Hancock

Astin Hancock

4724 likes

back to school hygiene tips YOU NEED TO KNOW SIS🎀
back to school hygiene tips YOU NEED TO KNOW ASAP🫧 how to smell & look good ALL DAY LONG! self care tips for girl✨ #hygieneessentials #hygieneroutine #bodycareroutine #beautyfinds #selfcareroutine
JAY ALEXIS🎀

JAY ALEXIS🎀

25 likes

How I built my PC as a complete noob 💅
I always thought I wouldn't be able to build my own PC. When I decided I wanted to switch out my PC case to the one I currently have, I was terrified! But I managed to do it in the end-- even if I'm no pro, here's what I did 🫡 1. PC components. When I received my PC back in 2018 I we
My ☁️

My ☁️

657 likes

The Path We Clear
Tools of the Trade honoring the machines, methods, and mastery behind hard work and winter resolve. The Path We Clear Poem Tribute to Snowblowers By Alan J Winters When winter lays its heavy hand, And drifts rise tall across the land, We fire the beast with auger teeth, To car
Alan Winters

Alan Winters

17 likes

Not Everyone Gets a Soft Life — But We Still Rise
Some of us weren’t given soft lives — we were built in the fire and still found a way to bloom. 🌿 We carry others because we remember what it felt like to stand alone. We’re not here because it was easy — we’re here because we didn’t give up. 💫 #BloomAnyway #mentalhealthmatters #KeepGoing
HerDailyFight

HerDailyFight

2 likes

How I Built A Rounder Butt While Losing Fat
1) Train Glutes 3 Days A Week No more or Less. Make sure to spread the days out. Don’t work the glutes back to back days. 2) Lift Heavier If you are doing floor workouts or workouts with just resistance bands then there is a low chance that you are going to get the type of gains you’re looking
Haven France

Haven France

319 likes

“Building a life nobody saw me fight for.”
Some seasons don’t look impressive from the outside. No big wins. No spotlight. No applause. Just quiet decisions. Hard conversations. Holding yourself together when life gets heavy. That’s the part people don’t see when they say, “Wow, you’re doing so well.” I’m not lucky. I’m co
Naomi Johnson G7 Elite

Naomi Johnson G7 Elite

2 likes

Why We Actually Cry After Accomplishment
Many times in life, we are called to push ourselves, dedicating our time, energy, and hearts to achieving something meaningful. Whether it’s finishing school, saving for a dream, or working tirelessly to make ends meet, reaching that moment of completion can often bring unexpected tears. Those
Jalin✨Feminine Journey

Jalin✨Feminine Journey

16 likes

My 5 easy habits i built for weightloss🎀:
#lemon8partner #lemon8creator #weightlosshabits #bodytransformation #summerbod obviously these are habits that i am still incorporating into my daily lifestyle so some days i might not hit all 5 but it’s always good to prioritize these as a good starting point for healthy weightloss!
Cathy

Cathy

407 likes

No, He’s Not a King. That’s Why the Rules Matter.
By Harlan Sykes, March 29, 2026, from Fight Oligarchy A message to critics of the “No Kings” protests: “Good thing we don’t HAVE a king” is not the clap-back you think it is. The point of naming it “No Kings” seems to have flown right over your red MAGA hats. The protests are not about litera
Fight Oligarchy

Fight Oligarchy

15 likes

Actual adult treehouse you can have built to live
Moonkitten🐈‍⬛🌙

Moonkitten🐈‍⬛🌙

672 likes

When WE VOTE WE WIN! I rest my case.
Politics make policies and policies will affect you directly as long as you live in an organized society. This is not the time to play. This is not the time to fool around. It is the Democracy of the United States and the American ways that are threatened right now. Fight for Democracy.
American Joy 92

American Joy 92

58 likes

Paranormal MC romance
Book 1 of the Rogue Huntsmen series is Now Live! He's a dragon shifter. She's the government agent who could destroy everything he's built. Gareth "Doc" Zyndrakh is president of the Rogue Huntsmen MC. The club's security company is legitimate. Their underground fight c
Pat Johnston

Pat Johnston

1 like

When Love Gets Quiet…
Ain’t nobody talking, but we both feel it. That silence that hits harder than yelling ever could. #poetry #spokenpoetry #love
Kadijah

Kadijah

640 likes

A millionaire just built a tiny-home village to fight homelessness.
A millionaire just built a tiny-home village to fight homelessness. Marcel LeBrun, an entrepreneur from Fredericton, put four million dollars of his own money into a project called 12 Neighbours. It will include 99 fully equipped homes and an enterprise center that offers training and jobs. The g
HEZZY ⚡️

HEZZY ⚡️

95 likes

I built a Murphy door!!!
Still a tad bit of work to do on this Murphy door, but it’s soooo close to being done! Idk if it will stay a Murphy door forever since the opening is really small, but for now I’m loving it and we’ll see if it’s small enough to annoy us! #murphy #hidden #hiddenroom #pantry #pantryor
Astin Hancock

Astin Hancock

7939 likes

- When does love stop feeling like love?❤️‍🩹
I didn’t detach from my previous relationship overnight. It wasn’t one explosive fight or one mistake that made me pull away. It was a collection of small moments that built up until I felt more like a bystander than a partner. It was realizing I expected things from him that he wasn’t w
Brookie ❤︎︎☘︎︎

Brookie ❤︎︎☘︎︎

13 likes

6’6 and built like a mountain… 🤭
There’s a first for everything you encounter. First time being at a wife swap First time meeting the man of my dreams at said wife swap First time being proposed to over the phone by the man you met at wife swap and traveling over seas to come to America to live with him and his daughter. And
shannell fisher

shannell fisher

758 likes

READ THIS WHEN YOU FEEL LIKE GIVING UP!
Let’s be real life is heavy. Bills stack up. People let you down. Dreams feel further than ever. And some days, the weight makes you want to quit. But here’s the truth nobody tells you: Quitting won’t make the pain disappear it just erases the possibility of victory. Every time you keep goin
I Am Feeling Good

I Am Feeling Good

17 likes

So Now What? How to Actually Fight Back Against the Misinformation Machine | Rea
We spent six episodes breaking down how shared reality collapsed – algorithms, media consolidation, platform design, and the identity trap. Now we answer the question everyone asks at the end: OK, I get it. So what do I actually do? This episode covers what doesn’t work (sharing more, arguing onli
conniemarceline

conniemarceline

0 likes

How I Built Strong & Defined Legs
I’ll be the first to say I’ve always had thicker thighs and a thigh gap was never reality for me. But I’ve come to love my legs for how strong they are and I’ve actually transformed them So that they have a large amount of my overall muscle mass and are soo strong and capable! Here are the top thr
Sarah Beers

Sarah Beers

34 likes

Where Are the Men Who Really Fight?
I’ve been thinking a lot about this lately. Has anyone else noticed how hard it is to find a guy who actually fights for the relationship? I’m not saying all men are like this, but from my experience, even when the love is great, even when you’ve been together a long time, and even when they say th
Chelsea Miller

Chelsea Miller

2 likes

US vs. Everything🤼‍♀️🥊💯🙌🏾
Today On, PT 41| US vs. Everything: Codes 2 Ride or Rise By” Chicago Faith-based Relationship Growth + Real Talk Motivation This taps into couples who want to strengthen their bond through spiritual alignment, real-life resilience, and unwavering support—perfect for those building kingdom pa
J A s 👸🏾• MESSENGER OF L💌VE

J A s 👸🏾• MESSENGER OF L💌VE

4 likes

BUILT not BOUGHT 💞
Never give up ✨ #gymbuddyideas #remember youre a gym baddie #gymshark😈 #gymgirl🖤 #gymgirlpower
Clarissa Janelle 💗

Clarissa Janelle 💗

10 likes

How I built my glutes 🍑
When I first started working out I had 0 glutes. In middle school I actually got made fun of for being so “flat.” It use to make me really insecure so I decided to do something about it. Here are the 4 things I did to build my glutes⬇️ 1. Heavy hip thrusts I hip thrusts 2-3 times a week and
Sophia Cepero

Sophia Cepero

48 likes

Faith Mode MMA C1_Built for the next round.
As a lover of mixed martial arts I've always wanted to design gear that not only resignates with fans of MMA but with believers in faith_I think the two go hand in hand because the truth is we all fight every single day just to break even and if this product doesn't get the blood pumping an
Kelvin "CJ" James

Kelvin "CJ" James

4 likes

Confidence is built one step at a time 💪🏾✨
Here’s how I leveled up my self-love game: 1️⃣ Took myself out and embraced my own company. 2️⃣ Focused on my health—because you can’t pour from an empty cup. 3️⃣ Stayed in my lane and stopped comparing my journey to others. 4️⃣ Set goals and chased them with purpose. What’s your favorite co
RichGirls

RichGirls

25 likes

HOW I BUILT MY LOWER BODY 🦵
• I hate squats, and still do! It takes a lot of energy and I always get worried I’m going to hurt my back, I’d rather focus the weight on just my quad not my whole body! There are specific machines that serve that purpose but it’s important to do more than one exercise on big muscle groups (ex: ha
Livy🪐✨

Livy🪐✨

159 likes

Built in BACKGROUND NOISE ON IPHONE!
#techfinds #lemon8challenge #iPhone #iphonetips #tips #lifestyle
Ora

Ora

22 likes

The Fight
The real fight for freedom isn’t out there—it lives inside us. Every step forward, every truth spoken, every fear faced is a victory. Take your chains off. Stand in your power. Own your fight. #InnerFreedom #TheFight #SpokenWordArt #SelfEmpowerment #Zoeflow
Zoey Dabrease

Zoey Dabrease

0 likes

finally BUILT confidence
✨ How I finally built confidence ✨ Building confidence can be a rollercoaster 🎢 but a beneficial rollercoaster. To help with my confidence I followed these tips: 💭 • I started doing things I normally don’t do 🙈 SOUNDS SCARY RIGHT!? Well it is. It takes a lot to step into a box you’ve n
everythingtrin 🫦

everythingtrin 🫦

172 likes

The best horror movies on Hulu 🎥
– Bone Tomahawk (2015) Genre: Western, Horror, Drama Stars: Kurt Russell, Patrick Wilson, Richard Jenkins Directed by S. Craig Zahler Kurt Russell stars in S. Craig Zahler’s Western horror film Bone Tomahawk, opposite an ensemble that also includes Patrick Wilson and Oscar-nominee Richard Jen
Rachelle Smith

Rachelle Smith

200 likes

We Reign in Silk
You kiss me slow like ancient gold, our skin like stories never told. In gardens built from love and light, we rule the stars without a fight. No thrones of pain, no crowns of fear— just soft and sacred, crystal-clear. We reign in silk, in honeyed breeze, Black love that bends the world wi
𝐸𝓂𝓅𝓇𝑒𝓈𝓈 𝒩𝒶𝒻𝒾𝓈𝒶👑

𝐸𝓂𝓅𝓇𝑒𝓈𝓈 𝒩𝒶𝒻𝒾𝓈𝒶👑

19 likes

How I built my confidence back
Boosting your confidence in your mid 20s can be hard, especially if people around you are hitting personal milestones that you haven’t hit yet! I know my confidence has bottomed out once I hit my 20s, but now my confidence is back full force! Here are some tips to help you shine: - Embrace P
Kaylee Walker

Kaylee Walker

3 likes

See more