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!

Show HN: HackerTube for Apple TV. Videos HN Recommends, on Your TV

1•jnaina•1m ago•0 comments

UK Business Births and Deaths

https://www.365finance.co.uk/business-births-and-deaths/
1•robtherobber•5m ago•0 comments

RFC 1149: Standard for the transmission of IP datagrams on avian carriers

https://www.rfc-editor.org/info/rfc1149/
1•JumpCrisscross•6m ago•0 comments

Show HN: Sortaballs – alternative modes for classic sort ball puzzle

https://sortaballs.vercel.app
1•self_refactor•8m ago•0 comments

The future in old computer magazines (1984–2004)

https://tomorrowasusual.substack.com/p/blast-from-the-past-the-future-in
2•tudell•9m ago•1 comments

Show HN: Mistake Trainer – Spaced repetition from your own Lichess games

https://mistake-trainer.pages.dev/
1•pandigital•9m ago•0 comments

Security doesn't (always) have to be so fucking annoying

https://joshua.hu/security-useless-changes-theatre
1•subset•11m ago•0 comments

Hackers raised freezer temperature at Estonian supermarket chain to +50°C

https://news.err.ee/1610183296/hackers-raised-freezer-temperature-at-estonian-supermarket-chain-t...
4•vintagedave•13m ago•0 comments

Aletheia, a Fake News Detector

https://hellenicdev.substack.com/p/hellenicdev-newsletter-009
4•hsoc•14m ago•1 comments

Querying HackerTube, HackerBooks and Wikihack Directly with DuckDB/Hugging Face

https://www.ssp.sh/brain/querying-hackernews-with-duckdb-directly/
1•zazuke•15m ago•0 comments

Are you sure it was North Korea?

https://nk-ultra.com
1•splintersio•16m ago•1 comments

Minimax-Converter Toolbox

https://minimax-converter.com/
1•justvlaaaad•19m ago•1 comments

Redlib discussion: Reddit has decided to force everyone to log in

https://github.com/redlib-org/redlib/issues/609
4•probably_wrong•20m ago•0 comments

Prompt Engineering Is Dead. What Separates a Toy from a Product

https://towardsdev.com/prompt-engineering-is-dead-system-prompt-architecture-is-what-separates-a-...
1•cheikhdev•22m ago•0 comments

Show HN: Knock – stop Claude Code burning tokens exploring big codebases

https://github.com/HasanGilani/knock
1•HasanGilani•22m ago•0 comments

Cyberattack on Fridges in Ireland

https://www.irishtimes.com/technology/data-security/2026/11/02/supervalu-removes-frozen-and-chill...
1•johnflan•23m ago•0 comments

Context Anxiety: How AI Agents Panic About Their Perceived Context Windows

https://inkeep.com/blog/context-anxiety
1•ankitg12•23m ago•0 comments

Ten Surprises in Google Workspace's Sharing Model

https://deployed-ai.io/blog/google-workspace-sharing-surprises/
1•danielklnstein•29m ago•0 comments

TinyContext Guide – How to Add Long-Term Memory to an AI Agent (Step by Step)

https://tinysuite.dev/blog/how-to-add-memory-to-ai-agent/
1•MarcBuilds01•32m ago•0 comments

Show HN: Individual podcast episodes as recommended by HN

https://sunmer.github.io/podcast-radio/
2•podnami•38m ago•1 comments

Replacing the Stadia cloud with a server on my LAN

https://jkfran.com/stadia-controller-revival-stadiacast/
2•jkfran•38m ago•0 comments

ReBirth RB-338 Reimplementation

https://github.com/pingw33n/openrb-338
2•larodi•41m ago•2 comments

Show HN: Take a break, play some puzzles

https://gridmino.com/
2•marko-projects•43m ago•2 comments

France's Weird Per-Gigabyte Data Tax Could Cost VLC over €1M a Year

https://itsfoss.com/news/vlc-outrage-at-french-internet-tax/
4•giuliomagnifico•44m ago•3 comments

Ask HN: Do you think AI has now disrupted math more than it did programming?

3•theanonymousone•44m ago•1 comments

The Commanding Heights music video in the style of 'The Streets'

https://twitter.com/recborg/status/2117184941989511285
1•mkrecny•45m ago•1 comments

Hacker Pager: an ESP32 and SX1262 LoRa wireless development platform

https://www.hackerpager.net/
1•bananascholar•46m ago•0 comments

Seventy Years of Allen Ginsberg's 'Howl'

https://thedispatch.com/article/allen-ginsberg-howl-counterculture/
1•tkgally•46m ago•0 comments

Sam Altman on Local AI

https://www.pcmag.com/news/sam-altman-suggests-running-ai-locally-is-a-waste-of-memory
3•bozdemir•47m ago•4 comments

AI Knittaker

https://www.visiticeland.com/aiknittakers/
1•falcor84•48m ago•0 comments