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!

Show HN: ItchCord – Discord Rich Presence for itch.io games

https://itchcord.vrma.dev
1•shredswap•3m ago•0 comments

Show HN: Morning Stack finds real job openings, tweaks resume and cover letter

https://morningstack.app/demo/
1•hillj23•5m ago•1 comments

Formal Methods and the Future of Programming

https://blog.janestreet.com/formal-methods-at-jane-street-index/
1•dcre•6m ago•0 comments

Show HN: Grade your growth rate using Paul Graham's two-number math

https://www.brutal-audit.com/growth
1•smakosh•8m ago•0 comments

Telescope Rancher Who Manages Telescopes Each Night on a Texas Ranch

https://www.techeblog.com/telescope-rancher-texas-ranch/
1•mhb•9m ago•0 comments

Your ePub Is Fine. Kobo Disagrees. Blame Adobe

https://andreklein.net/your-epub-is-fine-kobo-disagrees-blame-adobe/
2•sohkamyung•11m ago•0 comments

What's Going on with the Web?

https://iam.mt/whats-going-on-with-the-web/
2•thallavajhula•13m ago•1 comments

What even is food authenticity? Why we guard carbonara, and flatten chicken rice

https://iza.ac/posts/2026/06/food-authenticity/
1•infinitewalk•13m ago•0 comments

Show HN: Cordium – FOSS identity-based sandbox platform with zero-trust access

https://github.com/octelium/cordium
1•geoctl•18m ago•0 comments

Early Research Suggests a Path to Predict and Prevent Lung Cancer

https://www.nytimes.com/2026/06/04/well/lung-cancer-prevention.html
1•mhb•19m ago•0 comments

Stanford grads walk out on Google CEO Sundar Pichai speech

https://twitter.com/maattttbrown/status/2066215255987163246
6•sosomoxie•20m ago•0 comments

Nothing CEO: Phone Prices Will Rise, RAM Accounts for over 50% of Phone Costs

https://www.theverge.com/gadgets/949403/nothing-carl-pei-ram-phone-prices
1•karakoram•21m ago•0 comments

Antidepressants and antipsychotics could be alternatives to opioids, study finds

https://www.theguardian.com/society/2026/jun/14/other-medications-opioids-alternatives-study
1•bookofjoe•21m ago•1 comments

Chinese Drivers Are Using Tiny Plastic Heads to Fool Tesla Autopilot Safeguards

https://www.wired.com/story/chinese-drivers-are-using-tiny-plastic-heads-to-fool-teslas-autopilot...
1•srameshc•22m ago•0 comments

The Jqwik Anti-AI Affair

https://blog.johanneslink.net/2026/06/09/the-jqwik-anti-ai-affair/
1•dgellow•22m ago•0 comments

A New Path to Preventing Cancer

https://erictopol.substack.com/p/a-new-path-to-preventing-cancer
2•paulpauper•24m ago•0 comments

The Former GOP Operative Running a News Site for the 'Politically Homeless'

https://www.wsj.com/business/media/the-bulwark-sarah-longwell-77bc9475
2•paulpauper•25m ago•0 comments

Instagram is obsessed with me (and you)

https://denkthoughts.com/instagram-is-obsessed-with-me
1•mootdentures•25m ago•0 comments

Bob Dylan (and others) on turning 80

https://www.nytimes.com/2026/06/14/opinion/trump-turns-80.html
1•paulpauper•26m ago•0 comments

Let Me Repost

https://github.com/harrisjerico30-dotcom/G4-construct-
1•jericoharris•27m ago•0 comments

Fluorine Fermi – Monero's Biggest Update

https://fluorinefermi.club/
1•Cider9986•27m ago•0 comments

Carney Says Anthropic Ban Shows Risk of Relying on Big AI Models

https://www.bloomberg.com/news/articles/2026-06-14/carney-says-anthropic-ban-shows-risk-of-relyin...
2•root-parent•27m ago•0 comments

Repo Slop-Score

https://slopscan.ava.pet
1•cohix•28m ago•0 comments

Bran flakes classed as junk food under UK Labour health plan

https://www.pressreader.com/uk/the-sunday-telegraph/20260614/281500757946930
1•Gaishan•30m ago•0 comments

China's Universities Cut 12,000 'Obsolete' Degrees Amid Race to Embrace AI Era

https://www.scmp.com/economy/china-economy/article/3356913/chinas-universities-cut-12000-obsolete...
2•karakoram•30m ago•0 comments

Show HN: Is Fable 5 available? (it is not)

https://isfable5available.com
2•bArmageddon•33m ago•0 comments

Still: Amortized KV Cache Compaction in a Single Forward Pass

https://arxiv.org/abs/2606.07878
2•simonpure•37m ago•0 comments

Show HN: BootProof – Cryptographically prove any GitHub repo boots locally

https://github.com/bootproof/bootproof
2•Bucko1•38m ago•0 comments

The Math of Doodling [video] ravi vakil

https://www.youtube.com/watch?v=TN-G2nJlW3U
1•marysminefnuf•39m ago•0 comments

Did Anthropic ask for this?

https://www.verysane.ai/p/did-anthropic-ask-for-this
59•ad8e•43m ago•20 comments