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!

El Nino Live

https://www.elninolive.com
1•Noaidi•3m ago•1 comments

Voice mode for Claude Code. Claude Code now answers you like a real person

https://heyski.io/
2•pattern-ai•4m ago•0 comments

Extinct toad from the Ice Age discovered at Los Angeles' La Brea Tar Pits

https://www.cnn.com/2026/08/05/science/ice-age-toad-la-brea-pits
1•1659447091•4m ago•0 comments

DuckDuckGo launches glasses and promises they're private

https://manualdousuario.net/en/duckduckgo-oculos-de-sol-normais/
2•rpgbr•5m ago•0 comments

The New DeepSeek Moment

https://cuecloud.substack.com/p/the-new-deepseek-moment-and-what
1•krav-sales•5m ago•0 comments

The Hidden Tax of Memory in Model Inference

https://cuecloud.substack.com/p/the-hidden-tax-of-memory-in-model
1•krav-sales•6m ago•0 comments

Literary Sins

https://www.thedial.world/articles/news/seven-literary-sins
1•lermontov•7m ago•0 comments

Free book (software development in the AI era)

https://books.kodel.com.br/pt-br/livros/software-development-ia-era/
1•JCKodel•11m ago•0 comments

Django 6.1 Released

https://docs.djangoproject.com/en/6.1/releases/6.1/
2•tony•11m ago•0 comments

AI Agents for Healthcare?

https://www.youtube.com/watch?v=XVgedf0TzYc
1•karissafho•15m ago•0 comments

Wikipedia Turned on Its Volunteers. Now It's Coming for Its Workers

https://www.quippd.com/writing/2026/08/04/wikipedia-turned-on-its-volunteers-now-its-coming-for-i...
2•cdrnsf•17m ago•0 comments

Your phone is the most intricate machine you've ever held. Let's take it apart.

https://everythingmachine.io/phone/
1•bookofjoe•18m ago•0 comments

Saudi wealth fund and Jared Kushner's Affinity finalize $55B EA Sports deal

https://www.cnbc.com/2026/08/05/saudi-wealth-fund-jared-kushner-ea-sports-deal.html
2•debo_•19m ago•0 comments

Show HN: Emporia Research

https://www.emporiaresearch.com/
1•not_wowinter14•20m ago•0 comments

STMicroelectronics profit misses estimates, shares fall 14%

https://www.reuters.com/technology/stmicros-q3-revenue-view-slightly-lags-estimates-even-chip-dem...
1•measurablefunc•21m ago•0 comments

Physicist Rigged His Pet Hamster's Wheel to Strava. It Runs Far Every Night

https://www.runnersworld.com/news/a73355106/hamster-wheel-strava-running/
2•aanet•23m ago•1 comments

Balanced polymorphism underlies the rhythm of daily sex alternation in avocado

https://www.pnas.org/doi/10.1073/pnas.2606876123#executive-summary-abstract
1•impish9208•24m ago•0 comments

A Vision for Cargo

https://epage.github.io/blog/2026/08/cargo-vision/
1•shalupov•26m ago•0 comments

L.A. County Fire Department – Eaton Fire Investigation Report

https://www.documentcloud.org/documents/28535082-la-county-fire-department-eaton-fire-investigati...
1•hotchip•28m ago•0 comments

Slime Without Plugins Using Kitty

https://lee-phillips.org/kittyslime/
1•leephillips•31m ago•0 comments

A Gallery of Installing from .dmg

https://unsung.aresluna.org/as-a-windows-user-its-a-very-surreal-way-to-install-a-program/
2•colinprince•33m ago•0 comments

Alexa+ Is a Buggy Embarrassment

https://pogueman.substack.com/p/alexa-is-a-buggy-embarrassment
1•colinprince•34m ago•0 comments

At-Communities #1: The Concierge, the Vault, and the Fuck-Ass Astro Website

https://www.essentialrandomness.com/posts/the-concierge-and-the-vault
1•erlend_sh•36m ago•0 comments

The Title Cards in Blade Runner Are Fucking Amazing

https://randsinrepose.com/archives/blade-runner-title-cards/
17•ExMachina73•38m ago•2 comments

Water to Go – Rewrite Any Project to Go with Any AI Coder

https://github.com/JohnVictorCrown/WaterToGo
1•john_victor•39m ago•2 comments

Show HN: A self-improvement feedback loop for AI agent skills

https://github.com/Carlo1911/skill-evolution
2•Carlo1911•39m ago•0 comments

The Price of Love Is Measured in Tokens

https://kintsugikitten89.substack.com/p/the-price-of-love-is-measured-in
1•toilet•40m ago•1 comments

Nvidia's Vera Whitepaper Has a Thread Loose

https://chipsandcheese.com/p/nvidias-vera-whitepaper-has-a-thread
16•pella•43m ago•1 comments

Sovumi – a crowd-prediction game that needs honest answers before it works

https://play.sovumi.com/volunteer
1•techartdev•43m ago•0 comments

Gravitre, an MCP server with memory that tells you what it didn't do

https://gravitre.app/
1•cesarbohorquezj•50m ago•0 comments