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!

US Agency to Rewrite Rules to Address Vehicle Headlight Glare

https://www.reuters.com/world/us/us-agency-rewrite-rules-reduce-vehicle-headlight-glare-2026-10-06/
1•m463•41s ago•0 comments

A college told Flock to remove its cameras. The company refused

https://www.opencampus.org/2026/10/09/to-protect-immigrant-students-a-chicago-area-college-told-f...
1•DeepLogin•2m ago•0 comments

A college tried to cancel its Flock Safety contract and it refused

https://www.theverge.com/tech/1009411/elgin-community-college-flock-safety-cameras
4•sbulaev•4m ago•0 comments

Has mainstream cryptography provided 30 years of protection? (No, but improving)

https://dreamstation.systems/personal/crypto30years.html
1•robinpie•6m ago•0 comments

Passkeys are a trap. Do not use them

https://nonfunctional.substack.com/p/passkeys-are-a-trap-do-not-use-them
13•laurex•12m ago•0 comments

Amazed and Disappointed by AI Troubleshooting

https://blog.miladibra.com/posts/amazed-and-disappointed-at-the-same-time/
1•miladibra•12m ago•0 comments

How do you test AI-generated UIs without a visual baseline?

https://instantsite.app
1•tolka•14m ago•0 comments

Each town should own its data center

https://utopai.substack.com/p/each-town-should-own-its-data-center
1•cyberneticc•16m ago•0 comments

I built an app to not forget therapy

https://mytherapynotes.co
2•Barak23230•20m ago•1 comments

How I manage persistent Claude Code loops: Spool

https://github.com/enes-alatas/spool
2•enesalatas•21m ago•1 comments

Botmail: A mailbox for every AI agent

https://botmail.pro/
3•handfuloflight•23m ago•0 comments

An AI agent's $20 Kalshi account, with an exact reward model

https://github.com/mirabilis-agent/lip-ledger
3•mirabilisagent•27m ago•0 comments

Shapefit: Turn irregular shape masks into clean polygons

https://github.com/nickponline/shapefit
2•nickponline•27m ago•1 comments

Show HN: Cachety – Watermark ID documents in the browser, nothing is uploaded

https://cachety.com
2•aminmoradi•27m ago•0 comments

But how to get to that European cloud?

https://berthub.eu/articles/posts/now-how-to-get-that-european-cloud/
4•birdculture•28m ago•0 comments

Hermitd, a Claude Code plugin like Claude Tag, but local

https://github.com/gtapps/hermitd
2•gtapps•28m ago•1 comments

CertusAI.dev, the living OS for physical AI

https://certusai.dev/
1•enaguthiabhishe•37m ago•0 comments

Estimating the probability of faults causing inconsistent state

https://tkareine.org/articles/estimating-probability-of-faults-causing-inconsistent-state.html
1•tkareine•37m ago•0 comments

Show HN: One link, one message – replace it by paying $1 more than the last

https://onelinkwins.com/
1•colors__•38m ago•0 comments

Show HN: Rhci – A Small GHCi in Ruby

https://github.com/beleon/rhci
2•rowbin•39m ago•0 comments

The Sleepy Insurance Product That Came to Power Private Credit's Ascent

https://www.wsj.com/finance/the-sleepy-insurance-product-that-came-to-power-private-credits-ascen...
2•kamaraju•40m ago•0 comments

Show HN: THX-01 – Open-source decision model, free API, 60M+ tokens processed

https://twitter.com/reversedoofz/status/2109228322752471304
3•lebagetdefrance•40m ago•0 comments

Hacking Cheap Smart Photo Frames into a Family Dashboard – Wes Bos

https://wesbos.com/hacking-smart-photo-frames
3•tambourine_man•41m ago•1 comments

Ask HN: What is the most obscure book you own?

3•Kovah•42m ago•2 comments

How the AI Boom Ends

https://www.wsj.com/opinion/how-the-ai-boom-ends-0d9d47e7
2•kamaraju•42m ago•0 comments

Nuclear war and malicious use of AI threaten end of humanity by 2100, Lancet say

https://www.healthdata.org/news-events/newsroom/news-releases/new-lancet-commission-provides-road...
2•DeepLogin•44m ago•0 comments

China's Delivery Robots Are Learning to Tackle the Night Shift

https://www.bloomberg.com/news/features/2026-10-08/china-s-delivery-robots-are-learning-to-tackle...
3•radley•47m ago•0 comments

Show HN: Moodi – A tiny 3D character for your app's loading states

https://www.getmoodi.dev
1•itsk0rn3l•50m ago•0 comments

Show HN: LLMxRay an open-source observability tool for LLMs

https://github.com/LogneBudo/llmxray
2•lognebudo•54m ago•0 comments

Air Canada's woeful security at cargo warehouse

https://nationalpost.com/news/air-canadas-woeful-security-at-cargo-warehouse-at-time-of-torontos-...
2•BXLE_1-1-BitIs1•55m ago•1 comments