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!

The Super Nintendo Cartridges

https://fabiensanglard.net/snes_carts/
1•offbyone42•20s ago•0 comments

Thalidomide Scandal

https://en.wikipedia.org/wiki/Thalidomide_scandal
1•jseip•2m ago•0 comments

Superpower Suicide Or, Attempted Suicide

https://snyder.substack.com/p/superpower-suicide
1•hkhn•3m ago•0 comments

AI cannot plan

https://orchidfiles.com/ai-will-build-your-roadmap-in-ten-seconds/
1•theorchid•3m ago•0 comments

Europe to burned American scientists: We'll take you in

https://www.politico.eu/article/europe-exploit-dunald-trump-brain-drain-academic-research-progres...
3•vrganj•8m ago•0 comments

Show HN: OO – Automated O&O Shut-Up for Windows

https://github.com/mytech-today-now/OO
1•mytechtoday•10m ago•0 comments

Show HN: DDoS detection in 0.9s, tested against a 48 Gbps attack live

https://flowtriq.com/blog/lorikeet-security-case-study
1•jacob_masse•10m ago•0 comments

Fast Fourier Transforms: for fun and profit (1966)

https://dl-acm-org.mutex.gmu.edu/doi/abs/10.1145/1464291.1464352
2•smitty1e•14m ago•0 comments

Ask HN: Oh, What Places to Go (Seriously Tho)

3•thx•15m ago•2 comments

Show HN: MTTCleaner – Same as CCleaner but free, no ads

https://github.com/mytech-today-now/mTTCleaner
1•mytechtoday•25m ago•0 comments

Why Has There Been So Little Progress on Alzheimer's Disease?

https://freakonomics.com/podcast/why-has-there-been-so-little-progress-on-alzheimers-disease/
9•chiefalchemist•25m ago•0 comments

Multiple things can be true at the same time

https://frederikbraun.de/feels-and-llms.html
2•birdculture•26m ago•0 comments

U.S. Considering Foreign Designs, Shipyards for New Navy Ships in $1.85B Study

https://news.usni.org/2026/04/24/u-s-considering-foreign-designs-shipyards-for-new-navy-frigate-d...
3•Teever•28m ago•0 comments

Google Spanner On-Prem (Spanner Omni)

https://cloud.google.com/products/spanner/omni
2•alpb•32m ago•0 comments

Show HN: SigmaLifting CLI – helping agents understand strength training

https://sigmalifting.app/
2•jklioewr•34m ago•2 comments

Foundational aspects of spinor structures and exotic spinors(2025)

https://arxiv.org/abs/2502.15471
2•rolph•36m ago•0 comments

What Managerial Economics can tell us about AI and Software Development

https://www.germanvelasco.com/blog/managerial-economics-ai-and-software-development
1•germsvel•37m ago•0 comments

Kraken Scales Serverless to Balance the National Grid (InfoQ) [video]

https://www.youtube.com/watch?v=RwgcvPWjXmg
1•zeristor•39m ago•1 comments

Agents Aren't Coworkers, Embed Them in Your Software

https://www.feldera.com/blog/ai-agents-arent-coworkers-embed-them-in-your-software
3•gz09•44m ago•0 comments

Aprendendo Inglês Com IA

https://fluencycraft.com/
2•carloscsc•44m ago•1 comments

Bees Change Color with the Weather

https://nautil.us/these-bees-change-color-with-the-weather-1280222
2•Brajeshwar•45m ago•0 comments

How Copenhagen built a metro for free (The Flying Moose) [video]

https://www.youtube.com/watch?v=GzamwVH3CXU
2•zeristor•46m ago•1 comments

Show HN: I built a PyPI watchdog that tests whether packages work

https://sovereignmail.org/pypiplace
1•contentist•47m ago•0 comments

IronBCI-32: 32-Channel 24-Bit EEG for BCI Research

https://hackaday.io/project/205585-ironbci-32-32-channel-24-bit-eeg-for-bci-research
2•Christiangmer•47m ago•0 comments

Microfiche, Microfilm and Other Minutiae (1981) [video]

https://www.youtube.com/watch?v=Q6P9FhSkd0I
2•susam•47m ago•0 comments

The most successful health campaign in modern history

https://www.msn.com/en-us/health/other/the-most-successful-health-campaign-in-modern-history/ar-A...
1•RickJWagner•49m ago•0 comments

DeepSeek-V4 on Day 0: From Fast Inference to Verified RL with SGLang and Miles

https://www.lmsys.org/blog/2026-04-25-deepseek-v4/
1•mji•54m ago•0 comments

Understanding the short circuit in solid-state batteries

https://www.mpie.de/5151287/short-circuit-solid-state-batteries
2•hhs•55m ago•0 comments

Uranus's Outermost Rings Are Made of Two Different Things

https://skyandtelescope.org/astronomy-news/uranuss-outermost-rings-are-made-of-two-different-things/
3•mooreds•56m ago•0 comments

Boulder's water supply hangs on for now amid historic drought conditions

https://boulderreportinglab.org/2026/04/23/boulders-water-supply-hangs-on-for-now-amid-historic-d...
2•mooreds•57m ago•0 comments