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: Free Bible study that explains every chapter you read

https://learnofchrist.com
1•not_wowinter14•3m ago•0 comments

Nushell

https://www.nushell.sh/
2•handfuloflight•4m ago•0 comments

$550M in Medical Debt Only Cost $5.5M [video]

https://www.youtube.com/watch?v=Cimg-Xg043Y
2•foxfired•4m ago•0 comments

Wordsmith

https://segue.app/wordsmith
2•_continuation•5m ago•0 comments

Kimi K3 is not cheap

https://www.alexinch.com/blog/kimi-k3
3•ainch•6m ago•0 comments

New funding rules will make US research slower, costlier and harder to share

https://theconversation.com/new-trump-administration-rules-on-federal-science-funding-could-make-...
2•teaman2000•10m ago•0 comments

Look at Silicon Valley history from 360 degrees over the years

https://ValleyOfIdeas.com
1•chenpaul•11m ago•0 comments

Building Political Superintelligence

https://freesystems.substack.com/p/building-political-superintelligence
3•m-hodges•11m ago•0 comments

I've converted my website to grayscale

https://rz01.org/qmx/
2•exitnode•14m ago•2 comments

Optical Memory Link Could Boost AI in Robotics

https://spectrum.ieee.org/ai-in-robotics
1•jonbaer•15m ago•0 comments

Persistent Money Struggles Linked to Faster Brain Ageing

https://www.ucl.ac.uk/news/2026/jul/persistent-money-struggles-linked-faster-brain-ageing
1•karakoram•22m ago•0 comments

Show HN: Punter.js – single-file JavaScript game engine for teaching programming

https://punterjs.org/
1•john-doherty•22m ago•0 comments

LLM Cliche Highlighter

https://tools.simonwillison.net/llm-cliche-highlighter
2•saikatsg•24m ago•0 comments

America's schools admit screens make students worse off

https://fortune.com/article/schools-abandoning-chromebooks-laptop-programs-as-screen-time-hurts-l...
1•jedberg•27m ago•0 comments

Kitty [terminal emulator] chases the mouse

https://lwn.net/Articles/1080821/#Comments
2•leephillips•27m ago•0 comments

In a Ukrainian bomb shelter, Laura Loomer explains shift on Russia's war

https://apnews.com/article/laura-loomer-trump-ukraine-russia-interview-101852f6deab17e1d8d215fdde...
2•haburka•28m ago•0 comments

Please ship APIs, not AI

https://iamwillwang.com/notes/please-ship-apis-not-ai/
2•wxw•28m ago•0 comments

Illume Labs – Your 24/7 personalized health companion

https://www.illumelabs.ai/
3•parilatawa•29m ago•2 comments

OpenAI: A Bubble Bigger Than Dotcom

https://www.youtube.com/watch?v=zDtvrme-L-0
5•cable2600•30m ago•1 comments

Go server-less for projects that only need to scale from 2-200 users

https://seamside.com/docs/
2•akumpf•31m ago•1 comments

Iran used roaming systems, ad tech to track US troops in Gulf: Report

https://www.turkiyetoday.com/business/iran-used-roaming-systems-ad-tech-to-track-us-troops-in-gul...
5•billybuckwheat•32m ago•0 comments

BSD seq(1) on Linux

2•1vuio0pswjnm7•34m ago•0 comments

What Happened to Tagging? (2019)

https://daily.jstor.org/what-happened-to-tagging/
2•downbad_•35m ago•0 comments

OptMem: Plug-and-play infinite memory for any agent

https://github.com/VictorTaelin/OptMem
1•LightMachine•35m ago•0 comments

The bitter lesson for skills and coding agents

https://twitter.com/jim_dowling/status/2081455720336179313
1•jamesblonde•38m ago•0 comments

Doom running on nothing but regex find-and-replace

https://github.com/4RH1T3CT0R7/doom-regex
1•amichail•39m ago•0 comments

Learning two pointers from scratch after solving 100 LeetCode problems

https://leetcopilot.dev/blog/two-pointers-intuition-for-leetcode-beginners-step-by-step
2•alexwang24•39m ago•0 comments

I Made Open Source Adobe Acrobat – Windows 11

https://github.com/jonahgigi534-wq/PDF-Pilot
1•Jonathan_Gigi•40m ago•1 comments

We need to rethink tech stack

2•vivekk7190•41m ago•1 comments

Angels in Coptic Magic I: Introduction

https://www.coptic-magic.phil.uni-wuerzburg.de/index.php/2026/01/16/angels-in-coptic-magic-i-intr...
2•jruohonen•46m ago•0 comments