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!

YC Startup Guaranteed Job Interviews for People Getting Company Logo Tattoo

https://www.wsj.com/lifestyle/careers/the-ai-startup-that-guaranteed-job-interviews-for-people-ge...
1•fortran77•1m ago•0 comments

Reimagine the World with Nano Banana in Google Earth

https://blog.google/products-and-platforms/products/earth/nano-banana-google-earth-image-generation/
1•soheilpro•4m ago•0 comments

Show HN: Real Estate Agent Email List – 1.1M+ US Realtor Contacts

https://www.usagentleads.com
1•qwikhost•5m ago•0 comments

How the HSA Became the Top%'s Wealth-Building Loophole

https://insurancedimes.com/2026/07/27/how-the-hsa-became-the-top-1-percents-ultimate-wealth-build...
1•crookedroad44•6m ago•0 comments

LinkedIn adds a 'seems like AI slop' button

https://www.theverge.com/ai-artificial-intelligence/973384/linkedin-seems-like-ai-slop-button
2•cwnyth•6m ago•0 comments

Refinement types for Rust

https://github.com/flux-rs/flux/
1•AsyncBanana•7m ago•0 comments

What did the Romans ever do for Christianity?

https://www.economist.com/culture/2026/07/23/what-did-the-romans-ever-do-for-christianity
2•andsoitis•13m ago•0 comments

Can LLMs have an "accent" like second language speakers?

1•hmokiguess•13m ago•0 comments

Agentic AI at Two Different Scales: Nanbeige4.2-3B and Laguna S2.1

https://kaitchup.substack.com/p/agentic-ai-at-two-different-scales
1•gmays•14m ago•0 comments

America's startup boom offers hope for the future of work

https://www.economist.com/leaders/2026/07/30/americas-startup-boom-offers-hope-for-the-future-of-...
2•andsoitis•14m ago•0 comments

MAME 0.289

https://www.mamedev.org/?p=565
4•chungy•18m ago•0 comments

Anthropic says Claude hacked three companies during tests

https://www.reuters.com/legal/litigation/anthropic-says-claude-ai-models-accessed-three-companies...
7•nerder92•26m ago•2 comments

DoC Announces LoIs With 7 Companies for $874M to Accelerate Semiconductor R&D

https://www.nist.gov/news-events/news/2026/07/department-commerce-announces-letters-intent-7-comp...
2•petethomas•30m ago•0 comments

Create your own startup in minutes

https://moneion.com
1•Developer_2•32m ago•2 comments

Why do OpenAI's GPT-2 weights beat mine? Part three: testing overtraining

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-3-overtraining
1•gpjt•33m ago•0 comments

Decimen Optical Transfer: fountain-coded QR file transfer

https://github.com/bashalarmistalt/decimen-optical-transfer/
1•thunderbong•37m ago•0 comments

The Automation Mindset: Why AI Rewards Builders and Sidelines Everyone Else

https://digitalmagazines.online/articles/the-automation-mindset-why-ai-rewards-builders
1•FeelingCreative•37m ago•0 comments

What Every Programmer Should Know About Twists of Elliptic Curves

https://leetarxiv.substack.com/p/twists-of-elliptic-curves
2•birdculture•37m ago•0 comments

US cites 'unauthorized travel' to end DACA status for mother deported to Mexico

https://apnews.com/article/daca-immigration-texas-uscis-09071c1707e6e1d385ca503c9c75bc6f
6•petethomas•38m ago•1 comments

Economist Style Plugins for Claude Code

https://github.com/TAJD/economist-style-guide-plugin
1•handfuloflight•39m ago•1 comments

Judge Voices Doubt US Has Justified Its Ban on Anthropic AI

https://www.bloomberg.com/news/articles/2026-07-30/judge-voices-doubt-us-has-justified-its-ban-on...
5•sbulaev•43m ago•0 comments

Cursor Benchmark Partners

https://cursor.com/blog/benchmarkpartners
1•MehrdadKhnzd•48m ago•0 comments

Show HN: A VS Code extension buffers NPM updates to avoid supply chain attacks

https://marketplace.visualstudio.com/items?itemName=about14sheep.tinynpm
1•about14sheep•53m ago•0 comments

Anthropic AI Models Hacked Three Organizations During Tests

https://www.bloomberg.com/news/articles/2026-07-30/anthropic-s-ai-models-hacked-three-organizatio...
4•evo_9•57m ago•0 comments

Show HN: Great Spectations, the Spec Checker

https://greatspectations.com
1•RustyRussell•58m ago•1 comments

NeuronAI turns smart solutions into voice

https://neuronai.uz/en/
3•yutabek•1h ago•0 comments

We accidentally built an LLVM compiler for Jax

https://iza.ac/posts/2026/07/accidental-llvm-compiler-for-jax/
2•infinitewalk•1h ago•0 comments

ISS Mimic

https://iss-mimic.github.io/Mimic/dashboard.html
1•michaefe•1h ago•2 comments

The Religion of Speed

https://graybeard.ing/the-religion-of-speed/
3•MobiusHorizons•1h ago•2 comments

Premier league bans gambling sponsors

https://www.footyheadlines.com/2646571793/betting-ban-takes-effect-no-more-gambling-sponsors-in-t...
3•paoliniluis•1h ago•1 comments