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!

Why many LLM fail this The car wash is 100 meters away. Should I walk or drive? [video]

https://www.youtube.com/watch?v=cMr65v3HChI
1•yllberisha•3m ago•0 comments

Oman says grounded tanker oil spill covers 400 square km

https://www.reuters.com/business/energy/oil-spill-off-oman-tanker-under-sanctions-against-russia-...
1•geox•3m ago•0 comments

Fastpath: URL Path Copier

https://github.com/gabesullice/fastpath
1•gabesullice•5m ago•1 comments

Place for AI agents to anonymously complain

https://botvents.com/
1•oumua_don17•9m ago•0 comments

Cyber Resilience Act

https://digital-strategy.ec.europa.eu/en/policies/cyber-resilience-act
1•Bluestein•10m ago•0 comments

Show HN: An open-source Rogo/Hebbia alternative I built for a PE client on AWS

https://github.com/vivan1211/opengp
1•vivan_121•11m ago•0 comments

Extemporaneous UIs

https://alexanderobenauer.com/labnotes/041/
1•zetamax•16m ago•0 comments

Moving Forward from Hot Fable Summer

https://alexstamos.com/p/moving-forward-from-hot-fable-summer
1•_tk_•17m ago•0 comments

Claude making verbose code comments – ignoring instructions to stop

https://github.com/anthropics/claude-code/issues/65961
4•nomilk•21m ago•1 comments

Show HN: Shingou – I hash-commit every sentiment signal so my backtest can't lie

https://shingou.io/?via=hn
2•adoltech•23m ago•0 comments

Sub-$20 Japanese Tool Kit Is Ridiculously Good [video]

https://www.youtube.com/watch?v=A_vBySNkKoA
1•sponno•23m ago•0 comments

Updating Robots in the Field

https://blog.bensoussan.de/post/2026-08-11-updating-robots-in-the-field/
2•davidbensoussan•25m ago•1 comments

Voxa – open-source video dubbing that doesn't drift out of sync

https://github.com/akshinmrv/Voxa
1•akshinmrv•26m ago•0 comments

French lawyers are being told to use open source AI models for confidential data

https://huggingface.co/blog/jedisct1/lawyers-and-local-ai
2•jedisct1•26m ago•0 comments

Spark Overview

https://learn.adacore.com/courses/intro-to-spark/chapters/01_Overview.html
1•Bluestein•27m ago•0 comments

Creusot is a deductive verifier for the Rust programming language

https://creusot.rs/
1•Bluestein•29m ago•0 comments

Show HN: BaaStream – CLI for scanning infrastructure for compliance risks

https://github.com/amulyakashyap09/baastream
1•amulyakashyap09•31m ago•0 comments

The Careware Idea

https://arachnoid.com/careware/
1•pingou•35m ago•0 comments

Show HN: VoxHearth / small local privacy-focused STT Mac app

https://github.com/stephansturges/voxhearth-mac
1•stephanst•35m ago•0 comments

The End of Reading Is Here

https://www.theringer.com/podcasts/plain-english-with-derek-thompson/2026/07/28/the-end-of-readin...
1•wertyk•35m ago•0 comments

I was accused of using AI in my dissertation but I wrote it all myself

https://www.bbc.com/news/articles/crelev8gw5xo
5•tcp_handshaker•39m ago•1 comments

Autonomous robots are much closer than you think – Sergey Levine [video]

https://www.youtube.com/watch?v=48pxVdmkMIE
2•ronfriedhaber•39m ago•0 comments

(EU age verification) Alternative protocol idea that doesn't require specific OS

https://github.com/eu-digital-identity-wallet/av-doc-technical-specification/issues/64
3•roundabout-host•40m ago•1 comments

Farewell etaoin shrdlu: the end of the Linotype at the New York Times

https://www.youtube.com/watch?v=1MGjFKs9bnU
2•fanf2•44m ago•0 comments

Tokenflation: When "Hi" triggers 33 tool calls

https://quesma.com/blog/tokenflation-when-hi-triggers-33-tool-calls/
3•Bluestein•44m ago•0 comments

HTML over WebSockets: real-time SPAs with barely any JavaScript

https://en.andros.dev/blog/ef4968f5/html-over-websockets-real-time-spas-with-barely-any-javascript/
1•andros•47m ago•0 comments

Log-Aesthetic Curves

https://www.yoshida-lab.net/english/research-e/log-aesthetic-curves
1•lioeters•49m ago•0 comments

Claude Code pricing: same tokens, same model, up to 40x the price

https://quesma.com/blog/claude-code-pricing-for-enterprise/
7•jakozaur•51m ago•0 comments

Eight Myths About Architecture Refuted

https://www.bensouthwood.co.uk/p/eight-architecture-myths-busted-by
2•barry-cotter•55m ago•0 comments

What changes Claude Code behaviour in Claude.md (with a free generator)

https://smeltworks.com/claudemd/
1•shipkit_pbzs•56m ago•0 comments