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!

Things C++26 define_static_array can't do

https://quuxplusone.github.io/blog/2026/04/24/define-static-array/
1•jandeboevrie•2m ago•0 comments

Stop Celebrating Ubuntu 26.04 – It's a Disaster [video]

https://www.youtube.com/watch?v=tG2ZMvBT8W4
1•muterad_murilax•6m ago•0 comments

Why isn't it possible to play a fun and serious game of poker not for money?

https://statmodeling.stat.columbia.edu/2026/04/26/why-isnt-it-possible-to-play-a-fun-and-serious-...
1•Tomte•6m ago•0 comments

You Can't Automate Presence

https://codeplusconduct.substack.com/p/you-cant-automate-presence
1•mooreds•8m ago•0 comments

Thousands of EV Car Leases Are Ending Soon, Giving Buyers an Affordable Option

https://www.nytimes.com/2026/04/25/business/electric-vehicles-used-leases.html
1•mooreds•9m ago•0 comments

Ask HN: Self hosted PostgreSQL vs. RDS managed

2•mikeinfra•10m ago•0 comments

Commodore 4064 Repair – C64 in a PET style case

http://blog.tynemouthsoftware.co.uk/2026/04/commodore-4064-repair-c64-in-pet-style-case.html
1•razorbeamz•10m ago•0 comments

Octopal: Powerful AI agents without blind trust

https://octopal.ca/
1•pmbstyle•11m ago•1 comments

Your Agent is a Distributed System (and fails like one)

https://maheshba.bitbucket.io/blog/2026/04/24/agentfailures.html
1•Malp•14m ago•0 comments

Show HN: Homebutler – See and manage your homelab from one Go binary

https://homebutler.dev
1•swq115•14m ago•0 comments

Python and C killer seekers rejoice

1•kvthweatt•17m ago•0 comments

A View from the Floor of the White House Correspondents' Dinner

https://dandiamond.substack.com/p/a-view-from-the-floor-of-the-white
1•_tk_•18m ago•0 comments

I work 10 hours daily without deadlines or schedules

https://orchidfiles.com/building-without-booking-time/
1•theorchid•19m ago•0 comments

Disneyland guests can opt out of facial recognition at park entrances

https://thehill.com/policy/technology/5847024-disneyland-facial-recognition-entry-gates-opt-out/
1•thunderbong•21m ago•0 comments

Gestionale magazzino su misura: come ho digitalizzato un'azienda di ricambi

https://donatodelpeschio.it/blog/gestionale-magazzino-pmi-ricambi-automotive-napoli-laravel
1•donnyBlanko•22m ago•0 comments

The LinkedIn Spyware Situation [video]

https://www.youtube.com/watch?v=mHj6IvBmlpU
1•mannanj•27m ago•0 comments

Books for People with Print Disabilities

https://archive.org/details/printdisabled
2•bookofjoe•29m ago•0 comments

Has AI Changed the Course of Drug Development? Three Years Later

https://divingintogeneticsandgenomics.com/post/has-ai-changed-drug-development-3-years-later/
2•YeGoblynQueenne•29m ago•0 comments

Why Every AI-Coded App Is an Island

https://rootcx.com/blog/why-every-ai-coded-app-is-an-island
1•seyz•30m ago•0 comments

The AI Question That No AI Person Asks [video]

https://www.youtube.com/watch?v=o9Vbvp4awQU
1•vermilingua•31m ago•0 comments

CPU Has More Registers Than You'd Think

https://fp32.org/register_renaming.html
1•birdculture•34m ago•0 comments

The Fastest Linux Timestamps

https://www.hmpcabral.com/2026/04/26/the-fastest-linux-timestamps/
1•hmpc•34m ago•0 comments

Ask HN: Md PhD

1•Sxouterred•34m ago•0 comments

QNX on the Commodore 900 – Raiders of the lost hard drive [video]

https://archive.fosdem.org/2025/schedule/event/fosdem-2025-5479-raiders-of-the-lost-hard-drive/
3•rbanffy•39m ago•0 comments

At least 10 people tied to sensitive US research have died or disappeared

https://www.cnn.com/2026/04/21/us/deaths-disappearances-scientists-investigation
21•acdanger•39m ago•18 comments

National Science Board members told by Trump administration they were terminated

https://thehill.com/policy/energy-environment/5849158-national-science-board-members-terminated-t...
2•pera•43m ago•0 comments

DeepSeek V4 plays Go on a 9x9 board

https://chat.deepseek.com/share/95z1fr6y7rj4q5nmd0
2•morpheos137•46m ago•2 comments

Innovative Captcha Solutions for Reality of Modern Attacks

https://github.com/mCaptcha/mCaptcha/discussions/199
1•paulnpace•47m ago•0 comments

Microsoft Reportedly Looking at Rebasing Azure Linux on Fedora

https://www.phoronix.com/news/MS-Azure-Linux-Fedora-Based
6•rbanffy•47m ago•0 comments

Build Yourself Flowers

https://vickiboykis.com/2026/04/20/build-yourself-flowers/
1•mooreds•48m ago•0 comments