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!

Redesigning the Inference Chip

https://zartbot.github.io/blog/arch/jalapeno/en.html
1•__patchbit__•39s ago•0 comments

Show HN: Randomly Sample Locations on Streets

https://github.com/geosensing/geo-sampling
1•neehao•1m ago•0 comments

Cross-class friendships are strong predictors of upward mobility

https://www.ft.com/content/ce3139ac-e88e-4c0d-ab92-b36e79052836
1•marojejian•5m ago•0 comments

Should We Have Kept the American Empire?

https://www.maximum-progress.com/p/should-we-have-kept-the-american
1•vinnyglennon•5m ago•0 comments

Ancient 'Who owns Linux?' case now has one foot deep in the grave

https://www.theregister.com/software/2026/08/24/ancient-who-owns-linux-case-now-has-one-foot-very...
1•Tomte•7m ago•0 comments

Monetizing the Golden Age of Short Selling

https://www.alphanume-research.com/p/monetizing-the-golden-age-of-short
1•alphanume•15m ago•0 comments

Show HN: Flint – A C/C++ build system and package manager written in pure C

https://github.com/mainak55512/flint
1•mbhatt99•16m ago•0 comments

Show HN: Tinysandbox-JS-Runtime - JS in WASM in v8

https://github.com/danthegoodman1/tinysandbox/tree/main/tinysandbox-js-runtime
1•dangoodmanUT•17m ago•0 comments

Seattle light rail became first floating passenger train

https://www.seattletimes.com/seattle-news/transportation/how-seattle-light-rail-became-worlds-fir...
1•k-ian•18m ago•0 comments

Coyote vs. Acme (also, for free, my take on The Odyssey)

https://statmodeling.stat.columbia.edu/2026/08/30/coyote-vs-acme-also-for-free-my-take-on-the-ody...
1•Tomte•19m ago•0 comments

The baffling science of SSRIs: how do they work?

https://www.nature.com/articles/d41586-026-02570-w
1•cwwc•20m ago•0 comments

Who Are We Now?

https://jessitron.com/2026/08/30/who-are-we-now/
1•ingve•21m ago•1 comments

Reward Guided Speculative Decoding

https://arxiv.org/abs/2506.04118
1•E-Reverance•22m ago•0 comments

'They shot all their weapons; they trashed their ships; they ran out of money'

https://www.theguardian.com/us-news/2026/aug/27/trump-iran-war-navy-budget
5•cwwc•22m ago•0 comments

Revise, a zero code, desktop ML platform, revolutionizing ML model creation

https://www.revise.live/
2•Aadi_Ajmire•23m ago•0 comments

Show HN: AbracadaNames – a multilingual, data-driven wall of first names

https://abracadanames.com/
1•PopFlamingo•25m ago•0 comments

Superhuman AI coding still makes software worse

https://www.williamangel.net/blog/2026/08/29/superhuman-AI-coding-still-makes-software-worse.html
1•datadrivenangel•26m ago•1 comments

Anubis' Design

https://anubis.techaro.lol/docs/design/how-anubis-works
2•gurjeet•27m ago•0 comments

Debian: Retiring from the Project (Vv221)

https://lists.debian.org/debian-project/2026/08/msg00041.html
4•tosh•34m ago•1 comments

Show HN: Text Logo – create text logos and wordmarks in the browser

https://textlogo.app
1•paidx•35m ago•0 comments

Rotating Boxes

https://openprocessing.org/@3ur3k4/2847445
2•bookofjoe•36m ago•0 comments

Markets do not punish firms for maintaining DEI [pdf]

https://democracypolicylab.berkeley.edu/wp-content/uploads/2026/08/folsz_grumbach_dei.pdf
2•anigbrowl•36m ago•0 comments

Good Luck, Have Fun, Don't Die: Sam Rockwell Lifts an Absurdist AI Sci-Fi Satire

https://apnews.com/article/good-luck-have-fun-dont-die-review-8c9e0815b189a2395bedf58c704cc239
3•walterbell•39m ago•0 comments

Being kicked out of the tech industry

https://www.jacky.wtf/essays/2026/kicked-out/
5•signa11•40m ago•1 comments

Google's Obedience to Trump's "Lake America" Order Follows a Depressing Pattern

https://www.motherjones.com/politics/2026/08/google-lake-ontario-america-maps-rename-capitulation/
18•cdrnsf•43m ago•6 comments

'You'll Never Catch Him '

https://www.nybooks.com/online/2026/08/30/youll-never-catch-him-coyote-vs-acme-road-runner/
2•johntfella•44m ago•0 comments

Build a Reasoning Model Scratch 1: Motivation and Code Setup [video]

https://www.youtube.com/watch?v=Kh9mqTzjuEQ
1•pretext•45m ago•0 comments

The State of Django 2026: Boring is so back

https://blog.jetbrains.com/pycharm/2026/08/the-state-of-django-2026-boring-is-so-back/
3•ferryth•48m ago•1 comments

Article will now be used to start Phase2 of "shut down open source"

https://twitter.com/chamath/status/2094098122637214107
2•bilsbie•48m ago•0 comments

Pure-Rust Headless Browser: 5× Faster, 80% Less Memory Compared to Chromium

https://www.reddit.com/r/browsers/comments/1w2mzsu/i_built_a_headless_browser_for_ai_agents_entir...
2•syumei•49m ago•0 comments