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 state of the tech industry in 2026

https://newsletter.pragmaticengineer.com/p/the-state-of-the-tech-industry-in
1•qikouki•1m ago•0 comments

Steve Krouse's Readme

https://stevekrouse.com/readme
1•Curiositry•1m ago•0 comments

The nuclear clock has begun ticking

https://www.eurekalert.org/news-releases/1146229
2•geox•2m ago•0 comments

Xeal to Launch Edge Inference Compute Using Idle EV Charging Capacity

https://www.businesswire.com/news/home/20260918640145/en/Xeal-to-Launch-Laitent-Worlds-First-Edge...
1•JumpCrisscross•3m ago•0 comments

The Hagedorn Temperature (2003)

https://cerncourier.com/a/the-tale-of-the-hagedorn-temperature/
3•EA-3167•11m ago•0 comments

Tools Ecosystem

https://100r.ca/site/tools_ecosystem.html
2•andsoitis•12m ago•0 comments

Rabbit Waves

https://rabbitwaves.ca/
2•andsoitis•14m ago•0 comments

Death Grips – The Story You Never Knew

https://www.youtube.com/watch?v=Wv0lDc5XpH0
2•rasengan0•23m ago•0 comments

Show HN: Pacer – will your AI coding subscription last until the reset?

https://github.com/dkremsa/claude-pacer
2•dkremsa•25m ago•0 comments

AI Changed the Team, Not the Process

https://www.compile.la/ai-changed-the-team-not-the-process/
1•dalfonso•25m ago•0 comments

Language-model ratings of depression reflect the rater more than the patient

https://arxiv.org/abs/2610.08501
1•sbulaev•28m ago•0 comments

An Upper Bound of 9/4 for the Matrix Multiplication Exponent [pdf]

https://github.com/openai/math/blob/main/preprints/Matrix-Multiplication-Nine-Fourths-October-2-2...
1•theanonymousone•29m ago•0 comments

In Defense of White Chocolate

https://www.gourmetboutique.net/blogs/tasting-room/17250051-in-defense-of-white-chocolate
1•JumpCrisscross•31m ago•0 comments

I Will Wait

https://throwawaythoughts.blog/
1•campbellman•42m ago•0 comments

Alang Ship Breaking Yard

https://en.wikipedia.org/wiki/Alang_Ship_Breaking_Yard
1•vismit2000•44m ago•0 comments

Self-Modeling Interventions Modulate Emergent Misalignment

https://www.lesswrong.com/posts/7wrzfaiCq3u8xkY5G/self-modeling-interventions-modulate-emergent-m...
2•gmays•47m ago•0 comments

Towards Efficient HPC Systems for Agents: Challenges and Opportunities

https://arxiv.org/abs/2609.38723
1•matt_d•47m ago•0 comments

The Science That Has Oil Companies Running Scared

https://www.nytimes.com/2026/10/06/opinion/oil-companies-supreme-court.html
3•thelastgallon•50m ago•1 comments

Show HN: A utility microservice for human trust

https://futex.rodmena.co.uk/
1•rodmena•1h ago•0 comments

The 3dfx Voodoo Turns 30 – interview with cofounder Ross Smith

https://www.club386.com/3dfx-voodoo-history-ross-smith-interview/
3•nickt•1h ago•0 comments

Mozilla met with Microsoft to discuss their harmful design practices

https://www.reddit.com/r/firefox/comments/1wzzk6l/mozilla_met_with_microsoft_to_discuss_their/
11•botanical•1h ago•1 comments

A 100x faster* alternative to homebrew

https://github.com/zerobrewhq/zerobrew
2•cachebag•1h ago•0 comments

Was the Human Gut Healthier in Ancient Times?

https://www.nytimes.com/2026/10/07/science/microbiome-evolution-hadza-tsimane.html
1•gumby•1h ago•1 comments

Paper Mono Typeface

https://paper.design/mono
3•miguel-muniz•1h ago•4 comments

Application compatibility layers are there for the customer (2010)

https://devblogs.microsoft.com/oldnewthing/20100311-00/?p=14643/
1•crispinh•1h ago•0 comments

A Categorical Analysis of LLMs and the Symbol Grounding Problem (2025)

https://arxiv.org/abs/2512.09117
2•rockwindmemento•1h ago•0 comments

Can we prove LLMs are not conscious?

https://machines.tivra.com/human
1•DesaiAshu•1h ago•2 comments

Make717, Lancaster PA's First Makerspace

https://www.make717.org/
1•linuxkernal•1h ago•0 comments

Musk, Jensen Huang, Lisa Su Awarded National Medal of Science

https://www.foxnews.com/politics/first-fox-elon-musk-heads-back-white-house-trump-marks-prestigio...
3•osnium123•1h ago•1 comments

Practical use cases for OpenAI's Decisions API

https://vercel.com/i/openai-decisions-api-use-cases
1•flashbrew•1h ago•0 comments