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!

Show HN: Material 3 Expressive Web Components

https://matraic.github.io/m3e/
1•matraic•1m ago•0 comments

The 'Father of the Internet' is finally retiring

https://techcrunch.com/2026/06/30/the-father-of-the-internet-is-finally-retiring/
1•rmason•1m ago•0 comments

NLRB Case of Denise Unterwurzacher and Atlassian

https://www.nlrb.gov/case/16-CA-324971
1•abeppu•5m ago•1 comments

Microsoft Frontier Company – Announcement

https://blogs.microsoft.com/blog/2026/07/02/microsoft-frontier-company-ai-engineering-that-amplif...
1•dzonga•6m ago•0 comments

Swift-Nio-QUIC

https://github.com/apple/swift-nio-quic
1•frizlab•6m ago•0 comments

What's new in Swift: June 2026 Edition

https://swift.org/blog/whats-new-in-swift-june-2026/
1•frizlab•7m ago•0 comments

'Separate in name and power': How America reinvented English

https://www.bbc.com/future/article/20260630-how-america-reinvented-english
1•1659447091•7m ago•0 comments

Fly Through Hogwarts

https://hogwarts-production.up.railway.app/
1•memalign•10m ago•0 comments

Running a Virtual Machine on a Cloud Box That Can't Run Virtual Machines

https://www.frankchiarulli.com/blog/nix-pvm/
1•fcjr•12m ago•0 comments

Virginia Bans Sale of Geolocation Data

https://www.hunton.com/privacy-and-cybersecurity-law-blog/virginia-bans-sale-of-geolocation-data
2•toomuchtodo•12m ago•1 comments

GitLab founder when facing terminal cancer attacks it like a startup problem

https://twitter.com/afshineemrani/status/2072363127552016501
1•rmason•13m ago•0 comments

The Music of Destruction

https://thebaffler.com/latest/the-music-of-destruction-fuelling
1•lermontov•15m ago•0 comments

WhatsApp to roll out username system, allowing users to hide phone numbers

2•PetaTech-News•16m ago•1 comments

Show HN: LaunchPact - Get upvotes for your Product Hunt launch

https://www.launchpact.io
1•launchpact_io•17m ago•1 comments

The Ramanujan Challenge for AI

https://www.ramanujanmachine.com/ramanujan-challenge/
1•robinhouston•18m ago•0 comments

Pacific West Real Estate Group

https://www.pacificwestre.ca/
1•PWREALESTATE•18m ago•1 comments

Fundamental Attribution Error

https://en.wikipedia.org/wiki/Fundamental_attribution_error
2•chistev•21m ago•0 comments

Hands-Free Lockpicking: Critical Vulns in Dormakaba's Access Control System

https://sec-consult.com/blog/detail/hands-free-lockpicking-critical-vulnerabilities-in-dormakabas...
1•denysvitali•21m ago•0 comments

Recommending Linux Distros Has Never Been This Fun [video]

https://www.youtube.com/watch?v=855QEhMlFXg
2•ashitlerferad•22m ago•0 comments

AI Agent Qubitz

https://github.com/Gabrieliam42/AI-Agent-Qubitz
1•Gabrieliam42•22m ago•0 comments

Clojure 1.13 adds support for checked keys

https://clojure.org/news/2026/07/02/clojure-1-13-alpha1
2•FelipeCortez•24m ago•0 comments

PHPStorm Lite

https://phpstorm.dev/light-mode
2•dmitrijbelikov•27m ago•0 comments

Show HN: Vulns in production OSS, at $6–7 per full codebase scan

https://medium.com/@fergallardogalaviz/30-confirmed-vulnerabilities-in-production-oss-at-6-7-per-...
1•fergallardo•28m ago•0 comments

Show HN: A tracker and synthesizer in your web browser

https://playrowbot.com
1•stets•28m ago•0 comments

Private Credit Is Making Bets on Consumer Debt at a Precarious Time

https://www.bloomberg.com/news/features/2026-06-28/private-credit-is-fueling-buy-now-pay-later-gr...
1•petethomas•29m ago•0 comments

Removing Idle Uploads

https://blog.catbox.moe/post/821058172332769280/removing-idle-uploads
1•Cider9986•31m ago•1 comments

Mathematics in the Age of AI

https://www.quantabooks.org/kevin-hartnett-on-mathematics-in-the-age-of-ai/
1•digital55•34m ago•0 comments

Germany charges Nord Stream suspect with attacking pipeline on behalf of Ukraine

https://www.reuters.com/world/europe/germany-charges-nord-stream-suspect-with-war-crime-complicit...
1•miguelazo•34m ago•0 comments

Help investigate if California's new data broker opt-out tool works

https://calmatters.org/economy/technology/2026/06/help-us-investigate-data-privacy-california/
3•indynz•34m ago•0 comments

Scientists Make Cells That Feed, Grow and Reproduce

https://www.smithsonianmag.com/smart-news/scientists-say-theyve-made-cells-that-feed-grow-and-rep...
1•worik•36m ago•0 comments