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!

Marches and Gnats – Fantastical game of programming challenges

https://mng.quest/
1•ColinWright•1m ago•0 comments

A cinematic landing-page hero for 80 cents (GPT Image 2 still and Veo 3.1)

https://johnkueh.com/articles/veo-cinematic-hero
1•johnkueh•1m ago•0 comments

How Cornish miners brought football to Mexico

https://www.bbc.com/sport/football/articles/cx21q453l4jo
2•rustoo•1m ago•0 comments

Michael Burry says neither SpaceX nor Anthropic is worth $1T

https://www.businessinsider.com/big-short-michael-burry-spacex-anthropic-ipo-ai-bubble-claude-2026-6
3•mgh2•4m ago•0 comments

This project is most certainly a violation of the original EPL of jqwik

https://github.com/dave-a-human/axiomcheck/issues/1
2•phoronixrly•5m ago•0 comments

Bug hunt: Why you only need Paris to beat Pizza Tycoon (1994)

https://pizzalegacy.nl/blog/bug-hunt-why-you-only-need-paris-to-beat-pizza-tycoon.html
1•cowomaly•7m ago•0 comments

The Google Capital Company

https://stratechery.com/2026/the-google-capital-company/
1•berlianta•8m ago•0 comments

Show HN: Synapse – 2.9MB Mac app with screenshot, clipboard, Keep Awake and more

https://www.synapsemac.com/
4•harshanacz•10m ago•2 comments

Lawsuit Against Amazon: 'Subscribe and Save' Program Can Cost You More

https://www.msn.com/en-us/money/companies/amazon-lured-customers-into-enrolling-in-subscribe-save...
1•thisislife2•11m ago•0 comments

Adafruit Receives Demand Letter from Fenwick Legal Counsel on Behalf of Flux.ai

https://blog.adafruit.com/
2•semanser•13m ago•0 comments

America's Corporate Protector

https://www.bloomberg.com/features/2026-trump-cfpb-enforcement
2•petethomas•13m ago•0 comments

MultiClip: A dead-simple clipboard manager that solves a real problem

https://github.com/jerfauvet-arch/MultiClip
1•jer_fau_chat•15m ago•0 comments

Put your phone away: Sweden urges parents to restrict screen use around children

https://www.theguardian.com/world/2026/jun/01/sweden-urges-parents-to-restrict-phone-use-around-c...
3•Markoff•15m ago•1 comments

Ask HN: What is your opinion on index rule changes to accommodate Mega-Cap IPOs?

1•figmert•18m ago•0 comments

Ask HN: Do you like the Cinematography of "The Batman" (2022)?

1•wasimsk•18m ago•0 comments

Claude Code from the Beach

https://rogs.me/2026/02/claude-code-from-the-beach-my-remote-coding-setup-with-mosh-tmux-and-ntfy/
1•emirb•18m ago•1 comments

Russia greatly expands SORM surveillance requirements

https://risky.biz/risky-bulletin-russia-greatly-expands-sorm-surveillance-requirements/
2•aa_is_op•19m ago•0 comments

When the Earth Had Supermountains [video]

https://www.youtube.com/watch?v=PUDvZYXxMuQ
1•thunderbong•20m ago•0 comments

Bm25

https://arpitbhayani.me/blogs/bm25/
1•prakashqwerty•21m ago•0 comments

Stop Ruining It

https://seths.blog/2026/06/stop-ruining-it/
3•herbertl•21m ago•0 comments

MDMA – Turn LLM Responses into Interactive UI via MCP

https://github.com/MobileReality/mdma
4•mattsadowsky•27m ago•2 comments

Mathematician solves origami donut efficiency challenge with fewest folds

https://phys.org/news/2026-06-mathematician-origami-donut-efficiency-fewest.html
1•pseudolus•27m ago•0 comments

In a world of distraction, I needed to relearn how to read classic books

https://www.theguardian.com/books/2026/jun/02/classic-novels-relearn-how-to-read-distractions-scr...
1•robaato•28m ago•0 comments

Passion and Work

https://nik.art/passion-and-work/
1•herbertl•30m ago•0 comments

Proton Mail adds support for Gmail account syncing and sending

https://cyberinsider.com/proton-mail-adds-support-for-gmail-account-syncing-and-sending/
3•robertlagrant•32m ago•1 comments

Ask HN: What Hacker News comments have you bookmarked?

4•chistev•35m ago•2 comments

Kairo: Open-source project memory for understanding how a repo evolved

https://github.com/ElhamdevelopmentStudio/kairo
2•elhamdev•35m ago•1 comments

Good LLM development and usage patterns

https://blog.bluebyday.com/posts/good-llm-dev-and-usage/
2•_QrE•36m ago•0 comments

From Specialists to Builders: How AI Agentic Coding Is Reshaping Software Teams

https://aliparnan.com/blog-specialists-to-builders.html
2•Alpn13•37m ago•0 comments

Agent payments reach 3.1M x402 transactions in 30 days

https://cryptobriefing.com/agent-payments-growth-x402/
5•alexreysa•38m ago•0 comments