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!

The System from Nowhere

https://mail.cyberneticforests.com/the-system-from-nowhere/
1•peterm4•2m ago•0 comments

The Life and Death of Direct File [pdf]

https://www.ischool.berkeley.edu/sites/default/files/vinton_report_5.pdf
1•ronbenton•11m ago•0 comments

Hawaii flooded by Lala with thousands without power [video]

https://www.youtube.com/watch?v=gKzA4zDHyUc
1•Bender•11m ago•0 comments

The federal keyword lists that canceled billions in research funding

https://www.highereddive.com/news/inside-the-federal-keyword-lists-that-canceled-billions-in-rese...
2•walrus01•14m ago•0 comments

Harnessing the Power of Slop Driven Development

https://hank.bond/posts/harnessing-the-power-of-slop-driven-development/
2•hankbond•19m ago•0 comments

Kindred Sciences Unveils First Dogs Genetically Edited to Remove Dog Allergen

https://www.businesswire.com/news/home/20260805451804/en/Kindred-Companion-Sciences-Unveils-First...
2•ca98am79•19m ago•0 comments

TSMC Uses Old Fabs to Make New Chips [video]

https://www.youtube.com/watch?v=cDxVYQrxeiQ
2•eig•21m ago•1 comments

Webmaster a Manifesto for Everyone

https://brennan.day/webmaster-a-manifesto-for-everyone/
4•OuterVale•24m ago•0 comments

Conversion of CO2 to CO by Solvated Electrons in Molten Salts

https://pubs.acs.org/aelccp/article/11/8/5297/5243806/
1•car•29m ago•0 comments

Reticulum – Decentralized Mesh Network

https://reticulum.network/
3•sudo_cowsay•29m ago•1 comments

The Chauffeur Problem

https://engines.egr.uh.edu/episode/1495
1•leowoo91•33m ago•0 comments

Can you fit a song into a QR code? [YouTube]

https://www.youtube.com/watch?v=w5hIdQcUnRE
1•qingcharles•38m ago•0 comments

Show HN: A visual ping utility that is pretty

https://source.tube/ache/rusty-ping
1•_ache_•38m ago•0 comments

With OpenRouter, Is Stripe Becoming the Amazon of AI

https://github.com/getlago/lago/wiki/With-OpenRouter,-is-Stripe-becoming-the-Amazon-of-AI
1•AnhTho_FR•41m ago•1 comments

The Metabase SQLi: Exploited in the Wild

https://www.wiz.io/blog/inside-the-metabase-sqli-exploited-in-the-wild
1•ghiculescu•43m ago•0 comments

Qwen 3.8 27B is excellent, but it defaults to overthinking things

https://simonwillison.net/2026/Aug/16/qwen-38-27b/
5•bilsbie•43m ago•1 comments

Slop Rolls Downhill

https://nadeeshacabral.com/posts/slop-rolls-downhill/
3•lunarcave•46m ago•1 comments

Context for Claude – give eyes and ears to your agents

https://www.contextforclaude.com/
2•Archit_lal_•50m ago•1 comments

Open-source Shopify Hydrogen theme with RTL, internationalization, seeding CLI

https://github.com/ozgursagiroglu/shopify-hydrogen-fashion-theme
1•ozgursagiroglu•51m ago•0 comments

Rubygem typosquat campaign deploys Windows stealer

https://opensourcemalware.com/blog/stubmaker-rubygems-windows-infostealer
1•6mile•55m ago•0 comments

A Tour of Magit's Status Interface

https://heiwiper.com/posts/magit-status-tour/
1•birdculture•59m ago•0 comments

BanProof – AI that scans TikTok Shop videos for violation points before you post

https://banproof.io/
1•Pratham3690•59m ago•0 comments

Credentio: Open-Source C++ Library for C2PA Content Credentials from Google

https://developers.googleblog.com/introducing-credentio-open-source-c-library-for-c2pa-content-cr...
1•vinayakborkar•1h ago•0 comments

Silver Lake in talks to buy Workday, sources say

https://www.reuters.com/world/silver-lake-talks-buy-workday-sources-say-2026-08-13/
2•healsdata•1h ago•1 comments

Jason Steffen's Home Page

https://www.physics.unlv.edu/~jsteffen/airplanes.html
2•thunderbong•1h ago•0 comments

Dividend Puzzle

https://en.wikipedia.org/wiki/Dividend_puzzle
1•rzk•1h ago•0 comments

A 23-year-old founder built Radiant World into a $12B-a-year trading giant

https://www.msn.com/en-us/money/general/a-23-year-old-founder-built-radiant-world-into-a-12-billi...
1•petethomas•1h ago•0 comments

Enabling the next iteration of the borrow checker on nightly

https://blog.rust-lang.org/2026/08/04/enabling-polonius-alpha-on-nightly/
1•weinzierl•1h ago•0 comments

Stripe will reportedly acquire AI gateway startup OpenRouter for $7B+

https://techcrunch.com/2026/08/16/stripe-will-reportedly-acquire-ai-gateway-startup-openrouter-fo...
11•sbulaev•1h ago•2 comments

What Early Internet Hackers Understood That We Forgot [video]

https://www.youtube.com/watch?v=XHeMsXDyw2A
1•pierrephpguru•1h ago•0 comments