frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

An Enterprise-Level Retrieval-Augmented Generation System

https://comfyai.app/article/llm-applications/enterprise-level-rag-hands-on-practice-II
6•zljdanceholic•1y ago

Comments

zljdanceholic•1y ago
How can we search the wanted key information from 10,000+ pages of PDFs within 2.5 hours? For fact check, how do we implement it so that answers are backed by page-level references, minimizing hallucinations?

RAG-Challenge-2 is a great open-source project by Ilya Rice that ranked 1st at the Enterprise RAG Challenge, which has 4500+ lines of code for implementing a high-performing RAG system. It might seem overwhelming to newcomers who are just beginning to learn this technology. Therefore, to help you get started quickly—and to motivate myself to learn its ins and outs—I’ve created a complete tutorial on this.

We have a complete graph to explain its workflow where multiple tools are used: Docling for parsing PDFs, LangChain for chunking text, faiss for vectorization and similarity searching, and chatgpt for LLMs.

Besides, I also outline the codeflow, demonstrating the running logic involving multiple python files where starters can easily get lost. Different files are colored differently. The purpose of showing this is not letting you memorize all of these file relationships. It works better for you to check the source code yourself and use this as a reference if you find yourself lost in the code.

The original project of Ilya Rice design its RAG system for answering questions of annual reports from companies, so he only designed three types of question response format for that challenge: a name, a number, or a boolean. But to ask questions about technical stuff, we absolutely ask general questions like How does RoPE work? to know about some concepts and the like Therefore, I further modify the system logic to fit this need by customizing an AnswerWithRAGContextExplanationPrompt class and automatically matching the most related chapter and corresponding pages via searching through all faiss databases (only retrieve the top-1) The final performance is demonstrated below (not cherry-picked, only tested once).

- What's the steps to train a nanoGPT from scratch? The answer is:

Training nanoGPT from scratch involves several clearly defined steps. First, set up the environment by installing necessary libraries, using either Anaconda or Google Colab, and then download the dataset (e.g., tinyShakespeare). Next, tokenize the text into numerical representations and split the data into training and validation sets. Define the model architecture including token/positional embeddings, transformer blocks with multi-head self-attention and feed-forward networks, and layer normalization. Configure training hyperparameters and set up an optimizer (such as AdamW). Proceed with a training loop that performs forward passes, computes loss, backpropagates, and updates parameters, while periodically evaluating performance on both training and validation data. Finally, use the trained model to generate new text from a given context.

All code are provided on Colab and the tutorial is referenced here. Hope this helps!

VibeOS [video]

https://www.youtube.com/watch?v=zh6fMtL_cSM
1•nreece•1m ago•0 comments

Sonny Piers elaborates on his ban from the Gnome community

https://discourse.gnome.org/t/2026-board-candidate-robert-mcqueen/35308
1•RandomGerm4n•7m ago•0 comments

Vibe Rounds in Healthcare

https://archive.org/details/vibe-rounds-concept-document
1•dravinash•8m ago•1 comments

TokenLens

1•navrekh•10m ago•0 comments

We all sometimes feel like this bird

https://medium.com/the-hairpin/we-all-sometimes-feel-like-this-bird-eb0b167385ba
1•webnrrd2k•10m ago•0 comments

SlimTide Metabolism Support Reviews – Weight-Loss Guide 2026

https://finance.yahoo.com/sectors/healthcare/articles/slimtide-capsules-updated-warning-2026-1921...
2•kaizsapu•16m ago•0 comments

Telescope Rancher Became the Hot New Job in Texas

https://www.youtube.com/watch?v=bN48vEqaQs8
2•mudil•19m ago•0 comments

How Silicon Valley Misreads the Lord of the Rings

https://theconversation.com/how-silicon-valley-misreads-the-lord-of-the-rings-282862
4•billybuckwheat•19m ago•0 comments

How to Build Utopia (By Mythos)

https://aiking.dwyer.co.za/utopia
2•sixhobbits•26m ago•0 comments

Things I Hate

2•madprops•26m ago•0 comments

Command injection in NLTK collocations via eval()

https://aydinnyunus.github.io/2026/06/07/command-injection-nltk-collocations-eval/
2•yakkomajuri•29m ago•0 comments

Run a fleet of bug hunters on your infrastructure and apps

https://github.com/Matador-og/huntbot
2•mr_echo•30m ago•0 comments

Google Chrome is killing all uBlock Origin bypasses, Edge, Opera to follow

https://www.neowin.net/news/google-chrome-is-killing-all-ublock-origin-bypasses-microsoft-edge-op...
31•d3Xt3r•34m ago•16 comments

List StarWhisper on Hacker News (Show HN)

https://news.ycombinator.com/show
2•christianmer•42m ago•0 comments

Railroads are unnecessary: no ship in Liverpool waits for Manchester goods (1826)

https://hansard.parliament.uk/Commons/1826-04-06/debates/03e51364-f8af-412e-9796-f29949be21e1/Liv...
3•rfv6723•42m ago•0 comments

Permafrost – freeze Claude Code's prompt prefix, cut your DeepSeek bill 64%

https://github.com/jianzhichun/permafrost
3•jianzhichun•44m ago•2 comments

Apple pays Google $1B/yr for Gemini. Google pays Apple $20B/yr for search

https://www.matteast.io/competition-is-for-losers.html
6•meast•44m ago•1 comments

San Francisco Rejects a Tax Hike on Companies with Highly Paid Executives

https://www.wsj.com/politics/elections/san-francisco-rejects-a-tax-hike-on-companies-with-well-pa...
1•JumpCrisscross•45m ago•0 comments

Claude Fable 5 "Feels Next Level"

https://www.searchenginejournal.com/claude-fable-5-feels-next-level/578538/
2•parveshblogger•47m ago•0 comments

macOS/iOS 27 Icon Comparison VS 26

https://basicappleguy.com/basicappleblog/macos-golden-gate-icon-comparison
2•giuliomagnifico•50m ago•1 comments

Show HN: Artie – Real-time data replication to your warehouse, now self-serve

https://www.artie.com
2•tang8330•57m ago•0 comments

What Is CSGClaw?

https://github.com/OpenCSGs/csgclaw
1•YangXYfc•1h ago•0 comments

Show HN: OpenCode powered coding workspace for microcontroller development

https://github.com/Razz19/Exort
1•razorson•1h ago•1 comments

The Untrainable

https://saranormous.substack.com/p/the-untrainable
1•mfiguiere•1h ago•0 comments

Bank of the free now in the land of the free

https://www.bunq.com/blog/bringing-the-bank-of-the-free-to-the-land-of-the-free
1•janandonly•1h ago•0 comments

Bulk Domain Rating Checker

https://dr.vibecodinghub.org
1•ashing•1h ago•0 comments

AI Is a Thing We Made

https://thedailymemes.substack.com/p/ai-is-a-thing-we-made
1•danboarder•1h ago•0 comments

Firewood Splitting Simulator

https://screen.toys/firewood/
3•memalign•1h ago•1 comments

Active Recall

https://herman.bearblog.dev/active-recall/
2•Emerald_dreamer•1h ago•0 comments

Why don't cancer medicines work the same for everyone?

https://news.microsoft.com/signal/articles/why-dont-cancer-medicines-work-the-same-for-everyone-e...
1•visha1v•1h ago•0 comments