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!

Apple Investors Give Lukewarm Reaction to New Siri, AI Platform

https://www.bloomberg.com/news/articles/2026-06-08/apple-unveils-next-generation-of-ai-platform-i...
1•petethomas•5m ago•0 comments

Gram Newton-Schulz: A Fast, Hardware-Aware Newton-Schulz Algorithm for Muon

https://tridao.me/blog/2026/gram-newton-schulz/
1•jxmorris12•6m ago•0 comments

Tell HN: La

1•macabro•13m ago•0 comments

Siri AI at WWDC 2026

https://simonwillison.net/2026/Jun/8/wwdc/
2•lumpa•13m ago•0 comments

Tell HN

1•macabro•14m ago•0 comments

I built a free car lease transfer marketplace after the paid ones burned me

https://www.trademylease.com
2•mknweb•16m ago•0 comments

CRDTs merge concurrent edits. Why not concurrent creation?

https://loro.dev/blog/mergeable-containers
2•czx111331•17m ago•0 comments

OpenLTM – Local, self-decaying memory for AI coding agents

https://github.com/RohiRIK/OpenLtm
2•RohiRik•27m ago•0 comments

What Apple Knows About AI That Silicon Valley Won't Admit

https://www.thealgorithmicbridge.com/p/what-apple-knows-about-ai-that-silicon
5•CharlesW•27m ago•1 comments

Kalshi and Polymarket crack down on paid influencers claiming election fraud

https://text.npr.org/nx-s1-5846806
3•1659447091•33m ago•0 comments

Designing an AI-Native Technical Screen

https://i0exception.substack.com/p/designing-an-ai-native-technical
1•i0exception•38m ago•0 comments

They Have yet to Sign a Lease. But They're Furious over $3,100 Rents

https://www.nytimes.com/2026/06/07/nyregion/housing-costs-young-people-nyc.html
1•littlexsparkee•40m ago•0 comments

AI Coding Agent Platform

https://app.nz/
1•jacobianhessian•41m ago•0 comments

Show HN: Built an open-source local firewall for AI coding agents

2•ashishp15•46m ago•0 comments

NPM-Scan v1.4.1: Detecting IronWorm, Miasma Escalated, and Dependency Confusion

https://www.npmjs.com/package/@lateos/npm-scan
1•lateos-ai•51m ago•0 comments

Queues Don't Fix Overload (2014)

https://ferd.ca/queues-don-t-fix-overload.html
1•locknitpicker•54m ago•0 comments

Universal XSS in Firefox Focus for iOS

https://github.com/v12-security/pocs/tree/main/firefox
4•ledoge•56m ago•0 comments

Organizations Drift into Politics: A Follow-up to Game Theory Patterns at Work

https://daeus.blog/2026/06/08/how-organizations-drift-into-politics/
3•kurinikku•58m ago•0 comments

Gordon S. Wood dies at 92 after being hit by a car

https://www.nytimes.com/2026/06/08/books/gordon-s-wood-dead.html
5•2510c39011c5•58m ago•2 comments

Porting the ThinkPad X61 to Coreboot

https://blog.aheymans.xyz/post/thinkpad_x61/
3•walterbell•58m ago•0 comments

I built a projection mapping of the planes flying over my house

https://old.reddit.com/r/ClaudeCode/comments/1tva44g/i_live_by_sfo_and_built_a_projection_mapping...
2•stefap2•59m ago•0 comments

Apple Announces macOS 27 'Golden Gate', Drops Support for Intel Macs

https://appleinsider.com/articles/26/06/08/macos-27-golden-gate-delivers-more-liquid-glass-and-up...
5•m463•1h ago•0 comments

USS Liberty III

https://grokipedia.com/page/uss_liberty_iii
3•__patchbit__•1h ago•0 comments

SpaceX Technical Update Discussion

https://twitter.com/SpaceX/status/2064099405758906727
3•__patchbit__•1h ago•0 comments

World Cup 2026 predictor with FIFA's full Annex C bracket logic

https://mundialist.com
3•rmtzp•1h ago•0 comments

Software Is Eating the World (But This Time)

https://twitter.com/siddharthvader_/status/2049161016156762441
2•SiqingYu•1h ago•0 comments

Hello muy name Is art

https://blog.cloudflare.com/es-es/welcome-to-connectivity-cloud/
2•the-art•1h ago•1 comments

OOBdump: Relocation Oriented Programming: Arbitrary code execution in objdump -g

https://blog.calif.io/p/oobdump-relocation-oriented-programming
3•matt_d•1h ago•0 comments

Flat Datacenter Networks at Scale

https://perspectives.mvdirona.com/2026/06/flat-datacenter-networks-at-scale/
6•tanelpoder•1h ago•0 comments

Show HN: Ollama Dash – autoupdating dashboard for Ollama Models

https://ollamadash.up.railway.app/
2•rcanand2025•1h ago•0 comments