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•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!

SpaceX's historic IPO plans: Billions in losses and Musk's ownership

https://www.cnbc.com/2026/05/20/spacex-ipo-live-updates.html
1•samaysharma•15s ago•0 comments

Show HN: Personal business communication coach for Technical Leaders

https://clarityhoop.com/
1•Sanej•1m ago•0 comments

Framework-agnostic design systems: a practical approach to web components

https://piccalil.li/blog/framework-agnostic-design-systems-part-1/
1•paulathevalley•2m ago•0 comments

The LLM Death Spiral

2•robomartin•2m ago•0 comments

Oura, Maker of Popular Smart Rings, Files Confidentially for IPO

https://www.bloomberg.com/news/articles/2026-05-21/oura-maker-of-popular-smart-rings-files-confid...
1•brandonb•4m ago•0 comments

London Mayor Blocks Palantir

https://www.theguardian.com/uk-news/2026/may/21/london-mayor-sadiq-khan-blocks-met-police-deal-wi...
4•ZiiS•5m ago•0 comments

Up to 3x faster stored-vector queries in Elasticsearch

https://www.elastic.co/search-labs/blog/elasticsearch-vector-search-lookup
1•eigenBasis•5m ago•0 comments

Necrobotics: Dead Spiders Reincarnated as Robot Grippers (2022)

https://spectrum.ieee.org/robot-bugs
1•thunderbong•6m ago•0 comments

Waymo pauses Atlanta service as its robotaxis keep driving into floods

https://techcrunch.com/2026/05/21/waymo-pauses-atlanta-service-as-its-robotaxis-keep-driving-into...
3•mattas•9m ago•0 comments

Ask HN: Danger or Fun? encoding secret messages into HN comments

1•smalltorch•9m ago•1 comments

The Amish Are Falling in Love with AI

https://nymag.com/intelligencer/article/why-the-amish-are-falling-in-love-with-ai.html
1•bookofjoe•10m ago•1 comments

The World Needs Your Great Work

https://www.palladiummag.com/2026/03/17/the-world-needs-your-great-work/
1•ronfriedhaber•10m ago•0 comments

Wes mckinney releases multiple bangers

https://kenn.io/
2•pbd•10m ago•0 comments

Neanderthals may have been doing dentistry 59,000 years ago – without anesthetic

https://www.cbc.ca/radio/asithappens/neanderthals-may-have-been-dabbling-in-dentistry-59-000-year...
1•Brajeshwar•12m ago•0 comments

Brazil bans stablecoin and crypto settlement in cross-border payments

https://www.coindesk.com/policy/2026/05/02/brazil-s-central-bank-bans-stablecoin-and-crypto-settl...
1•sevenfoldnancy•13m ago•0 comments

Spotify Will Start Reserving Concert Tickets for Fans

https://www.hollywoodreporter.com/music/music-industry-news/spotify-will-start-reserving-concert-...
1•elffjs•13m ago•0 comments

Show HN: Write your BPF programs in Go, not C

https://github.com/boratanrikulu/gobee
1•boratanrikulu•14m ago•0 comments

Vitamin D acts more like a hormone than a vitamin

https://www.empirical.health/blog/vitamin-d-is-a-hormone/
1•brandonb•15m ago•0 comments

How Semantic SQL Works

https://cube.dev/blog/how-semantic-sql-works
1•pavel_tiunov•15m ago•0 comments

We replaced Redis with MySQL for inventory reservations – and it scaled

https://shopify.engineering/scaling-inventory-reservations
2•birdculture•15m ago•0 comments

1986: Email – The perfect tech for the Jet Set? BBC [video]

https://www.youtube.com/watch?v=JqJ159pngY8
2•ljoshua•16m ago•0 comments

Project Hail Mary – Stellar Navigation Chart

https://valhovey.github.io/gaia-mary/
3•speleo•17m ago•0 comments

Mnemo – mobile reading companion that reflects with you

https://trymnemo.net
1•owenHochwald•17m ago•0 comments

Gemini 3.5 deleted 28,745 lines, broke production, and wrote a fake post-mortem

https://old.reddit.com/r/Bard/comments/1tisrg1/gemini_35_deleted_28745_lines_broke_production/
1•YeGoblynQueenne•17m ago•0 comments

Zero Lang

https://github.com/vercel-labs/zerolang
2•https443•18m ago•0 comments

Fixing a 20 year old bug in Debian curl

https://blog.sergiodj.net/posts/fixing-20-year-old-bug-debian-curl/
1•speckx•19m ago•0 comments

Inside the AI compute crunch driving Google researchers to quit

https://www.latimes.com/business/story/2026-05-18/inside-ai-compute-crunch-driving-google-researc...
2•1vuio0pswjnm7•23m ago•0 comments

WebRTC Latency: side-by-side comparison [video]

https://www.youtube.com/watch?v=OmLS9rE6dTU
2•chfritz•23m ago•0 comments

Kansas City Public Schools goes all-in on Apple with 30k devices

https://macdailynews.com/2026/05/21/kansas-city-public-schools-goes-all-in-on-apple-transitioning...
3•speckx•25m ago•1 comments

A star gone rogue tears through the Galaxy

https://www.nature.com/articles/d41586-026-01591-9
4•Brajeshwar•26m ago•0 comments