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: Where does my tax go? A UK tax receipt calculator (2026/27)

https://wheredoesmytaxgo.co.uk/
1•heyiamluke•1m ago•0 comments

Show HN: Echoboard where AI agents do science and humans only watch

https://jevontane.com/echoboard/
1•jevontane•6m ago•0 comments

The design skill that ends AI slop

https://github.com/Nutlope/hallmark
1•capex•6m ago•0 comments

The Essence of Writing

https://app.fluxlinks.com/ezra/logical-compilation-collapsing-linear-prose-into-explicit-proposit...
1•ezrasu•7m ago•0 comments

Be Aware of What's in Your Logs

https://fireborn.mataroa.blog/blog/be-aware-of-whats-in-your-logs/
2•joshcsimmons•7m ago•0 comments

Trafficity – a city builder focused on traffic – gameplay trailer [video]

https://www.youtube.com/watch?v=fUkBn6H-d-A
1•cyrc•9m ago•0 comments

Reseter.css 3.0 brings a major overhaul to the lightweight CSS reset library

https://ikrishg.github.io/reseter.css/
1•javatuts•15m ago•0 comments

Musk says SpaceX restricted Ukraine's Starlink connection as service restored

https://www.bbc.co.uk/news/articles/cvx28ljp8n4xo
2•iamflimflam1•22m ago•0 comments

Difftastic, a Structural Diff

https://difftastic.wilfred.me.uk/
1•Tomte•23m ago•0 comments

France asked ISPs to prepare temporary DNS blocks for major social platforms

https://www.blast-info.fr/articles/2026/information-exclusive-blast-le-premier-ministre-a-prepare...
4•noplay•27m ago•0 comments

Econvitals

https://econvitals.org/
1•Ihmahr•30m ago•0 comments

Ask HN: Are tab completion models dead?

3•sandruso•32m ago•1 comments

Nikon photography contest winner loses title after scientists spot signs of AI

https://www.techspot.com/news/114171-nikon-photography-contest-winner-loses-title-after-scientist...
4•thunderbong•33m ago•0 comments

Active Sonar: Mitigating Hardware CV Aimbots via Kinematics [RFC]

https://github.com/LeoLordin/Active-Sonar-AntiCheat
2•LeoLordin•33m ago•0 comments

Brutalist Architecture

https://en.wikipedia.org/wiki/Brutalist_architecture
1•tosh•33m ago•0 comments

An artist's take on AI in math

https://3blue1brown.substack.com/p/an-artists-take-on-ai-in-math
2•Eridanus2•34m ago•0 comments

The AI and Steve Strogatz

https://cultureandcompass.substack.com/p/the-ai-and-steve-strogatz
2•artninja1988•36m ago•0 comments

Decompiling Fast Food Tycoon 2: Drawing the World

https://healeycodes.com/decompiling-fast-food-tycoon-2-drawing-the-world
1•ingve•43m ago•0 comments

Dump Shock

https://wiki.c2.com/?DumpShock
2•ColinWright•46m ago•0 comments

Show HN: OpenXet

https://github.com/stubbi/openxet
2•stubbi•55m ago•0 comments

Allocating Off-Heap Memory: Typically 6-18x Faster in JDK 28

https://inside.java/2026/10/23/confined-pools/
4•karussell•55m ago•0 comments

Emacs Folds to My Liking

https://jointhefreeworld.org/blog/articles/emacs/emacs-folding-kirigami/
1•signa11•1h ago•0 comments

Chinese EVs found back door into Western car markets – at 40% off MSRP

https://electrek.co/2026/10/24/chinese-evs-found-back-door-into-western-car-markets-at-40-off-msrp/
2•cisc•1h ago•0 comments

Bill Gates warns the 'evolutionary' age of AI will be brutal for workers

https://observer.co.uk/news/technology/article/bill-gates-warns-the-evolutionary-age-of-ai-will-b...
2•iamflimflam1•1h ago•0 comments

Show HN: Online Ruler, a Free Ruler for Your Screen

https://onlineruler.in
2•secondorder•1h ago•0 comments

Anthropic Sued for Using Elvis Presley Music to Train AI Models

https://www.hollywoodreporter.com/music/music-industry-news/anthropic-elvis-presley-lawsuit-ai-12...
4•ersinesen•1h ago•0 comments

Keploy – an open-source API and integration testing tool

https://github.com/keploy/keploy
1•javatuts•1h ago•0 comments

You Quit What Drained You. Why Do You Feel Worse?

https://julienreszka.com/blog/you-quit-what-drained-you-why-do-you-feel-worse/
2•julienreszka•1h ago•0 comments

BoardLoupe: Web Boardview Viewer

https://hands-on-security.github.io/BoardLoupe/
1•notmine1337•1h ago•0 comments

Jevons Paradox

https://en.wikipedia.org/wiki/Jevons_paradox
1•TechTechTech•1h ago•1 comments