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!

Being a Junior Scientist in the Current Administration

https://mirawelner.com/posts/junior.html
1•mirawelner•50s ago•0 comments

Show HN: SnatchHub – An App That Solves The "who's using staging?" Problem

https://getsnatchhub.com
2•boothemoo•4m ago•0 comments

Specs for Quantum Processor Design

https://drive.google.com/file/d/1tsVV7tPQks3x70wMoJJYhuywSboaxKs0/view?usp=drivesdk
1•GeometryKernel•9m ago•0 comments

I want a better [build] action graph serialization

https://jyn.dev/i-want-a-better-action-graph-serialization/
1•jackschu•12m ago•0 comments

UltraDAG – Sub-4MB blockchain full node in Rust

https://github.com/UltraDAGcom/core
1•johanmichel•13m ago•0 comments

Designing Reproducible Test Environments for RPPG

https://www.mdpi.com/3042-7886/2/2/3
1•PaulHoule•15m ago•0 comments

A shared state system for plugins (Rust)

https://ahoyiski.neocities.org/posts/shared-state/
2•itzlambda•16m ago•0 comments

Fun with an indecisive AI coding agent

https://benhoyt.com/writings/indecisive-ai-agent/
1•ingve•17m ago•0 comments

Canada revokes crypto firms' registrations

https://www.icij.org/investigations/coin-laundry/canada-revokes-dozens-of-crypto-firms-registrati...
3•gnabgib•17m ago•0 comments

I ran Gemma 4 as a local model in Codex CLI

https://blog.danielvaughan.com/i-ran-gemma-4-as-a-local-model-in-codex-cli-7fda754dc0d4
4•dvaughan•18m ago•0 comments

I audited Garry's website after he bragged about 37K LOC/day

https://twitter.com/Gregorein/status/2038953944475472316
2•medalblue•18m ago•0 comments

Tips to Give Effective Employee Feedback

https://effortbox.com/blog/tips-to-give-effective-and-constrictive-employee-feedback/
2•andreylangovoy•19m ago•0 comments

Running Gemma 4 Locally with the Codex CLI: What Works

https://codex.danielvaughan.com/2026/04/10/gemma-4-local-model-codex-cli-setup-guide/
1•dvaughan•20m ago•0 comments

Show HN: walnut – Error tracking AI agents

https://github.com/bilalg1/walnut
1•bgwmj•23m ago•0 comments

I built autonomous AI with memory and sleep, and it had nightmares

https://negrenavarro.me/blog/lana
2•isitdan•25m ago•0 comments

FIY – A general purpose federation protocol

https://fiy.to/
2•mrunix•28m ago•0 comments

Gaming Film and Sponsors

https://rockyhaag.substack.com/p/remember-the-breakfast-club
1•maxalias•29m ago•0 comments

Uncharted island soon to appear on nautical charts

https://www.awi.de/en/about-us/service/press/single-view/unkartierte-insel-demnaechst-auf-seekart...
3•tannhaeuser•31m ago•1 comments

Israeli strike kills infant girl in south Lebanon during father's funeral

https://www.reuters.com/world/middle-east/israeli-strike-kills-infant-girl-south-lebanon-during-f...
47•lr0•31m ago•7 comments

Physicists zero in on the mass of the fundamental W boson particle

https://news.mit.edu/2026/physicists-report-mass-fundamental-w-boson-particle-0408
3•01-_-•33m ago•0 comments

Show HN: Redactify – macOS/iOS app to redact sensitive data before using LLMs

3•ladino•33m ago•0 comments

The Maintainers

https://themaintainers.org/
1•gpvos•34m ago•0 comments

Navy to use underwater drones to help clear Iranian mines from Strait of Hormuz

https://defensescoop.com/2026/04/11/strait-of-hormuz-mine-clearance-navy-centcom-underwater-drones/
3•delichon•38m ago•0 comments

Solar panels are creating an unexpected effect by forming rainfall clouds

https://www.ecoportal.net/en/solar-panels-are-creating-rain-clouds/19854/
4•rbanffy•39m ago•1 comments

Nouns Agentic – Enabling AI Agents to Buy Nouns and Participate

https://noun.wtf/grants/8
1•developerfred•42m ago•0 comments

Yuri's Night: commemoration of Gagarin as the first human in space 12 April

https://yurisnight.net/
1•thinkingemote•42m ago•0 comments

Springdrift: An Auditable Persistent Runtime for LLM Agents

https://arxiv.org/abs/2604.04660
1•s_brady•43m ago•0 comments

Slightly Against the Expanding Circle

https://pelorus.substack.com/p/slightly-against-the-expanding-circle
2•paulpauper•43m ago•1 comments

Tahoe TCP Overflow Bug

https://mjtsai.com/blog/2026/04/07/tahoe-tcp-overflow-bug/
2•rbanffy•44m ago•1 comments

A GitHub agentic workflow

https://blog.frankel.ch/agentic-github-workflows/
1•saikatsg•44m ago•0 comments