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!

Rise of the $100 Hot Dog

https://www.wsj.com/arts-culture/food-cooking/the-rise-of-the-100-hot-dog-2ac6f322
1•bcaulfield•1m ago•0 comments

The Race to Come Up with the Next Big Sleep Drug

https://www.wsj.com/health/pharma/the-race-to-come-up-with-the-next-big-sleep-drug-473a4a5e
1•bookofjoe•1m ago•1 comments

New York Has Sued Kalshi for Running Illegal Gambling Operation

https://ag.ny.gov/press-release/2026/governor-hochul-and-attorney-general-james-announce-new-york...
1•cdrnsf•3m ago•0 comments

The messy politics behind Google's big AI shakeup

https://www.theverge.com/tech/976108/google-ai-leadership-shakeup-jeff-dean-demis-hassabis-deepmind
1•Anon84•3m ago•0 comments

BMS ran AI for drug discovery 3 years- what they found and why they doubled down

https://blogs.nvidia.com/blog/bristol-myers-squibb-building-life-science-industrys-most-advanced-...
1•bcaulfield•3m ago•0 comments

With software alone, one B200 beats the LPU and gets close to Cerebras

https://runinfra.ai/news/b200-beats-the-lpu
2•OsamaJaber•4m ago•0 comments

Why AI is a risk to Communist China

https://www.economist.com/leaders/2026/08/06/why-ai-is-a-risk-to-communist-china
1•petethomas•4m ago•0 comments

Several plaster noses hidden in plain sight around London's Soho neighborhood

https://www.atlasobscura.com/places/seven-noses-of-soho
1•bcaulfield•4m ago•0 comments

Google shifts AI power back to Brin as DeepMind's Hassabis steps aside

https://giftarticle.ft.com/giftarticle/actions/redeem/1313659c-650d-45f9-9f81-f9f18a7f8b69
1•nmstoker•6m ago•0 comments

Kitesurf:The agent-first browser that runs in isolates on Cloudflare

https://blog.cloudflare.com/kitesurf/
2•cebert•10m ago•1 comments

AMA: MiniMax H3 Team – Ask anything about open video generation model

https://old.reddit.com/r/StableDiffusion/comments/1vh9rtw/ama_minimax_h3_team_ask_us_anything_abo...
1•embedding-shape•13m ago•0 comments

Metabase: Unauthenticated SQL injection in password reset (CVSS 10.0)

https://github.com/metabase/metabase/security/advisories/GHSA-vwf4-m7j8-wcjf
2•thejosh•17m ago•1 comments

Beyond the Library: An Agentic Framework for Autoformalizing Research Math

https://arxiv.org/abs/2606.31134
1•matt_d•18m ago•0 comments

Atari Legacy Magazine – By Paul Lefebvre

https://www.goto10retro.com/p/atari-legacy-magazine
1•rbanffy•18m ago•0 comments

MFLUSIVA

https://www.modernatx.com/ir-insights-mflusiva
1•jawns•18m ago•0 comments

GitHub Actions suffers second-longest major outage in its history

https://www.githubstatus.com/uptime/br0l2tvcx85d
40•KernelPryanic•20m ago•1 comments

GPS and the Lost Art of Getting Lost

https://www.newyorker.com/news/annals-of-inquiry/gps-and-the-lost-art-of-getting-lost
3•fortran77•23m ago•0 comments

Show HN: Learn System Design, one campaign at a time

https://scalequest.io/
3•raaa1•23m ago•0 comments

Show HN: Higher-dimensional lattices unfolded into the 2D plane

https://number-garden.com/?@THLP@
2•unitX•26m ago•1 comments

Welcoming the Nepalese Government to Have I Been Pwned

https://www.troyhunt.com/welcoming-the-nepalese-government-to-have-i-been-pwned/
12•gnabgib•27m ago•3 comments

In Menlo Park housing fight, Bonta sends potential warning to California cities

https://www.sfchronicle.com/realestate/article/housing-fight-menlo-park-bonta-22372361.php
2•randycupertino•27m ago•0 comments

Dice, (De)Convolution and Generating Functions

https://blog.demofox.org/2025/01/05/dice-deconvolution-and-generating-functions/
1•sebg•28m ago•0 comments

China built its 'Manhattan Project' to rival the West in AI chips [video]

https://www.youtube.com/watch?v=25ttDa0eqJQ
2•binyu•28m ago•0 comments

Show HN: Tmagnet – a terminal torrent client written in C

https://codeberg.org/ivanjeka/tmagnet
2•ivanjeka•28m ago•0 comments

Show HN: Pokémon Emerald Ported to Raspberry Pi Pico 2

https://github.com/mattdeeds/pokeemerald-rp2350
10•mdeeds•30m ago•0 comments

Priormarket – a fundamentals research terminal for Kalshi/Polymarket

1•mjarard•33m ago•0 comments

Waxrunner – Discogs wantlist cost optimization with a constraint solver

https://waxrunner.com/
1•hybridtheory•35m ago•0 comments

Owner of bike maker Raleigh files for insolvency

https://www.bbc.co.uk/news/articles/c4gv45w4j8eo
2•JohnHammersley•37m ago•3 comments

OpenAI's latest math breakthroughs commit research misconduct, experts say

https://www.scientificamerican.com/article/openais-latest-math-breakthroughs-commit-research-misc...
3•beardyw•38m ago•0 comments

ATProto for Distributed Systems Engineers

https://atproto.com/articles/atproto-for-distsys-engineers
4•LelouBil•43m ago•1 comments