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 Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•Imustaskforhelp•15s ago•0 comments

Rootle – Browse and search remote source repositories without cloning

https://rootle.dev/
1•tknawara•1m ago•0 comments

Gigabyte RTX 3070 owner finds factory plastic on VRM pads after five years

https://www.tomshardware.com/pc-components/gpus/gigabyte-rtx-3070-owner-discovers-protective-film...
1•sbulaev•2m ago•0 comments

UK energy companies on alert after Iran-linked hackers shut down power facility

https://www.ft.com/content/bae67bb7-ebf8-44fc-8d55-bbfaada47eb7
1•sbulaev•2m ago•0 comments

New Zealand to introduce bill banning social media for children under 16

https://www.reuters.com/world/asia-pacific/new-zealand-introduce-bill-banning-social-media-childr...
1•geox•3m ago•0 comments

Superconducting temperature record set at ordinary pressures

https://www.anl.gov/article/superconducting-temperature-record-set-at-ordinary-pressures
1•WithinReason•3m ago•0 comments

LLM Tool Failures: Only 3 Root Causes – Value, Condition, Intent

https://github.com/Jang-woo-AnnaSoft/execution-state-preflight/blob/main/who-fills-in-the-form.md
1•offaxis•9m ago•1 comments

AI isn't the end goal. (my weird view)

1•respectattentio•10m ago•0 comments

Slovakia Finds Russian Backdoor in Traffic Speed Cameras

https://www.tomshardware.com/tech-industry/cyber-security/slovakia-discovers-russian-backdoors-in...
2•m463•11m ago•0 comments

AI stigma punishes legitimate use

https://blog.keyvan.net/p/ai-stigma-punishes-legitimate-use
1•k1m•12m ago•0 comments

Leaked video shows AirPods with built-in camera

https://www.macrumors.com/2026/08/17/camera-equipped-airpods-macos-26-7/
2•jibcage•12m ago•0 comments

New EU-wide product repair rules come into force

https://www.rte.ie/news/business/2026/0824/1588931-repair-rules/
2•austinallegro•22m ago•0 comments

tmp.0ut Volume 5 – 2026-08

https://tmpout.sh/5/
3•matt_d•22m ago•0 comments

Can AI Help Someone Get Closer to God? The Answer Is Dividing Opinions

https://moztako.me/can-ai-help-someone-get-closer-to-god/
3•vadinho•23m ago•1 comments

Can AI Do Philosophy? An Experiment (Part Two)

https://www.ryansimonelli.com/absolute-irony-blog/can-ai-do-philosophy-an-experiment-part-two
1•bananaflag•24m ago•1 comments

Cliamp – Terminal Music Player

https://www.cliamp.stream/#install
2•behnamoh•25m ago•0 comments

AliExpress Has Used WebAudio Fingerprinting to Track Users

https://www.techjuice.pk/aliexpress-webaudio-fingerprinting-tracking-bluetooth/
3•xhevahir•26m ago•0 comments

When Claude is down, do they have a backup Claude to investigate the root cause?

3•pykul•38m ago•2 comments

The Safeguards Have to Run

https://christophermeiklejohn.com/series/the-machine-in-the-lab/two-notebooks-lost-series/
1•azhenley•39m ago•0 comments

Figma Is Not Reality

https://yoshitha.net/blog/figma-is-not-reality/
1•prxtl•40m ago•1 comments

Fast-fashion giant Shein aims for $27B valuation in Hong Kong market debut

https://www.theguardian.com/business/2026/aug/24/fashion-giant-shein-27bn-valuation-hong-kong-mar...
2•Markoff•50m ago•0 comments

Attention is all we have: A conjectural theory of cognitive inequality

https://davidbessis.substack.com/p/attention-is-all-we-have
4•rzk•56m ago•0 comments

Compare robot recordings across runs

https://foxglove.dev/blog/compare-robot-recordings-across-runs
1•intrepidsoldier•57m ago•0 comments

Elevated Errors for Multiple Models

https://status.claude.com/incidents/vgz5psbjmt1h
11•rob•57m ago•2 comments

Claude.ai web interface to Claude down, again

7•b112•59m ago•7 comments

Tether: iMessage, SMS, etc. on Linux

https://zackbartel.com/blog/2026/08/tether/
3•zackb•1h ago•0 comments

Show HN: Scalattice Modelmeter. OSS price and latency bench for open models

https://scalattice.com/blog/modelmeter/
1•RomulusHill•1h ago•0 comments

Show HN: Searchable Stripe test cards with one-click copy

https://checkoutpage.com/tools/stripe-test-cards
1•fishsander•1h ago•0 comments

I Rented a 96 GB GPU and Took Uncensored Qwen3.8 From 44 to 125 tok/s

https://aseemshrey.com/blog/running-qwen3-8-27b-uncensored/
4•LuD1161•1h ago•0 comments

Show HN: Open-source calculator for "will my GPU run this LLM?"

https://jaeseok614.github.io/llm-gpu-checker-ko/
3•jaeseok614•1h ago•0 comments