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!

OpenAI says teens use ChatGPT for under 15 minutes a day

https://www.reuters.com/business/media-telecom/openai-says-teens-use-chatgpt-under-15-minutes-day...
1•mikelgan•28s ago•0 comments

Creating distro build tooling for a small community

https://chimera-linux.org/news/2026/10/the-case-for-cbuild.html
1•utiiiD•1m ago•0 comments

Give AI agents permissions, not your private key

https://namera.ai/
1•kriskocic•1m ago•0 comments

AI agents are flooding public services with new requests

https://techcrunch.com/2026/09/10/ai-agents-are-flooding-public-services-with-new-requests/
1•cdrnsf•1m ago•0 comments

Finnish public broadcaster's teletext service turns 45

https://yle.fi/a/74-20250332
2•Risse•3m ago•0 comments

Social Snitch tracks mentions across Hacker News, Reddit, Bluesky, and more

https://socialsnitch.app/
2•manojvivek•4m ago•0 comments

Skydance Sets Leadership Across Games, Experiences, Consumer Products and HR

https://variety.com/2026/gaming/news/skydance-games-experiences-products-leadership-1236903948/
1•HelloUsername•5m ago•0 comments

Nvidia research finds AI agents become less safe when using tools

https://www.unite.ai/nvidia-research-finds-ai-agents-become-less-safe-when-using-tools/
1•50kIters•6m ago•0 comments

An essay that degrades 1% at a time, and a little more every time you leave it

https://era-of-cmd-tab.vercel.app/
1•ChrisArchitect•6m ago•0 comments

BillFlowr – A simple way to create invoices, track payments, and remind clients

https://www.billflowr.com
1•jimmy_lee•6m ago•0 comments

Show HN: Free calculator for US physicians' $200K-$400K student loan debt

https://www.medschooldebtcalculator.com/calculator
1•Suhinnall27•6m ago•0 comments

Rebirth of the Title: "Member of Technical Staff"

https://scoutnow.ai/blog/rebirth-member-of-technical-staff
2•Bluestein•9m ago•0 comments

New Parking Meter Deal Gives Chicago Share of Profits for First Time Since 2008

https://blockclubchicago.org/2026/09/29/council-approves-2-5-billion-parking-meter-sale-with-city...
3•simonebrunozzi•10m ago•0 comments

One Model Family, Two Gold-Level Results: Fine-Tuning Nemotron for IOI and IMO

https://huggingface.co/blog/nvidia/nemotron-ioi-and-imo-2026
2•acossta•12m ago•0 comments

Show HN: I made a desktop pet that uses LLM for voice and Jev for poses

https://pet.rxlab.app
1•sirily11•12m ago•0 comments

EmbeddingGemma 2

https://simonwillison.net/2026/Oct/6/hn-49983751/
1•hn9zmdcaou•12m ago•1 comments

NullMoth Nvidia Driver with Metal for macOS 15

https://github.com/nullmoth/nvidia-macos-driver
1•wpm•14m ago•0 comments

Show HN: See when TV shows are ready to binge

https://dvelton.github.io/binge-ready/
2•deevelton•14m ago•0 comments

Show HN: A Linux clone in TypeScript, hidden in an IDE for kids

https://akicode.com/en
1•lqs_•15m ago•0 comments

Targeted attack on Double Counter's infrastructure

https://doublecounter.gg/blog/security-incident-october-2026
1•sdko•16m ago•0 comments

Preparing for Post Quantum DNSSEC with PowerDNS

https://blog.powerdns.com/preparing-for-post-quantum-dnssec-with-powerdns
4•conductor•16m ago•0 comments

Golden Gate Bridge main cables – no maintenance since 1930s [video]

https://www.youtube.com/watch?v=RbVOEo6SmdY
2•freebsd_lovefes•16m ago•1 comments

Compiling the jobs AI agents repeat: 58% fewer LLM calls

https://www.tryagentcompile.com/
2•krishna_bhatnag•17m ago•1 comments

Show HN: Weft – Red squiggles for teams of coding agents

https://github.com/celador/weft
1•JohnAaronNelson•18m ago•0 comments

The Next Great Platform Shift: Personal Agents

https://deadneurons.substack.com/p/the-next-great-platform-shift-personal
2•nr378•19m ago•0 comments

ts-rust: An experimental Rust port of the TypeScript 7 compiler (tsc)

https://github.com/pingdotgg/ts-rust
1•tosh•19m ago•0 comments

How are the winners of the Nobel prizes chosen?

https://www.chemistryworld.com/news/how-are-the-winners-of-the-nobel-prizes-chosen/4024310.article
2•crescit_eundo•20m ago•1 comments

Nous Research raises $90M in new funding

https://nousresearch.com/a-note-on-our-fundraise
2•ushakov•21m ago•0 comments

Student Lender Collapses as Immigrant Crackdown Roils Loan Book

https://www.bloomberg.com/news/articles/2026-10-07/student-lender-collapses-as-immigrant-crackdow...
1•kamaraju•21m ago•0 comments

Show HN: What your Claude Code subscription would cost at API prices

https://github.com/Faouzielbakri/what-would-it-cost
2•Faouzielbakri•24m ago•0 comments