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!

A New NASA Design Turbocharges Nuclear Spacecraft

https://spectrum.ieee.org/bimodal-nuclear-spacecraft
1•sohkamyung•9s ago•0 comments

Settlement a Win for Meta

https://www.techdirt.com/2026/08/26/meta-just-paid-nearly-17-billion-to-make-sure-it-gets-to-writ...
1•vjulian•20s ago•0 comments

Scented cleaners can create nanoparticles that reach deep into the lungs

https://phys.org/news/2026-08-scented-cleaners-nanoparticles-deep-lungs.html
1•mdp2021•1m ago•1 comments

Brain preservation as existential risk reduction

https://preservinghope.substack.com/p/brain-preservation-as-existential
1•arielzj•5m ago•0 comments

Two Alleged 'TeamPCP' Hackers Arrested in Australia

https://krebsonsecurity.com/2026/08/two-alleged-teampcp-hackers-arrested-in-australia/
1•hacb•6m ago•0 comments

The AI Hater's Manifesto

https://www.wheresyoured.at/the-ai-haters-manifesto/
2•sqbic•7m ago•0 comments

How the Strategic Petroleum Reserve Works

https://www.construction-physics.com/p/how-the-strategic-petroleum-reserve
2•chmaynard•8m ago•0 comments

Google's AI-generated overviews shape Swiss democracy

https://www.swissinfo.ch/eng/digital-democracy/how-googles-ai-generated-overviews-shape-swiss-dem...
1•giuliomagnifico•10m ago•0 comments

Ask HN: What AI-visibility tactics have worked best for you so far?

1•dayalp•11m ago•0 comments

Show HN: BAIhAIs – an autonomous art school for AI agents

https://baihais.com/
3•demonstrandom•12m ago•0 comments

Show HN: CivicBinder – Ada Title II readiness for small public entities

https://civicbinder.org
2•kyisaiah47•13m ago•0 comments

Electric rain can eat through metal

https://www.scientificamerican.com/article/electric-rain-can-eat-through-metal/
1•sohkamyung•13m ago•0 comments

My customer unsubscribed. But I'm happy

1•alfarez•13m ago•0 comments

Landsat 9 pass captured the effects of yesterday's catastrophic glacier collapse

https://twitter.com/WxNB_/status/2092875025246261494
2•chinathrow•14m ago•0 comments

US Navy tells sailors and their families: scrub your social media

https://www.bitdefender.com/en-us/blog/hotforsecurity/us-navy-sailors-families-scrub-social-media...
1•speckx•14m ago•0 comments

Air Conditioning Is Not a Luxury, It Is a Necessity

https://humanprogress.org/ac-is-not-a-luxury-it-is-a-necessity/
28•surprisetalk•16m ago•23 comments

The Black Hole Paradox That Keeps Physicists Awake at Night [video]

https://www.youtube.com/watch?v=jCc1B8i_J44
1•binyu•18m ago•0 comments

Mycotoxin contamination in plant-based beverages and meat alternatives in the UK

https://www.sciencedirect.com/science/article/pii/S0956713525007790?via%3Dihub
2•bookofjoe•22m ago•0 comments

A .horse by any other name: ICANN's $500M expansion of the DNS namespace

https://i15s.org/essays/a-horse-by-any-other-name/
1•remcovm•24m ago•0 comments

Software should work, and talking about it needn't be boring

https://www.theregister.com/columnists/2026/08/24/software-should-work-and-talking-about-it-needn...
2•vintagedave•26m ago•1 comments

Stopping the War Against Sleep – By a Midwestern Doctor

https://www.midwesterndoctor.com/p/stopping-the-war-against-sleep
3•bilsbie•26m ago•0 comments

The Myth of the Independent Girlboss – First Things

https://firstthings.com/the-myth-of-the-independent-girlboss/
2•bilsbie•27m ago•0 comments

Building Linux eBPF/XDP Apps on macOS (Apple Silicon)

https://openbld.net/blog/build-xdp-ebpf-macos-guide/
1•m0zgen•28m ago•1 comments

How Americans see EU Tech

https://www.youtube.com/watch?v=gGlpBuW6ZFc
1•Bost•28m ago•0 comments

Test File

https://file.com/test/test
1•dpyadavofficial•29m ago•0 comments

What 2000 Buried Underpants Revealed About Where Soil Is Most Alive

https://studyfinds.com/what-2000-buried-underpants-revealed-about-where-soil-is-most-alive/
2•mdp2021•30m ago•1 comments

Alzheimer's Damage in Mice Reversed with Just Two Injections

https://www.sciencealert.com/scientists-reverse-alzheimers-damage-in-mice-with-just-two-injections
5•ivell•33m ago•0 comments

Hugging Face debuts Microduck, an adorable $399 waddling robot

https://www.axios.com/2026/08/27/hugging-face-debuts-microduck-a-399-robot
2•thm•34m ago•0 comments

Meta reportedly abandoned an AI-focused restructuring plan laying off thousands

https://www.engadget.com/2244816/meta-reportedly-abandoned-an-ai-focused-restructuring-plan/
3•AtillaBosma•36m ago•1 comments

How I communicate as an engineer

https://dhrumil.ca/thoughts/how-to-communicate-as-an-engineer
1•dhrumilcse•37m ago•0 comments