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!

Jane Street has paid up large to avoid its numbers leaking out

https://www.ft.com/content/28a51284-98cc-4767-a306-0540d265687f
1•tcp_handshaker•1m ago•1 comments

GGFWPi – read-only Raspberry Pi firmware and Secure Boot audito

https://github.com/patapik/ggfwpi
2•patapik•1m ago•0 comments

Dead in the Water

https://www.slow-journalism.com/long-reads/dead-in-the-water
1•tkocmathla•4m ago•0 comments

AI Coding Without the Vibes

https://peterbloem.nl/blog/craft-coding
2•riskone•6m ago•0 comments

HN: HomeBrain – Your private local cloud, agent wired into everything

https://github.com/oalterg/HomeBrain
1•oalterg•9m ago•1 comments

The PREDIMED trial is the largest primary prevention trial

http://www.predimed.es/introduction.html
1•colinprince•9m ago•0 comments

Siemens PC-X (2015)

https://www.geekdot.com/siemens-pc-x/
1•naves•9m ago•0 comments

Update: The extension has been approved and is now live on the Chrome Web Store

https://chromewebstore.google.com/detail/source-download/nockdgincmpfojabnhbofkddgcmnodpd
1•2rundev•12m ago•0 comments

Bloom Chose the Team Before the Problem and the Research Before the Pitch

https://sherm4n.com/bloom-security-israel-ai-endpoint-itay-keren/
1•xsherman•13m ago•0 comments

Forget the Robot Tax. Tax the Tokens

https://www.atomic14.com/2026/08/16/forget-the-robot-tax-tax-the-tokens
1•iamflimflam1•14m ago•1 comments

Wave overhangs let you print without supports [video]

https://www.youtube.com/watch?v=IhAzIXTE-FE
1•feb•14m ago•0 comments

The Qwen MLX Challenge

https://www.yukon.org/mlxfast
1•vivekkairi•16m ago•0 comments

Boring bits prepare you for the problems that can't be solved by copy pasting

https://mastodon.gamedev.place/@sinbad/117104626436634775
1•jay_kyburz•17m ago•0 comments

A Swarm of Blood Robots

https://craigmod.com/essays/robot_blood/
1•naves•17m ago•0 comments

Show HN: Ask questions about the Swiss train timetable

https://fragplan.ch/
2•bekoeppel•18m ago•1 comments

Day, in One Frame

https://getdayframe.app/
1•croes•19m ago•0 comments

Haskell: Origins, Evolution, and Future [video]

https://www.youtube.com/watch?v=MQeIerDsReA
1•eric_khun•21m ago•0 comments

Knowledge Representation (2013)

https://sifter.org/~simon/journal/20130713.h.html
1•eric_khun•22m ago•0 comments

AstroUpdate – Real-time space news, 3D ISS tracking and AI briefs

https://www.astroupdate.space/en
1•bruceleeglad•22m ago•0 comments

Carrier Pidge – iOS messaging that travels at 100mph

https://www.tomshardware.com/software/applications/rogue-ios-developer-creates-app-that-simulates...
1•jtwaleson•22m ago•0 comments

Show HN: dunx – Nest-style DI for Bun without reflect-metadata

https://petarzarkov.github.io/dunx/#/
1•flaery•24m ago•0 comments

A receipt printer exposed to the internet, inviting people to send it things

https://www.reddit.com/r/selfhosted/comments/1vpskku/i_put_my_receipt_printer_on_the_internet_sen...
1•FinnKuhn•26m ago•0 comments

Climbing Guide as a Shared Infrastructure

https://irz.fr/en/articles/openclimbing-open-guide-en/
2•zbycz•27m ago•0 comments

Android Strings XML Translation Online: The Tool That Preserves Your Variables

https://locafileai.com
1•phobopt•27m ago•0 comments

Show HN: HN Glance – a visual reader for Hacker News links and discussions

https://hnglance.com/top
2•valentinvieriu•29m ago•1 comments

We cut RAG costs 5x without losing quality

https://trpevski.com/blog/scaling-rag-chunking-reranking-and-cost-optimization/
1•dzugumot•29m ago•0 comments

Why Chinese Citizens Are More Optimistic About AI Than Americans

https://www.bloomberg.com/news/articles/2026-08-14/why-ai-optimism-is-so-much-higher-in-china-tha...
2•helsinkiandrew•30m ago•1 comments

A Generative Cramér-Rao Bound

https://arxiv.org/abs/2203.03695
1•hasley•31m ago•1 comments

AI Paper Trail: What does AI know about you?

https://proton.me/lumo/ai/ai-paper-trail
1•Gys•33m ago•1 comments

How to Invest in AI (2025)

https://reactionwheel.net/2025/09/how-to-invest-in-ai.html
1•rzk•33m ago•0 comments