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!

What reversing, modernising old games tells us about the economic impact of AI

https://this.os.isfine.org/blog/posts/what-reverse-engineering-and-modernising-an-old-war-game-te...
1•keeda•1m ago•1 comments

Claude Deleted 48k Files

https://web.archive.org/web/20260920145334/https://www.reddit.com/r/ClaudeAI/comments/1wl5cgo/cod...
5•gurjeet•8m ago•0 comments

344,799 Bible cross-references

https://trekhleb.dev/bible-cross-references/
1•trekhleb•10m ago•0 comments

Universe, Drawn in ASCII

https://gcdatlas.vercel.app/
1•abetusk•11m ago•1 comments

First ever 3D animation (40 year old 3D computer graphics Pixar 1972)

https://www.youtube.com/watch?v=T5seU-5U0ms
2•nmstoker•13m ago•0 comments

Things You Notice Rewatching Ed, Edd N Eddy as an Adult

https://noxluneworld.com/darkest-cartoon-network-episodes/
2•makic•14m ago•0 comments

If Frank Lloyd Wright's Falling Water Was a Tree House (2012)

https://weburbanist.com/2012/03/17/if-wrights-falling-water-were-a-tree-house/
2•WarOnPrivacy•34m ago•1 comments

Top AI companies probing security incidents

https://www.axios.com/2026/09/26/openai-anthropic-thousands-ai-security-incidents
3•Balgair•34m ago•0 comments

react-html-3.2

https://jkosoy.github.io/react-html-3.2/
1•jkosoy•35m ago•2 comments

Laser Weapons Will Be Deployed at Cape Canaveral Spaceport to Take Down Drones

https://www.twz.com/news-features/space-force-getting-lasers-to-kill-drones-over-cape-canaveral-s...
2•cisc•36m ago•0 comments

Interpolating Between Neural Networks

https://flx.ai/2026/interpolating-between-neural-networks
1•flxai•36m ago•0 comments

Allegations of sexual harassment and rape at Bay Area AI party houses

https://www.kron4.com/news/technology-ai/report-details-allegations-of-wild-parties-sexual-harass...
4•lukewarm707•56m ago•0 comments

The Duo. No, the Other Duo

https://morrick.me/archives/10418
1•_Microft•56m ago•0 comments

Ask HN: Any books, list of papers, or articles to understand LLM's

1•forkbomb123•1h ago•0 comments

BubbleRumble: The new social for crypto by Jae Kwon

https://bubblerumble.net
2•arielhavila•1h ago•2 comments

Show HN: Newt – A Swift Package for Jev-Style Decisions on Apple Core AI

https://github.com/willswire/swift-newt
2•willswire•1h ago•0 comments

Vibe coding a real product: a 3D game on the App Store, 20 species, zero revenue

https://apps.apple.com/us/app/dinomino/id6809052147
1•kodnuke•1h ago•0 comments

An Underappreciated Problem with Dating Apps

https://www.theatlantic.com/family/2026/09/dating-strategies-apps-matchmakers/688779/
1•paulpauper•1h ago•0 comments

Donald Trump Hit with 26 Articles of Impeachment

https://www.newsweek.com/donald-trump-hit-with-26-articles-of-impeachment-12492238
10•slater•1h ago•1 comments

>1B tokens/minute/GPU by combining query planner and inference engine

https://modal.com/blog/quail-billion-tpm
4•charles_irl•1h ago•1 comments

God's Eye UAP – documented UFO cases on a 3D globe, with the evidence

https://domw99.github.io/Gods-Eye-UAPs/
10•godseyeuap•1h ago•0 comments

This guy bought Amazon. No, I mean the rainforest

https://en.wikipedia.org/wiki/Johan_Eliasch
1•sans_souse•1h ago•0 comments

X Cleanup – on-device iPhone storage cleaner (duplicates, screenshots, videos)

https://apps.apple.com/us/app/x-cleanup-storage-cleaner/id6796765379
1•bashirmo•1h ago•0 comments

How to Entrain Your Circadian Rhythm for Jet Lag

https://www.exfatloss.com/p/how-to-entrain-your-circadian-rhythm
1•paulpauper•1h ago•0 comments

Tyler Cowen: A Doomsday Scenario for American AI

https://www.thefp.com/p/tyler-cowen-a-doomsday-scenario-for
1•paulpauper•1h ago•0 comments

Tcpcat: High-speed TCP port scanner in Go using eBPF and AF_XDP

https://github.com/NycolazSec/tcpcat
2•tcpcat•1h ago•0 comments

People Are Putting Their Phones Down for IRL Interactive Games

https://www.nytimes.com/2026/09/26/style/immersive-interactive-games-chicago-new-york.html
2•mikhael•1h ago•0 comments

Show HN: Withmcp – A quick, system-wide MCP toggle

https://github.com/lava/withmcp
1•HotHotLava•1h ago•0 comments

Solus Linux Adopts Formal AI and LLM Contribution Policy

https://linuxiac.com/solus-linux-adopts-formal-ai-and-llm-contribution-policy/
1•gpi•1h ago•0 comments

Show HN: Leftovers – find the processes your coding agents left running on macOS

https://github.com/arpwal/leftovers
2•arpitagarwal•1h ago•0 comments