frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

zljdanceholic•11mo 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!

MicroSafe-RL – Deterministic $1.18 \mu s$ safety layer for Edge AI on MCUs

https://github.com/Kretski/MicroSafe-RL/blob/main/media/MicroSafe-RL-demo.mp4
1•DREDREG•47s ago•0 comments

Elevated Errors on Claude.ai

https://status.claude.com/incidents/vfjv5x6qkd4j
1•SunshineTheCat•2m ago•0 comments

More Americans Are Breaking into the Upper Middle Class

https://www.wsj.com/economy/more-americans-are-breaking-into-the-upper-middle-class-bf8b7cb2
1•alephnerd•2m ago•0 comments

Agent Made for Research

http://remoroo.com/
1•adhamghazali•2m ago•0 comments

AI changed Nvidia chip design [video]

https://www.youtube.com/watch?v=40F9Wbt1l54
1•chrsw•2m ago•0 comments

Show HN: Weird Clocks

https://clocks.specr.net
1•vunderba•2m ago•0 comments

Ocean bacteria team up to break down biodegradable plastic

https://phys.org/news/2026-03-ocean-bacteria-team-biodegradable-plastic.html
1•PaulHoule•3m ago•0 comments

AI Removed All the Tedium at Work. So Why Am I So Exhausted?

https://benjaminste.in/blog/2026/04/05/ai-removed-all-the-tedium/
1•benstein•3m ago•0 comments

Global Spam Prevention for Open Source

https://fossier.io/
1•tanelpoder•4m ago•0 comments

Show HN: Apparent – A lightweight extension to simplify and clean Gmail

https://chromewebstore.google.com/detail/apparent-for-gmail/fegjnknjcbfhfgciopbphbojbkmahjeo
1•JaredCampbell•6m ago•1 comments

Yale senior hacks United, gets 2.6M miles

https://yaledailynews.com/articles/hacking-helpfully-yale-senior-co-founds-a-startup-and-wins-rew...
2•bearsyankees•6m ago•0 comments

CRTC website down due to expired certificate

https://www.crtc.gc.ca/
1•neom•6m ago•0 comments

The State of AI Agent Abuse: What API Logs Look Like in 2026

https://themeridianlab.com/signals/state-of-ai-agent-abuse-2026
1•mmayberry•6m ago•0 comments

Anthropic is burning more and more dev goodwill

https://twitter.com/GergelyOrosz/status/2041133254586122605
1•tosh•8m ago•0 comments

The economic impact of the global energy crisis

https://www.axios.com/2026/04/06/economic-impact-global-energy-crisis
2•toomuchtodo•10m ago•1 comments

World's Longest Outdoor Escalator Opened in China – Takes 20 Minutes to Ascend

https://www.smithsonianmag.com/smart-news/the-worlds-longest-outdoor-escalator-just-opened-in-chi...
2•sarimkx•11m ago•1 comments

Show HN: ReverseCam – See yourself as others see you

https://www.reversecam.com
3•ilamparithi•11m ago•0 comments

Show HN: Tiny TUI for disk usage exploration

https://github.com/dhbradshaw/syz
2•dhbradshaw•11m ago•1 comments

Why Do These Three Angles Sum to 45 Degrees? (animated geometric proof)

https://www.youtube.com/watch?v=A2-2EvCxfEY
1•amarshikhar•12m ago•0 comments

Detect malicious packages by triggering their behavior in a sandbox

1•RalianENG•12m ago•0 comments

Show HN: Molchanica. Structural bio GUI / Rust tools

https://github.com/David-OConnor/molchanica
1•the__alchemist•13m ago•0 comments

Show HN: MCP 2000 – Browser-based drum machine with AI-generated sounds

https://www.mcp2000.com/
1•harmoni-pet•14m ago•0 comments

LLM Wiki Compiler Inspired by Karpathy

https://github.com/atomicmemory/llm-wiki-compiler
1•ethanjoffe•14m ago•0 comments

A Cryptography Engineer's Perspective on Quantum Computing Timelines

https://words.filippo.io/crqc-timeline/
3•thadt•17m ago•0 comments

The secretive plan for a Maine data center collapsed in 6 days

https://www.bangordailynews.com/2026/04/06/mainefocus/mainefocus-environment/secretive-plan-maine...
2•PLenz•18m ago•0 comments

Happy City Index 2026

https://happy-city-index.com/
1•simonebrunozzi•18m ago•0 comments

The Platform That Fights Bots by Eliminating People

https://thesquaremanifest.substack.com/p/the-platform-that-fights-bots-by
2•arc_light•19m ago•0 comments

Outcome over Process

https://elijahpotter.dev/articles/outcome-over-process
2•chilipepperhott•19m ago•0 comments

Key Findings About How Americans View Artificial Intelligence

https://www.pewresearch.org/short-reads/2026/03/12/key-findings-about-how-americans-view-artifici...
2•sarimkx•19m ago•0 comments

The Iran War Just Broke the Petrodollar

https://www.bloomberg.com/opinion/articles/2026-04-06/the-petrodollar-loop-supporting-the-treasur...
4•rantingdemon•21m ago•1 comments