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!

GrapheneOS Is Coming to Motorola Phones Next Year

https://lifehacker.com/tech/graphene-os-motorola-phones
1•mdp2021•6m ago•0 comments

A minimal implementation of LLM output watermarking

https://github.com/berba-q/gpt-watermark
1•berba-q•15m ago•1 comments

What "Traceable Lineage" Requires: A Teardown of the FBI TSC AI Sources Sought

https://zatona.dev/blog/fbi-tsc-traceable-lineage
2•dzatona•16m ago•0 comments

'Never seen this level of objection': Scotland pushes back against datacentres

https://www.theguardian.com/uk-news/2026/aug/25/never-seen-this-level-of-objection-scotland-pushe...
2•ndsipa_pomu•18m ago•0 comments

Tentris: A high-performance, disk-based RDF graph database

https://tentris.io/
1•sigalor•19m ago•0 comments

Can a blog post be handwritten?

https://diggingforfire.blog/posts/can-a-blog-post-be-handwritten/
2•birdculture•20m ago•0 comments

Who Cares About the Shrimp?

https://joinreboot.org/p/who-cares-about-the-shrimp
1•raybb•21m ago•0 comments

Show HN: I built self-hosted deployment automation tool for Windows and IIS

https://fdeploy.com/
1•dt3ft•21m ago•0 comments

Do You Still Need to Read AI Code?

https://adamtornhill.substack.com/p/controlling-the-uncertainty-machine
2•abrbhat•23m ago•0 comments

U.S. Rescinds Syria's Designation as a State Sponsor of Terrorism

https://www.state.gov/releases/office-of-the-spokesperson/2026/08/rescission-of-syrias-designatio...
5•x7ikmet•24m ago•0 comments

Online PS3 trophies have arrived on PC

https://blog.rpcs3.net/2026/08/25/online-ps3-trophies-support-has-arrived-on-pc/
1•cortex6429•26m ago•0 comments

A Tool to Create Moodboards

https://eightpotions.com/
1•yelboudouri•29m ago•0 comments

Ask HN: What eval harness holds up in practice, and what is still missing?

1•kiops•29m ago•0 comments

I should write more shell scripts than I do

https://utcc.utoronto.ca/~cks/space/blog/unix/WriteMoreShellScripts
1•ingve•31m ago•0 comments

Open-sourced FeelFX – a Vision+Speech powered motion graphics engine for video

https://feel-fx.vercel.app/
1•rewant•32m ago•1 comments

Free-AI-Tools-Hub.com Launch

1•horitechsolutio•33m ago•0 comments

DeepSeek V4 Flash Vision Intelligence, Performance and Price Analysis

https://artificialanalysis.ai/models/deepseek-v4-flash-vision
1•theanonymousone•37m ago•0 comments

88x31 Badge Creator

https://dowdy.dev/utilities/badge-maker/
2•Peacefulz•37m ago•1 comments

How to Report a Bug to Microsoft (2017)

https://www.schveiguy.com/blog/2017/05/how-to-report-a-bug-to-microsoft/
2•thunderbong•38m ago•0 comments

Calendly WhatsApp integration on free Calendly plan

2•pocha•39m ago•1 comments

Exo: A recursive agent harness that can modify itself at runtime

https://github.com/exoharness/exo
1•lbw1215•39m ago•0 comments

The Download: kids outlearning AI, and space travel agents

https://www.technologyreview.com/2026/08/24/1142863/the-download-kids-outlearning-ai-space-travel...
1•joozio•40m ago•0 comments

Show HN: Today's Fortune Experience with Three.js

https://omikuji.hyungyu.app/
1•gusrb3164•44m ago•0 comments

CPU Shack – IBM PowerPC 615 x86 and PPC

https://www.cpushack.com/CIC/announce/1995/PowerPC615.html
2•rbanffy•46m ago•1 comments

Hot Chips 2026: IBM's first dual-ISA core

https://www.tomshardware.com/pc-components/cpus/ibms-first-dual-isa-core-natively-executes-arm-an...
1•rbanffy•46m ago•0 comments

Miraculin

https://en.wikipedia.org/wiki/Miraculin
2•soupspaces•47m ago•0 comments

Tiny World Model

https://paul.mou.dev/posts/2026-08-16-twm/
2•rcarmo•49m ago•0 comments

Built a Chrome extension to stop getting cut off by Claude

https://www.indiehackers.com/post/built-a-chrome-extension-to-stop-getting-cut-off-by-claude-70-u...
1•Anoop69_•50m ago•1 comments

The Flock on Your Block

https://flockonyourblock.com
3•tostrstrudel•54m ago•0 comments

Windows 95 released August 24, 1995

https://dfarq.homeip.net/happy-20th-birthday-to-windows-95/
2•giuliomagnifico•57m ago•0 comments