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!

FCC weighs changing E-Rate program, which lowers school internet bills

https://www.npr.org/2026/07/10/nx-s1-5878405/fcc-erate-schools-internet-discount
1•jonbaer•2m ago•0 comments

Microsoft latest report shows 25% emissions raised due to AI data centers

https://www.windowscentral.com/microsoft/dropping-greenwashing-credits-and-expanding-ai-datacente...
2•pjmlp•3m ago•0 comments

Ukraine's Amazon for war: Inside the marketplace built for the military

https://www.youtube.com/watch?v=BZaIh5we0bY
1•doener•4m ago•0 comments

Zeitpyramide

https://en.wikipedia.org/wiki/Zeitpyramide
1•doener•6m ago•0 comments

Kids (With Phones) Are Alright

https://heatherburns.tech/2026/07/08/the-kids-with-phones-are-alright/
1•JumpCrisscross•6m ago•0 comments

Timeline of the Far Future

https://en.wikipedia.org/wiki/Timeline_of_the_far_future
1•doener•7m ago•0 comments

Loom Document Search Engine

https://gitlab.com/swiss-armed-forces/cyber-command/cea/loom
1•ano-ther•9m ago•0 comments

In defense of not understanding your codebase

https://www.seangoedecke.com/in-defense-of-not-understanding-your-codebase/
1•suprjami•17m ago•1 comments

Show HN: ServiceBeard – Turn your support mailbox into an issue board

https://servicebeard.app/
2•hongaar•20m ago•0 comments

Adam Curtis – All Watched over by Machines of Loving Grace

https://en.wikipedia.org/wiki/All_Watched_Over_by_Machines_of_Loving_Grace_(TV_series)
4•mrauha•22m ago•1 comments

MonitorSpider. Uptime, page-change detection and login monitoring in one

https://monitorspider.com
1•hitechist•23m ago•0 comments

Show HN: Web-Performer – Run HTTP/GraphQL Requests from YAML (TypeScript CLI)

https://github.com/Techthos/web-performer
1•alex20465•26m ago•0 comments

Key Volkswagen shareholder pitches producing China car models in Germany

https://www.reuters.com/world/china/key-volkswagen-shareholder-pitches-producing-china-car-models...
2•tosh•31m ago•0 comments

Long March 10 booster cable catch, from the ship

https://twitter.com/CNSpaceflight/status/2075743529985605677
1•hunglee2•34m ago•0 comments

OST to PST Converter

https://blog.perfectdatasolutions.com/ost-to-pst-converter-software-2/
1•tieanderson•36m ago•0 comments

Show HN: Tinyreplay – lightweight session replay without analytics/cloud

https://github.com/kzekiue/tinyreplay
2•kzekiue•37m ago•0 comments

Eliezer Yudkowsky: Will superintelligent AI end the world? [video]

https://www.ted.com/talks/eliezer_yudkowsky_will_superintelligent_ai_end_the_world
1•fagnerbrack•39m ago•0 comments

Companies are scrambling to curtail soaring AI costs

https://www.economist.com/business/2026/06/14/companies-are-scrambling-to-curtail-soaring-ai-costs
20•nlpnerd•44m ago•7 comments

Surgeons Use Teleoperated Humanoid Robots to Perform Live Surgery

https://today.ucsd.edu/story/surgeons-use-teleoperated-humanoid-robots-to-perform-live-surgery-a-...
3•geox•45m ago•0 comments

Show HN: Akshara vision localfirst layout aware OCR and document restorer

https://bgraaj.github.io/akshara-vision/
1•bgraj•45m ago•0 comments

AI is compressing the startup lifecycle, not just development speed

https://www.alexdelivet.com/insights/the-end-of-zombie-startup-land
1•adelivet•45m ago•0 comments

Show HN: A deterministic I Ching engine, cross-validated against another impl

https://github.com/yaomancy/liuyao-engine
2•Jincheng-xie•49m ago•0 comments

Study: Cerebellum helps AI ignore the ordinary for more efficient computing

https://www.mccormick.northwestern.edu/news/articles/2026/07/ai-gets-a-cerebellum/
3•giuliomagnifico•50m ago•0 comments

Show HN: Open database of 2k IP camera specs (JSON/CSV, CC0)

https://github.com/ch-bas/cctv-camera-database
2•ch-bas•52m ago•0 comments

Your 'App' Could Have Been a Webpage (so I fixed it for you)

https://danq.me/2026/07/09/your-app-could-have-been-a-webpage/
2•MrVandemar•53m ago•0 comments

The brutal, powerful legacy of Threads

https://thebulletin.org/premium/2026-07/the-brutal-powerful-legacy-of-threads/
4•rwmj•53m ago•0 comments

Domain Expiry Grace Period: ICANN Rules, Redemption Period and What It Costs

https://medium.com/@thesuperrepemail/domain-expiry-grace-period-icann-rules-redemption-period-wha...
3•mssblogs•57m ago•0 comments

Prism World-The Workers.try for Free

https://prism-world.pages.dev
3•rrrpro123•59m ago•6 comments

The page of only weblogs (1999 – 2002)

http://www.jjg.net/retired/portal/tpoowl.html
1•theanonymousone•59m ago•0 comments

Cockpit Color Guide

https://www.cybermodeler.com/color/cockpit.shtml
1•theletterf•1h ago•0 comments