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•11mo ago

Comments

zljdanceholic•11mo 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!

Little-known Bay Area city will keep San Francisco in its airport's name

https://sfstandard.com/2026/04/28/oak-sfo-reach-naming-settlement/
1•mikhael•57s ago•0 comments

Before GitHub

https://lucumr.pocoo.org/2026/4/28/before-github/
1•mlex•1m ago•0 comments

The Sad Story of Heisenberg's Doctoral Oral Exam (1998)

https://www.aps.org/archives/publications/apsnews/199801/heisenberg.cfm
1•downbad_•1m ago•1 comments

Hundred Rabbits

https://en.wikipedia.org/wiki/Hundred_Rabbits
1•quijoteuniv•2m ago•0 comments

Critical Vulnerability with CPanel and WHM Login Authentication

https://support.cpanel.net/hc/en-us/articles/40073787579671-Critical-Vulnerability-with-cPanel-WH...
3•ollybee•2m ago•0 comments

AI Wellbeing: Measuring and improving the functional pleasure and pain of AIs

https://www.ai-wellbeing.org/
1•anematode•4m ago•0 comments

Walmart Upstream Facility Services: What We Do

https://public.walmart.com/content/wp/upstream-home/WhatWeDo.html
1•petethomas•5m ago•0 comments

Donating Agent Payments Protocol to the Fido Alliance

https://blog.google/products-and-platforms/platforms/google-pay/agent-payments-protocol-fido-alli...
1•pentagrama•5m ago•0 comments

Preparing for the AI-Enhanced Attacker and the Impact on CISOs

https://www.armadin.com/blog-posts/prepare-for-the-ai-enhanced-attacker
1•wslh•7m ago•0 comments

Does it work, or does it keep working?

https://shippingbytes.com/2026/04/22/does-it-work-or-does-it-keep-working/
2•gianarb•8m ago•0 comments

Anglo-Persian Oil Company

https://en.wikipedia.org/wiki/Anglo-Persian_Oil_Company
2•notepad0x90•8m ago•0 comments

MeetingEscape – vibe-coded panic button for escaping meetings

https://meetingescape.net/
1•Enginehead_•8m ago•0 comments

Confectionary Satellites

https://zenodo.org/records/19799778
1•svnt•9m ago•0 comments

Denuvo has been cracked in all single-player games it previously protected

https://www.tomshardware.com/video-games/pc-gaming/denuvo-has-been-bypassed-in-all-single-player-...
2•oceansky•10m ago•0 comments

Vompeccc from Scratch: Picking Produce with ICR in Emacs

https://www.chiply.dev/post-vompeccc-fruits
1•chiply•11m ago•1 comments

Router has been narrating your browsing habits this whole time

https://www.makeuseof.com/your-isp-watching-your-browsing-whole-time-heres-windows-11-fix/
1•galaxyLogic•12m ago•0 comments

CATL secures 60 GWh sodium-ion battery order with Hyperstrong

https://www.pv-magazine.com/2026/04/28/catl-secures-worlds-largest-sodium-ion-battery-order-with-...
3•konschubert•13m ago•1 comments

How well does S3 checkpointing hold up when running Airflow on spot?

https://spot.rackspace.com/blog/building-fault-tolerant-airflow-pipelines-on-spot-infrastructure
1•aleroawani•14m ago•1 comments

Why the Chicken Crossed the Road, According to Various Entities

https://dynomight.net/chicken/
1•webninja•15m ago•0 comments

First Amendment advocates blast the FCC's early review of ABC broadcast licenses

https://www.nbcnews.com/news/us-news/first-amendment-advocates-blast-fccs-early-review-abc-broadc...
3•ceejayoz•15m ago•0 comments

AMD's Lemonade SDK 10.3 Now 10x Smaller by Getting Rid of Electron

https://www.phoronix.com/news/AMD-Lemonade-10.3
3•canucker2016•15m ago•1 comments

Ask HN: What happens when you paste a screenshot, and ask questions in LLM?

1•orsenthil•16m ago•2 comments

Building simulations and/or digital twins with AI

https://github.com/plugboard-dev/plugboard
1•tjc45•18m ago•1 comments

Show HN: PeopleMesh, Semantic Search for People

https://github.com/francescopace/peoplemesh
1•francescopace•21m ago•0 comments

BP profits more than double as Iran war sends oil prices higher

https://www.bbc.com/news/articles/c2eveyvgn9no
19•breve•28m ago•3 comments

Trillions per Second

https://github.com/c4chaos-io/trillions-per-second
1•kordlessagain•29m ago•1 comments

Japan Airlines trials humanoid robots as ground handlers

https://www.bbc.com/news/articles/cpwp87j1llvo
2•breve•32m ago•0 comments

FDA turns up heat on Amgen, proposing to rescind approval of Tavneos

https://www.fiercepharma.com/pharma/fda-puts-more-heat-amgen-proposing-rescind-approval-tavneos
1•randycupertino•32m ago•1 comments

Reviving Teletext for Ham Radio

https://spectrum.ieee.org/reviving-teletext-for-ham-radio
1•austinallegro•33m ago•0 comments

How electronic warfare is sowing confusion in cockpits

https://www.cnn.com/2026/04/28/science/gps-jamming-plane-navigation-problems
2•breve•34m ago•0 comments