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!

The Hidden Software Variable in UAS Performance

https://foxandlion.pub/analysis/the-hidden-software-variable-in-uas-performance
3•agrantic•1m ago•0 comments

A malleable IDE for typed knowledge

https://github.com/arsumbris/arsumbris
1•arscontexta•5m ago•1 comments

What are the five pros and cons of artificial intelligence?

https://www.aljazeera.com/news/2026/9/13/what-are-the-five-pros-and-cons-of-artificial-intelligence
4•jethronethro•8m ago•0 comments

The Human Use of Human Beings - Norbert Wiener (1989) [pdf]

https://monoskop.org/images/6/60/Wiener_Norbert_The_Human_Use_of_Human_Beings_1989.pdf
4•andsoitis•11m ago•0 comments

I think of time as an arrow, so I made a linear calendar

https://theawesomecalendar.com/en
1•maksonam•13m ago•3 comments

Expanding model choice in Copilot with Grok

https://techcommunity.microsoft.com/blog/microsoft-copilot-blog/expanding-model-choice-in-copilot...
2•andsoitis•15m ago•0 comments

Ask HN: Is there an emerging pattern for NEGATIVESKILLS.md files?

1•mehmetoguzderin•16m ago•1 comments

BluBeam Pro

https://blubeam.pro/
1•alexawilder•18m ago•1 comments

DuckDB 2.0 Pushes Whole Queries Through ADBC–10–11× Faster on PostgreSQL

https://query.farm/blog/one-query-one-arrow-stream-adbc-duckdb-2/
1•rustyconover•26m ago•0 comments

Why is privacy so hard?

https://cacm.acm.org/blogcacm/why-is-privacy-so-hard/
4•andsoitis•26m ago•3 comments

Ask HN: In The Matrix, the bad guys are the 'agents'. Coincidence? Clairvoyance?

4•spottedmarley•26m ago•1 comments

Show HN: SF Title Alert

https://sftitlealert.com
1•arkadiyt•28m ago•0 comments

What Is Wrong with Nike?

https://www.s-1.site/s/the-middle-market-focus-verticals.html
1•anthonybourdain•28m ago•0 comments

SCH: An affordable sandbox for Coding Agents in your AWS account

https://c-daniele.github.io/en/posts/2026-09-07-close-the-lid-serverless-coding-harness/
1•cdani•28m ago•0 comments

The Outrageous Collapse of a 'Montessori Ponzi'

https://www.nytimes.com/2026/09/13/business/guidepost-montessori-higher-ground-education-ray-girn...
3•sciurus•32m ago•1 comments

Claude Fable 5.1 Solves the Cyphral Distich, a 370-year-old cipher

https://www.vals.ai/blogs/fable-solves-cyphral-distich
9•u1hcw9nx•33m ago•0 comments

Veilid is an open-source, peer-to-peer application framework

https://veilid.com/
4•Bluestein•35m ago•0 comments

AI Is Destroying the World

https://gornak40.org/blog/ai-is-destroying-the-world.html
4•Gornak40•35m ago•0 comments

BitBang: End-to-End Verified, Browser-Native Remote Access

https://github.com/richlegrand/bitbang/blob/main/whitepaper.md
4•Bluestein•40m ago•0 comments

Terminal multiplexer and experimental Wayland compositor for browsers

https://blit.sh/
4•williamstein•41m ago•0 comments

Claude Fable 5.1 cracked a cipher that has survived for 370 years in 40 min.

https://osintsights.com/ai-deciphers-370-year-old-cipher-in-minutes
3•u1hcw9nx•43m ago•2 comments

Two cheers (out of three) for Dario Amodei

https://garymarcus.substack.com/p/two-cheers-out-of-three-for-dario
4•chmaynard•49m ago•0 comments

Hikers guided by AI stranded on Mt. Shasta [video]

https://www.youtube.com/watch?v=OlwxEnN50e4
1•jumploops•53m ago•0 comments

Sam Altman pitches utilities on AI grid defense

https://www.politico.com/news/2026/09/10/sam-altman-pitches-utilities-on-ai-grid-defense-01070425
3•cdrnsf•54m ago•1 comments

Jason Arday and the Corruption of Science

https://chronicleofhighereducation.substack.com/p/jason-arday-and-the-corruption-of
3•kgwgk•54m ago•0 comments

OpenAI faces Senate probe into Hugging Face breach

https://www.axios.com/2026/09/10/openai-hugging-face-senate-investigation-hawley
3•reasonableklout•55m ago•0 comments

Go Implementation of WireGuard

https://github.com/WireGuard/wireguard-go
2•Bluestein•56m ago•0 comments

Show HN: Opine, a public polling website with maps

https://opinepolls.com/
1•superphotonic•56m ago•0 comments

YC: Why the Harness Matters More Than the Model [video]

https://www.youtube.com/watch?v=n9xKblqyQ28
1•mgl•1h ago•0 comments

How Much Could Europe Pay for U.S. Weapons for Ukraine?

https://www.thepricer.org/how-much-could-europe-pay-for-u-s-weapons-for-ukraine/
1•cinderelacinder•1h ago•1 comments