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!

A visual explainer on how agent harnesses work

https://muhammadraza.me/2026/what-is-an-agent-harness/
2•mraza007•3m ago•0 comments

Putting the trace before the loop: observability-first AI agent design

https://dbln.me/blog/building-an-ai-agent-observability-first
1•dragosbln•4m ago•0 comments

Ask HN: How can I get a job as a software developer in Qatar?

2•roschdal•5m ago•0 comments

Graphing My Sleep Schedule

https://char.lt/blog/2026/09/non24swd/
2•hellerve•9m ago•0 comments

Can You Beat the Button?

https://elbutton.netlify.app/
3•levario•17m ago•0 comments

The post-Enron auditor reforms are being rolled back

https://www.ft.com/content/2ef0c2fa-9626-4785-94cd-65fbf5be5741
2•JumpCrisscross•21m ago•0 comments

WarpBuild: Fast CI for Humans and Agents

https://www.warpbuild.com
2•handfuloflight•21m ago•0 comments

V2Ray

https://en.wikipedia.org/wiki/V2Ray
2•oriettaxx•25m ago•0 comments

Management is forcing us to use AI

3•aksjfveoq•32m ago•0 comments

Wallaby – Postgres CDC Engine for .NET

https://wallabycdc.net/
3•Hawxy•33m ago•0 comments

Open Annihilation – Spent the GDP of a Small Nation Remaking a Classic 90s Game

https://press.coreprime.net/
4•sitsitstay•35m ago•1 comments

Dopamine sites mimic shopping's thrill without paying

https://www.bbc.com/news/articles/cwn741v5rdpxo
1•chr15m•35m ago•0 comments

Neo Geo Pocket

https://en.wikipedia.org/wiki/Neo_Geo_Pocket
1•tosh•36m ago•0 comments

A tiny mascot that thinks, Ollama cloud and Kokoro STT now included

https://medium.com/@vektormemory/vektor-v1-9-7-is-live-a-tiny-mascot-that-thinks-ollama-cloud-inf...
1•vektormemory•39m ago•1 comments

What makes Lisp difficult to read?

https://paultm.nl/paren-thesis
1•nsm•39m ago•0 comments

Drilling starts on a seafloor geothermal well off Oregon

https://spectrum.ieee.org/offshore-geothermal-energy
1•geox•40m ago•0 comments

How to Build a Bain-Style Consulting Slides with 10 Decision-Making Frameworks

https://medium.com/@2315610426/how-to-build-a-bain-style-consulting-powerpoint-with-10-decision-m...
1•chenxi030826•43m ago•0 comments

Project Cyan

https://www.lispm.net/projects/cyan/
1•karlgkk•43m ago•1 comments

Show HN: Northstar web browser 1.0.11 released

3•roschdal•45m ago•0 comments

A mysterious organ in the sperm whale's head gives it the power to sink ships

https://www.bbc.com/future/article/20260923-the-science-behind-moby-dick-the-prized-head-of-the-s...
1•1659447091•46m ago•0 comments

The Cosmic latte is FFF8E7

https://en.wikipedia.org/wiki/Cosmic_latte
1•_caw•48m ago•1 comments

'Breaking Bad' Became the Best Show of the 21st Century [video]

https://www.youtube.com/watch?v=55iwZR_xCDQ
1•handfuloflight•53m ago•0 comments

A glimpse into life inside a child prison in France

https://www.theguardian.com/global-development/2026/sep/28/i-sleep-with-all-my-clothes-on-to-prot...
1•sandebert•55m ago•0 comments

Flowlight – open-source network visibility for AI agents on macOS

https://flowlight.xinbetween.com/
2•blessdyb•57m ago•1 comments

Fframes – GPU first video vibe coding framework with 5 years histroy

https://fframes.studio/
1•neogoose•57m ago•0 comments

Foundations of Large Language Models

https://arxiv.org/abs/2501.09223
2•rramadass•1h ago•1 comments

Turning Failure Postmortems into SRE-Benchmark Problems

https://www.sregym.com/blog/postmortems-to-sre-benchmarks
1•matt_d•1h ago•0 comments

Looking for Things to Do in Bangalore?

https://www.tumblr.com/breakout310/825892924988522496/looking-for-exciting-things-to-do-in-bangalore
1•breakoutescaper•1h ago•0 comments

SpaceX – Starship Flight 14

https://www.spacex.com/launches/starship-flight-14
4•duck•1h ago•2 comments

War Bros Didn't Always Rule Silicon Valley

https://www.wired.com/story/war-bros-didnt-always-rule-silicon-valley/
2•sgustard•1h ago•0 comments