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!

Elevator Music [video]

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

Jiffies: The Heartbeat of the Linux Operating System

https://blogs.oracle.com/linux/jiffies-the-heartbeat-of-the-linux-operating-system
1•ankitg12•3m ago•0 comments

mmiotic: Latency x-ray for undocumented hardware

https://github.com/xoreaxeaxeax/mmiotic
1•matt_d•5m ago•0 comments

Hoover Dam Is Losing Power as the Colorado River Crisis Deepens

https://www.popularmechanics.com/science/energy/a73357713/hoover-dam-power-crisis/
1•tortilla•5m ago•0 comments

MonoMap – Minimalist mind mapping app

https://monomap.app/
1•saturn5k•6m ago•0 comments

We use prototyping only for storytelling

https://app.productnow.ai/public/doc/dbxb-jsqz-jven
1•kadhirvelm•6m ago•1 comments

US hires over 2k video gamers as air traffic controllers

https://www.cbsnews.com/news/video-gamer-air-traffic-controllers-faa-recruitment-sean-duffy/
1•shagie•7m ago•0 comments

AI Adoption Is a Myth

https://twitter.com/vasuman/status/2085806422072418632
1•gmays•10m ago•0 comments

To Improve Student Mental Health, University of Michigan Eases Grading

https://www.nytimes.com/2026/08/11/us/university-michigan-grades-freshmen-pass-fail.html
1•ilamont•11m ago•0 comments

How Distressed Are Consumers? Reconciling Credit Card Delinquency Measures

https://libertystreeteconomics.newyorkfed.org/2026/08/how-distressed-are-consumers-reconciling-di...
1•jnord•12m ago•0 comments

Dark mode toggles: two states are enough

https://lea.verou.me/blog/2026/dark-mode-toggles/
1•birdculture•13m ago•0 comments

Chrome Manifest V2 extensions stop working August 31 – what breaks

https://news.ycombinator.com/submit
1•FrontBuffer_FB•14m ago•0 comments

2026 Solar Eclipse Airbnb effect

https://www.airroi.com/blog/eclipse-2026-spain-iceland-airbnb-occupancy
1•airjason•14m ago•0 comments

Japanese authorities use new tool to identify initial torrent uploaders

https://www.tomshardware.com/tech-industry/cyber-security/initial-seeder-on-popular-anime-torrent...
1•debo_•15m ago•0 comments

Do-178B

https://en.wikipedia.org/wiki/DO-178B
1•gregsadetsky•18m ago•0 comments

GB300 DGX Station: What 748GB of Coherent Memory Buys

https://www.gpupartner.com/blog/gb300-dgx-station-what-748gb-actually-buys
1•Retell15•18m ago•0 comments

A guided tour of Terraform state, hosted modules, and HCL in Pulumi

https://www.pulumi.com/blog/terraform-to-pulumi-cloud-hands-on/
1•cnunciato•18m ago•0 comments

Jaithon 3, a fast programming language with the perfect syntax

https://github.com/abhiramasonny/jaithon
1•AbhiramaVS•19m ago•1 comments

The Unseen Delta: Characterizing the Compiler Optimization Landscape

https://arxiv.org/abs/2608.09530
1•matt_d•19m ago•0 comments

Digital Waste

https://store.steampowered.com/app/4895540/Digital_Waste/
1•debo_•20m ago•0 comments

ICE plans to give officers gloves that can deliver painful electric shocks

https://apnews.com/article/ice-electric-shock-gloves-85ff746d3e0ee5f39e7a9a3f1f576252
3•petethomas•21m ago•0 comments

SecretSpec 0.19: Moving and importing secrets between providers

https://secretspec.dev/blog/secretspec-0-19-moving-and-importing-secrets-between-providers/
1•domenkozar•21m ago•0 comments

Show HN: Frontier.fast – Help push the frontier of LLM speed forward

https://frontier.fast/
1•carsenk•22m ago•0 comments

Proofs and Prompts

https://proofsandprompts.com/
1•pykello•26m ago•0 comments

MySQL-operator helm chart breaks deployments by only keeping latest version

1•meldafrawi•26m ago•0 comments

Behold the "glueball," a new form of matter

https://www.science.org/content/article/behold-glueball-strange-new-form-matter
1•sbulaev•26m ago•0 comments

Show HN: Waraki Music Player – FOSS seamless self-hosted local syncing

https://ktp.nz/waraki/index.html
1•majicDave•29m ago•0 comments

Cineplex CEO Says Gen Z Will Go to the Movies: Tired of Looking at Small Screens

https://www.hollywoodreporter.com/business/business-news/cineplex-ceo-says-gen-z-is-ready-to-go-t...
1•randycupertino•32m ago•0 comments

Don't Stall Me Now: Hiding Memory Latency in eBPF

https://dl.acm.org/doi/10.1145/3789240.3829175
2•matt_d•34m ago•0 comments

LLM Model-Swapping Trick Can Expose AI Reasoning Traces

https://ai-updates.net/model-swapping-exposes-ai-reasoning-traces/
2•ashurandi•35m ago•0 comments