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!

Please stop hashing the public key first (or: ML-DSA's µ annoys me)

https://blog.erincandescent.net/2026/10/mu-annoys-me/
2•khalidkhair•21m ago•0 comments

The Dead Salmons of AI Interpretability

https://arxiv.org/abs/2512.18792
2•danielmorozoff•22m ago•0 comments

Show HN: Malware Families Catalog – 2,903 Families with ATT&CK Mappings

https://malware-families-catalog.systemhelpdesk.com/
2•jordanricky1604•22m ago•0 comments

Show HN: Generate Ilograph – Create auditable sequence diagrams of a codebase

https://github.com/ilograph/skills
1•billyp-rva•23m ago•0 comments

Home Inspection Software in 2026

https://www.aeyespi.com/blog/best-home-inspection-software-2026
1•starburst1977•23m ago•0 comments

Show HN: boostmyagents – A README badge lets your users pay for your AI usage

https://boostmyagents.com/
2•breezyassist•23m ago•0 comments

We Found a Chinese Fleet

https://swarmcha.se/posts/chinese-agent-fleet-full-report
2•irgolic•24m ago•0 comments

Quarterly Newsletter for Software Development

https://arnoldtechnologies.dev/#signup
1•batman-is-just-•26m ago•0 comments

"Griko", the last surviving linguistic descendant of "Magna Graecia"

https://twitter.com/theiaincameron/status/2110037810900348963
1•MrBuddyCasino•28m ago•0 comments

Future for Software Developers

https://trevorarnold.substack.com/p/future-of-software-development
2•batman-is-just-•29m ago•0 comments

Gambling on Democracy

https://acdatacollective.org/work/gambling-on-democracy/
2•geox•29m ago•0 comments

Investigating $100B in Fraud [video]

https://www.youtube.com/watch?v=9eWJISlh0fw
1•Imustaskforhelp•31m ago•0 comments

Are Harnesses Worth the Cost?

https://martinfowler.com/articles/are-harnesses-worth-the-cost.html
1•yarapavan•32m ago•0 comments

Language Oriented Low Level Programming with Pille [video]

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

Book Release: Building Serverless Applications with WebAssembly and Spin

https://leanpub.com/building-serverless-apps-with-wasm-and-spin
1•thorstenhans•37m ago•1 comments

Is Rosemont Residency a RERA-approved project?

1•cemaljustime•37m ago•0 comments

The US military's race to make fake blood

https://www.technologyreview.com/2026/10/14/1145807/us-military-race-to-make-fake-blood/
3•joozio•39m ago•0 comments

A free jigsaw puzzle generator (SVG/PDF/STL, Voronoi pieces, no account)

https://gopuzzlego.com/generator
1•alixai•40m ago•0 comments

Show HN: tsv has fast formatters and parsers for Svelte, TypeScript/JS, CSS

https://github.com/fuzdev/tsv
2•ryanatkn•45m ago•0 comments

Show HN: Kryzz AI – local-first Android agent workspace (MIT)

https://github.com/kriddss3/kryzz-ai
2•kryzz-ai-bo•46m ago•0 comments

Xi's 'death watch' will become a global spectacle

https://www.semafor.com/article/10/13/2026/xis-death-watch-will-become-a-global-spectacle
9•semiquaver•46m ago•0 comments

App Life in China

https://www.chinafile.com/reporting-opinion/postcard/app-life-china
2•julkali•46m ago•0 comments

Winnie-the-Pooh at 100

https://www.nypl.org/spotlight/winnie-the-pooh-100
2•andsoitis•47m ago•0 comments

I changed my view on traditional code review

https://www.minid.net/2026/9/18/three-plus-ones-and-a-prayer
2•meerita•50m ago•0 comments

What does deadweight loss have to do with coding agents?

https://stiven.me/blog/deadweightloss/
2•theis_once•50m ago•1 comments

Show HN: What are vector embeddings? An interactive guide

https://isaacus.com/blog/what-are-vector-embeddings
2•afistfullof•50m ago•1 comments

AI-assisted PCB design for KiCad 10

https://github.com/mixelpixx/Konnect
2•ofrzeta•51m ago•0 comments

The road we were told not to take

https://www.aspendailynews.com/opinion/whiting-the-road-we-were-told-not-to-take-0b9fd0a3?taid=6a...
13•mpweiher•52m ago•2 comments

Show HN: Decision Models in a Game

2•kennag•53m ago•0 comments

Show HN: Run macOS on FreeBSD's Bhyve on AMD

https://github.com/PotemkinCo/macos-amd-bhyve
2•alex_potemkin•56m ago•0 comments