frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

zljdanceholic•7mo 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!

Airbus faces new quality problem on A320 jets, sources say

https://www.reuters.com/business/aerospace-defense/airbus-faces-new-quality-problem-dozens-a320-j...
1•belter•47s ago•0 comments

Around The World, Part 27: Planting trees

https://frozenfractal.com/blog/2025/11/28/around-the-world-27-planting-trees/
1•todsacerdoti•3m ago•0 comments

The Profit Behind Woke

https://substack.com/home/post/p-178888847
2•pjb88•4m ago•0 comments

Ask HN: Does anybody want LLMs run code in their developer environments?

1•yash_vaddi•5m ago•0 comments

Has the AI Bubble Popped Yet?

https://hastheaibubblepoppedyet.com/
2•bandamo•8m ago•1 comments

1GB Raspberry Pi 5, and memory-driven price rises

https://www.raspberrypi.com/news/1gb-raspberry-pi-5-now-available-at-45-and-memory-driven-price-r...
5•shrx•9m ago•0 comments

UK Government plans new powers to label dissenting movements as 'subversion'

https://netpol.org/2025/11/28/government-plans-new-powers-to-label-dissenting-movements-as-subver...
9•robtherobber•11m ago•0 comments

Doctype – '80s BASIC type-in mags are back, but this time for HTML

https://vole.wtf/doctype/
2•OuterVale•13m ago•0 comments

Self-hosting a Matrix server for 5 years

https://yaky.dev/2025-11-30-self-hosting-matrix/
12•the-anarchist•20m ago•0 comments

Have We Been Explaining E = Hν Backwards for 100 Years?

https://pajuhaan.medium.com/have-we-been-explaining-e-hν-backwards-for-100-years-bd140fec78a9
1•pajuhaan•22m ago•1 comments

How Toxic Culture Costs Companies Time, Talent, and Money and How to Fix It?

https://formrecipe.com/blog/how-toxic-culture-costs-companies-time-talent-money
1•deffrin•25m ago•0 comments

Rooted Resistance: Rashid Johnson's Potted Plants as Living Symbols

https://worldsensorium.com/rooted-resistance-rashid-johnsons-potted-plants-as-living-symbols/
1•dnetesn•27m ago•0 comments

How to Print a Human

https://nautil.us/how-to-print-a-human-1250487/
2•dnetesn•28m ago•0 comments

Supreme Court to Hear Copyright Battle over Online Music Piracy

https://www.nytimes.com/2025/12/01/us/politics/supreme-court-copyright-music-piracy.html
3•pseudolus•28m ago•1 comments

React-State-Custom – Composable global state with native lifecycle management

https://github.com/vothanhdat/react-state-custom
1•datvo•30m ago•1 comments

3D-printable concrete alternative hardens in three days, not four weeks

https://newatlas.com/materials/3d-printable-concrete-alternative/
1•wjSgoWPm5bWAhXB•34m ago•0 comments

A unified geometric model of structural space

https://zenodo.org/records/17687286
1•flexionU•34m ago•0 comments

DeepSeek-v3.2

https://huggingface.co/deepseek-ai/DeepSeek-V3.2
12•meetpateltech•35m ago•0 comments

Ilya Sutskever – We're moving from the age of scaling to the age of research [video]

https://www.youtube.com/watch?v=aR20FWCCjAs
3•bhaktatejas922•38m ago•0 comments

New semiconductor could allow classical and quantum computing on the same chip

https://www.livescience.com/technology/computing/new-semiconductor-could-allow-classical-and-quan...
1•donutloop•38m ago•0 comments

Google Quantum AI realizes three dynamic surface code implementations

https://phys.org/news/2025-11-google-quantum-ai-dynamic-surface.html
1•donutloop•40m ago•0 comments

What Is a City Super App and Why Every City Needs One

https://mertbulan.com/2025/12/01/what-is-a-city-super-app-and-why-every-city-needs-one/
1•mertbio•47m ago•0 comments

Not Just Gaza. From West Bank to Syria and Lebanon, Israel's Onslaught Continues

https://www.theguardian.com/commentisfree/2025/dec/01/gaza-west-bank-syria-lebanon-israel-ceasefire
10•hebelehubele•48m ago•0 comments

Modularization of Supercritical CO2 System for Aircraft Carrier Nuclear Power

https://www.mdpi.com/1099-4300/27/11/1154
1•PaulHoule•48m ago•0 comments

Content-Security-Policy Trust Erosion Scanner

https://github.com/Splinters-io/ghosted
1•splintersio•49m ago•1 comments

AI Hype TRAcking Project

https://poritz.net/jonathan/aitrap/index.html
2•runningmike•50m ago•0 comments

Xlibre is a fork of the Xorg Xserver with lots of code cleanups

https://x11libre.net/
19•doener•55m ago•13 comments

Why Is ChatGPT for Mac So Good?

https://allenpike.com/2025/why-is-chatgpt-so-good-claude
4•ingve•55m ago•0 comments

Land and Spatial Board to make publicly available map data less detailed

https://news.err.ee/1609869930/land-and-spatial-board-to-make-publicly-available-map-data-less-de...
3•marklit•58m ago•0 comments

Building the Perfect Linux PC with Linus Torvalds [video]

https://youtu.be/mfv0V1SxbNA
7•unmole•58m ago•0 comments