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!

AI coding agents implemented six ways to update a Matter device on real hardware

https://groundrun.io/blog/ai-agents-matter-ota-updates-esp32-h2/
1•adunk•1m ago•0 comments

Build and fly drones with a C flight controller running as WebAssembly

https://mrtksn.github.io/liftlab/
1•mrtksn•1m ago•1 comments

One runaway AI agent racked up a $50k cloud bill

https://www.helpnetsecurity.com/2026/09/16/google-mandiant-enterprise-ai-security-risks-report/
1•speckx•2m ago•0 comments

Patent That Turned 2km Steel Pipes into Sonic Hammers

https://deachoratiu.substack.com/p/revolutia-din-adancuri-ion-basgan
1•Pandatech_autor•2m ago•0 comments

Show HN: Steve Jobs died 15 years ago today. I built an interactive tribute

https://thankyousteve.org/
1•akashbangad•3m ago•0 comments

Metacognitive Agents (2025) [video]

https://www.youtube.com/watch?v=mE28UJ3tkos
1•Bluestein•5m ago•0 comments

Moose Tracks

https://ambrook.com/offrange/crops/moose-tracks
1•surprisetalk•5m ago•0 comments

The State of AI in Software Development: Data from 400 Orgs [video]

https://www.youtube.com/watch?v=Se8jHLliLXE
1•mpweiher•7m ago•0 comments

Tell HN: Claude Code refuses to login to any website not running on localhost

1•xeonax•7m ago•0 comments

Kosmora – open packs of Wikipedia posts as cards (I'm addicted)

https://kosmora.io
5•rez0__•9m ago•2 comments

Show HN: Abliterated LLM provider for cyber tasks

https://refuseless.com
2•jurisdb•9m ago•0 comments

Tell HN: Uceprotect is extorting website owners

2•goldenmember•10m ago•0 comments

Russia plague: The suspected case reportedly linked to a lab worker's death

https://www.cnbc.com/2026/10/05/russia-plague-suspected-case-irkutsk.html
1•cramer4next•11m ago•0 comments

The Era of Software Quality, or the Era of Ostriches?

https://blogs.gnome.org/mcatanzaro/2026/10/02/the-era-of-software-quality-or-the-era-of-ostriches/
2•birdculture•12m ago•0 comments

Show HN: PHP-GPU-tensors – Native GPU operations in PHP

https://github.com/lcmialichi/php-gpu-tensors
1•lmcosta•13m ago•0 comments

Show HN: Seylo, project files and references your AI can use

https://seylo.co
1•Yakobeen•15m ago•0 comments

How (and Why) to Build an AI Agent from Scratch in Python

https://machinelearningmastery.com/how-and-why-to-build-an-ai-agent-from-scratch-in-python/
1•eigenBasis•15m ago•0 comments

Making Arena.ofConfined() Even Cheaper in JDK 28

https://inside.java/2026/10/05/confined-pools/
1•lichtenberger•16m ago•0 comments

TypingPall – Mac App for code typing practice

https://github.com/Mieraidihaimu/TypingPall
1•mier•16m ago•0 comments

The Velocity of Bullshit

https://blog.entropy.capital/p/the-velocity-of-bullshit
2•gcotsikis•17m ago•0 comments

The Emu Strikes Back [pdf]

https://romanianjournalofhistoricalstudies.wordpress.com/wp-content/uploads/2019/07/richard-j.-co...
1•squirrel•18m ago•0 comments

Radium Girls

https://en.wikipedia.org/wiki/Radium_Girls
1•tosh•19m ago•0 comments

Show HN: YAVCHN, Yet Another Vibe-Coded Hacker News (Reader)

https://yavchn.com/hn/
1•paulmooreparks•21m ago•0 comments

AlphaSteel

https://www.facebook.com/AlphaSteelTry/
1•losyhanu•22m ago•0 comments

Show HN: Athena – An assistant that listens instead of watching

https://athenaos.net
1•mirconeri•22m ago•0 comments

Radium Dial

https://en.wikipedia.org/wiki/Radium_dial
1•tosh•24m ago•0 comments

Anthropic wants your thoughts on AI

https://www.anthropic.com/research/your-thoughts-on-ai
3•ramijames•24m ago•3 comments

Parametrised tests in Rust with named parameters

https://alexwlchan.net/2026/table-driven-rust/
1•surprisetalk•25m ago•0 comments

The Revise SDK

https://revise.io/blog/09-28-2026/introducing-the-revise-sdk
1•dimonomid•26m ago•0 comments

UK's Extend Robotics Secures US$3.3M to Sell Factory Work Instead of Machines

https://www.saasrise.com/deals/uks-extend-robotics-secures-us33m-26m-to-sell-factory-work-instead...
1•monkeydust•29m ago•0 comments