frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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!

Regression Towards the Mean

https://en.wikipedia.org/wiki/Regression_toward_the_mean
1•soupspaces•47s ago•0 comments

Pushing Local Models in Coding Agents with Focus and Polish

https://lucumr.pocoo.org/2026/5/8/local-models/
1•goranmoomin•1m ago•0 comments

Open-source experiment: collaborative AI cognition through wiki pages

https://mentisphere.wiki/wiki/Main_Page
1•franzvill•3m ago•0 comments

Hacking Time: Spoofing Atomic Clocks with Audio Harmonics

https://josephhall.org/blog/texture-of-time-wwvb/
1•jdblair•8m ago•0 comments

Anazoa WebRTC Tunnel

https://github.com/anazoa/anazoa
1•kawks•11m ago•0 comments

Pedestrian Killed by Frontier Airlines Plane Leaving Denver Airport

https://www.forbes.com/sites/antoniopequenoiv/2026/05/09/pedestrian-killed-by-frontier-airlines-p...
3•gpi•13m ago•0 comments

I Will Not Add Query Strings to Your URLs

https://susam.net/no-query-strings.html
1•susam•14m ago•0 comments

Darwinian – A self-evolving system optimizer written in Rust

https://github.com/skorotkiewicz/darwinian_cleaner
1•modinfo•17m ago•0 comments

US companies enabled brutal mass detention and surveillance in China [video]

https://www.youtube.com/watch?v=vGYd6emyk-0
3•Cider9986•17m ago•3 comments

Windows to take CPU to max frequency to open apps, system flyouts, context menus

https://www.windowscentral.com/microsoft/windows-11/microsoft-is-working-on-major-performance-boo...
3•alok-g•19m ago•1 comments

Switching from macOS to Pop _OS

https://system76.com/support/articles/switch-from-macos-to-popos/
5•DeathArrow•19m ago•0 comments

Show HN: AI coworkers who bully to keep each other from drifting(Karpathy-style)

https://wuphf.team
2•najmuzzaman•20m ago•0 comments

How CPU Memory and Caches Work [video]

https://www.youtube.com/watch?v=SAk-6gVkio0
1•tosh•20m ago•0 comments

Using perspective lines to identify AI generated photos

https://www.science.org/content/article/deepfakes-are-everywhere-godfather-digital-forensics-figh...
2•alok-g•23m ago•0 comments

Hantavirus Vaccines and Treatments Are in the Pipeline

https://www.nytimes.com/2026/05/09/science/hantavirus-vaccines-treatment.html
1•doener•26m ago•1 comments

Intel's comeback story is even wilder than it seems

https://techcrunch.com/2026/05/08/intels-comeback-story-is-even-wilder-than-it-seems/
2•Brajeshwar•26m ago•2 comments

Hello from the New Executive Director

https://opensource.org/blog/hello-from-the-new-executive-director
1•Tomte•29m ago•0 comments

Japan's Invisible Electric Wall

https://arun.is/blog/japan-electric-wall/
1•ddrmaxgt37•29m ago•0 comments

Show HN: Armorer – A secure local control plane to sandbox AI agents in Docker

https://github.com/ArmorerLabs/Armorer
2•cristianleo•33m ago•0 comments

The Mirror Is Part of the Machine

https://yusufaytas.com/the-mirror-is-part-of-the-machine
6•sudo_rm_star•36m ago•0 comments

Google developers significantly misstate CO2 emissions of UK datacentres

https://www.theguardian.com/technology/2026/may/09/google-developers-significantly-misstate-carbo...
3•mmarian•37m ago•0 comments

Introduction to Beaver Triples

https://stoffelmpc.com/stoffel-blog/beaver-triples-tuples
1•badcryptobitch•40m ago•0 comments

What 16 Parallel Claude Agents Built Around Themselves

https://medium.com/@vbcherepanov/what-16-parallel-claude-agents-built-around-themselves-deconstru...
3•vbcherepanov•45m ago•1 comments

Mypy 2.0 Relased

https://mypy-lang.blogspot.com/2026/05/mypy-20-relased.html
3•anishathalye•46m ago•0 comments

The Consolidation of Programming Languages?

https://twitter.com/NirZicherman/status/2053140102549766340
4•tattattaei•47m ago•2 comments

The Hunter-Gatherers Weighing Whether to Join the Modern World

https://www.wsj.com/world/africa/the-hunter-gatherers-weighing-whether-to-join-the-modern-world-0...
2•impish9208•47m ago•1 comments

Managing Postgres traffic spikes at Figma

https://www.figma.com/blog/pgkeeper-building-the-bouncer-we-needed-for-postgres/
4•bddicken•48m ago•0 comments

Learning on the Shop Floor

https://twitter.com/tobi/status/2053121182044451016
1•tosh•50m ago•0 comments

Bartenders at a Cocktail Mecca Propose a New Concoction: A Micro-Union

https://www.nytimes.com/2026/05/09/nyregion/attaboy-cocktail-union.html
1•brandonb•51m ago•0 comments

Box Elder County OKs data center project backed by a celebrity investor

https://www.sltrib.com/news/2026/05/04/utah-data-center-final-vote-box/
1•1vuio0pswjnm7•55m ago•0 comments