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

Comments

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

If the vote you rocked, your personal info can be grokked

https://www.theregister.com/2026/05/04/public_voter_records_weaponized_for_privacy_violation/
1•Bender•31s ago•0 comments

Code on Incus

https://github.com/mensfeld/code-on-incus
1•felipemesquita•2m ago•0 comments

Ramp.com Offering Incentives to Agents

1•brendon9x•4m ago•0 comments

The Venture-Capital Populist

https://www.theatlantic.com/magazine/2026/06/david-sacks-crypto-ai-venture-capital/686941/
1•JumpCrisscross•5m ago•0 comments

The Rise of Emotional Surveillance

https://www.theatlantic.com/culture/2026/05/worker-surveillance-emotion-ai/687029/
1•JumpCrisscross•6m ago•0 comments

PgBackRest is dead. Now what?

https://mydbanotebook.org/posts/pgbackrest-is-dead.-now-what/
1•birdculture•6m ago•0 comments

Ship a privacy policy with your TanStack app

https://www.policystack.dev/blog/tanstack-privacy-policy
1•jamie_davenport•10m ago•0 comments

Hiring Hot Spots Where College Grads Are Landing Good Jobs

https://www.wsj.com/lifestyle/careers/cities-college-graduate-new-hires-c3771d3d
1•JumpCrisscross•11m ago•0 comments

Piloting Agentic Engineering: Lessons from the Aviation Industry

https://mwalterskirchen.dev/blog/piloting-agentic-engineering/
1•mwalterskirchen•11m ago•0 comments

What I Packed to Run 80 Miles Across the Italian Apennine Mountains

https://www.wired.com/story/what-i-packed-to-run-80-miles-italian-apennine/
1•joozio•12m ago•0 comments

When Too Many Maps Overlap on One Person

https://yusufaytas.com/when-too-many-maps-overlap-on-one-person
7•yusufaytas•12m ago•0 comments

Become a product-first software engineer

https://www.jakeworth.com/posts/become-a-product-first-software-engineer/
1•jwworth•13m ago•0 comments

Show HN: Cryptick – free and open-source alternative to Minute Cryptic

https://cryptick.wildvale.co.uk/
1•probablyfine•13m ago•0 comments

Show HN: Zerminal – a terminal-first Zed fork for AI coding agents

https://zerminal.dev
3•e-clinton•15m ago•0 comments

Life After the VCR: Choosing DVD or Divx (1999)

https://archive.nytimes.com/www.nytimes.com/library/tech/99/01/circuits/articles/28pete.html
1•integrale•17m ago•0 comments

ASML's Best Selling Product Isn't What You Think It Is

https://www.siliconimist.com/p/asmls-best-selling-product
7•johncole•17m ago•3 comments

When it breaks, who pays?

https://opsfabric.io/blog/when-it-breaks-who-pays.html
1•taubek•17m ago•0 comments

Show HN: Google Video API bill for 4 videos. I built my own

1•iliashad•17m ago•0 comments

Samsung family pays off record $8B inheritance tax bill

https://www.bbc.com/news/articles/cn0px8g13xgo
1•yakkomajuri•19m ago•0 comments

All German left of center parties are leaving X

https://www.zeit.de/politik/deutschland/2026-05/parteien-x-account-aufgabe-bundestag-linke-spd-gr...
5•doener•21m ago•1 comments

There are only two paths left for software

https://a16z.com/there-are-only-two-paths-left-for-software/
1•vetler•22m ago•0 comments

AI is not "it", but industry doesn't realize

https://blog.unstacked.cc/posts/notes-and-learnings-about-ai/
3•unstacked•23m ago•0 comments

My grandad built the original R2-D2 for the first Star Wars film

https://twitter.com/robhawkes/status/2051228871064756592
2•robhawkes•25m ago•2 comments

United flight strikes truck on New Jersey Turnpike before landing at Newark

https://www.cbsnews.com/newyork/news/united-airlines-flight-hits-light-pole-at-newark-liberty-air...
2•berkeleyjunk•27m ago•0 comments

Story of Two GPUs: Characterizing the Resilience of Hopper H100 and Ampere A100

https://arxiv.org/abs/2503.11901
1•rbanffy•37m ago•0 comments

The bottleneck was never the code

https://www.thetypicalset.com/blog/thoughts-on-coding-agents
1•Anon84•39m ago•0 comments

Ask HN: What's everyone's stock picking flow in 2026? (successful or not)

1•fiiico•39m ago•0 comments

Inverse Chladni Energy Landscape Design

https://github.com/PaulBellette/chladni_inverse_design
1•salty_biscuits•42m ago•1 comments

SmartTune CLI – ArduPilot log analysis(MIT open source)

https://github.com/raylanlin/smarttune-cli
2•RaylanLIN•43m ago•0 comments

Jensen says Nvidia now has '0%' share in China, US export policy 'has backfired'

https://www.tomshardware.com/tech-industry/artificial-intelligence/jensen-says-nvidia-now-has-zer...
4•SanjayMehta•44m ago•0 comments