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!

Regular Primes

https://www.johndcook.com/blog/2026/12/03/regular-primes/
1•titusblair•21s ago•0 comments

Mitos looks like an appealing successor to Helix

https://ergaster.org/thoughts/mitos-helix-successor/
1•titusblair•27s ago•0 comments

Open Food Facts Database

https://huggingface.co/datasets/openfoodfacts/product-database
1•zeristor•2m ago•0 comments

Nintendo and the Minnesota State Lottery

https://gamehistory.org/lotto/
1•ndiddy•2m ago•0 comments

Musk promises Tesla HW3 owners a discount, not the self-driving they paid for

https://electrek.co/2026/12/03/tesla-hw3-discount-musk-shareholder-meeting-fsd/
1•cisc•2m ago•0 comments

Robot startup Foundation CEO fires co-founder after dispute over $4.6M loan

https://www.cnbc.com/2026/12/03/foundation-mike-leblanc-loan-dispute.html
1•ilamont•4m ago•1 comments

The Monumental Achievement of the Stanford Encyclopedia of Philosophy

https://www.newyorker.com/culture/annals-of-inquiry/the-monumental-achievement-of-the-stanford-en...
1•pseudolus•4m ago•1 comments

NY State Issues 5 Year Ban on AI Chatbot Toys

https://www.techdirt.com/2026/12/03/ny-state-issues-5-year-ban-on-ai-chatbot-toys-after-plushies-...
1•cdrnsf•5m ago•1 comments

Second earthquake hits Manhattan Beach 5 days after 5.0

https://abc7.com/post/37-magnitude-earthquake-strikes-off-coast-manhattan-beach-usgs-says/20114672/
1•illidan1000•5m ago•0 comments

Mastodon 5.0 Released

https://lwn.net/Articles/1111126/
2•millspore•6m ago•0 comments

NASA Contractor Steals Moon Rover Wheel to Sell It on Facebook

https://www.nytimes.com/2026/12/03/science/space/nasa-contractor-stolen-lunar-rover-wheel.html
1•ilamont•7m ago•0 comments

People Who Are Serious About Packets Should Make Their Own NICs

https://oxide-and-friends.transistor.fm/episodes/people-who-are-really-serious-about-packets-shou...
1•hasheddan•10m ago•0 comments

SHA-1 was only theoretically broken for twelve years

https://hrih.si/articles/sha-1-was-only-theoretically-broken-for-twelve-years/
1•DonAtimator•11m ago•0 comments

Elaine – a Minecraft server written from scratch in C++

https://github.com/ImHirou/Elaine
1•RichardSanchez•12m ago•0 comments

Claude projects now in beta on Team and Enterprise plans

https://claude.com/resources/articles/claude-projects-beta-on-team-and-enterprise
1•gmays•14m ago•0 comments

China is defying the laws of economics to manufacture ever more

https://www.economist.com/interactive/briefing/2026/12/03/china-is-defying-the-laws-of-economics-...
2•ijidak•15m ago•0 comments

Celld becomes Workerd: self-hosted distributed Durable Objects, from Cloudflare

https://workerd.dev/
1•marcusestes•15m ago•0 comments

M 4.0 – 8 km WSW of Manhattan Beach, CA

https://earthquake.usgs.gov/earthquakes/eventpage/ci41584824/executive
1•starkparker•16m ago•0 comments

Conan Git requirements: open-source dependencies directly from GitHub

https://blog.conan.io/cpp/conan/git/github/opensource/2026/12/03/Conan-Git-Requires-Dependencies-...
1•ibobev•17m ago•0 comments

Interactive Chemistry Lab Simulation [video]

https://www.youtube.com/shorts/pgHUAP1vvU8
1•shroom1•18m ago•0 comments

Behind the tools that made Thief and System Shock

https://www.gamedeveloper.com/programming/behind-dromed-and-shocked-the-tools-that-made-thief-and...
1•ibobev•19m ago•0 comments

I almost found the eMudhra d=4 Private Key

https://blog.hboeck.de/archives/910-How-I-almost-found-the-eMudhra-d4-Private-Key.html
1•mritzmann•22m ago•0 comments

Show HN: Zmb-audit – Zero-dep Python AST auditor for AI-generated dead code

https://github.com/ADevBelgie/zmb-audit
2•ArthurDev•23m ago•0 comments

Show HN:A household emergency plan that runs in the browser

https://ohcrapkit.com/
1•delimiterbob•23m ago•0 comments

Show HN: Marble3 – a 3D game engine for the web

https://marble3.dev/
1•benoit-hirbec•25m ago•0 comments

How I Stopped Dreading 9000-Line PRs and Remain the Engineer

https://technology.doximity.com/articles/how-i-stopped-dreading-9000-line-prs-and-remain-the-engi...
2•nilbus•28m ago•0 comments

Show HN: OpenLune: AI Development Environments as Code

https://github.com/dominikbraun
2•EspressoGPT•28m ago•1 comments

Scam centers from Cambodia moving to Madagascar

https://www.japantimes.co.jp/news/2026/10/31/world/crime-legal/madagascar-scam-centers/
3•weryberl5•30m ago•1 comments

Show HN: Nanit Camera on Your Mac

https://github.com/Theo-/deskcam
1•theo31•31m ago•0 comments

Computing ab+CD and other expressions with correct rounding in binary floating-p

https://hal.science/hal-05874593
1•fanf2•32m ago•0 comments