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!

Oxide: Host Operating System and Hypervisor

https://rfd.shared.oxide.computer/rfd/0026
1•tosh•45s ago•0 comments

Fighting Illiteracy with Typography

https://worksthatwork.com/6/unified-arabic
1•Bluestein•1m ago•0 comments

Show HN: MarkUp, a Markdown Editor and Visualizer

https://github.com/DexterLagan/MarkUp
1•dexterlagan•1m ago•0 comments

Making Good Group Decisions, Effectively

https://ilya.grigorik.com/making-good-group-decisions-effectively/
1•tosh•1m ago•0 comments

HyImpulse aims to make access to space and in-orbit mobility sustainable

https://www.hyimpulse.de/about-us
1•doener•3m ago•0 comments

Show HN: Concorde, one AI agent shared by an organization

https://github.com/shutter-network/concorde
1•jfdsfsfdsf•6m ago•0 comments

LinuxBox – An app to run full Linux desktop on Android

https://github.com/EXALAB/LinuxBox
1•Dragon957•6m ago•0 comments

Your Racist Linux Distro Is Very Nice (Scott Jennings)

https://www.brokentoys.org/your-racist-linux-distro-is-very-nice/
2•vintagedave•9m ago•0 comments

Crafts(wo)manship

https://livingsystems.substack.com/p/craftswomanship
1•samuell•9m ago•0 comments

What ways exist for dev from Eastern Europe, move SF?

1•nordcode•10m ago•0 comments

Show HN: PicoWebs – Instant Accountless Microsites

https://picowebs.com
1•lavlessgnr•12m ago•0 comments

TinyGo 0.42 – Recover Is Real

https://tinygo.org/blog/2026/tinygo-0.42-recover-is-real/
1•heckelson•12m ago•0 comments

Implementing FMA and finding bugs in C and Rust standard libraries

https://shnatsel.github.io/implementing-fma-finding-bugs-in-std/
1•signa11•12m ago•0 comments

Is the IDE dead?

https://textlog.cc/post/251
1•stagas•13m ago•0 comments

Shed Skin restricted-Python-to-C++ transpiler 0.9.13

https://github.com/shedskin/shedskin
1•srepmub•13m ago•1 comments

Context complexity: what is the Big-O of an agent API?

https://mchav.github.io/context-complexity/
1•internet_points•18m ago•0 comments

Clippers cap circumvention report explained

https://clippersreport.com/
1•dagrz•18m ago•0 comments

Semek: Local AI hub for labelling/filtering digital content

https://itdaily.com/news/software/aaltra-and-ghent-university-develop-semek-a-local-ai-hub-for-di...
1•stinos•19m ago•0 comments

Huawei Watch D3, Built-In Air Pump Blood Pressure Sensor – Thoughts?

https://sensorspecs.fyi/device/huawei-watch-d3
1•indigoman•19m ago•0 comments

New York Times Union Demands Company Abandon Kalshi Talks

https://frontofficesports.com/article/new-york-times-union-kalshi-deal/
2•thm•20m ago•0 comments

Chopin: Real-time multiplayer, agentic planning environment

https://githubnext.com/projects/chopin/
1•handfuloflight•21m ago•0 comments

Show HN: Radio Bench cross platform unified amateur radio workspace

https://radiobench.com
1•skerris•24m ago•0 comments

For the Birds: "Lights Out" Programs and the Avian Economy

https://www.darkskyconsulting.com/blog/for-the-birds-lights-out-programs-and-the-avian-economy
1•latexr•24m ago•0 comments

U.K. Supreme Court Opens Door for Spyware Victims to Sue Foreign States

https://www.lawfaremedia.org/article/u.k.-supreme-court-opens-door-for-spyware-victims-to-sue-for...
3•giuliomagnifico•29m ago•0 comments

Patching Qualcomm QHEE to Get KVM Running on Arduino Uno Q

https://jaseg.de/blog/kvm-on-qualcomm-arduino-uno-q/
1•serhack_•30m ago•0 comments

Should coding agents be allowed to touch infrastructure?

https://catalyst.zoho.com/agent-stack/
1•theashbord•30m ago•1 comments

Pieter Levels: Programming, Viral AI Startups, and Digital Nomad Life [video]

https://www.youtube.com/watch?v=oFtjKbXKqbg
1•tosh•33m ago•0 comments

China's falling emissions amid Iran war spark hope of decarbonisation watershed

https://www.theguardian.com/environment/2026/sep/03/china-co2-emissions-iran-war
1•tahs•35m ago•0 comments

The Filesystem Explained [video]

https://www.youtube.com/watch?v=qdS8rxVYFJk
2•vismit2000•36m ago•0 comments

Ask HN: How much does licensing approach influence purchase decisions?

1•terranivium•36m ago•0 comments