frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

zljdanceholic•7mo 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!

SedaiBasic2: A modern reimplementation of Commodore BASIC v7

https://github.com/camauri/SedaiBasic2
1•amichail•1m ago•0 comments

Introducing Proton Sheets: Protect the data that drives your business

https://proton.me/blog/sheets-proton-drive
1•akyuu•2m ago•0 comments

Aristotle from HarmonicMath has solved Erdős Problem 124 in LEAN

https://xenaproject.wordpress.com/2025/12/05/formalization-of-erdos-problems/
1•unprovable•2m ago•0 comments

Show HN: FuseCells – a handcrafted logic puzzle game with 2,500 levels

https://apps.apple.com/us/app/fusecells-logic-grid-puzzle/id6754704139
1•keini•2m ago•1 comments

Empirical data on human chain-of-thought: 100 thought intrusions, one stopwatch

https://doi.org/10.13140/RG.2.2.14609.08800
1•Fanaxuki•3m ago•1 comments

Petit Louis – Baby tracker that predicts when your baby will nap

https://apps.apple.com/us/app/petit-louis-baby-tracker/id6754668538
1•sfl83•3m ago•1 comments

A fork of Calibre called Clbre, because the AI is stripped out

https://github.com/grimthorpe/clbre
1•pabs3•4m ago•0 comments

Former deep-cover Russian spy leads Moscow campaign to co-opt Indian tech

https://www.msn.com/en-us/news/world/former-deep-cover-russian-spy-leads-moscow-campaign-to-co-op...
1•MilnerRoute•5m ago•0 comments

Show HN: Watsn.ai – Scarily accurate lie detector

https://watsn.ai/
2•flx1012•5m ago•0 comments

Deep Dive in Java vs. C++ Performance

https://johnnysswlab.com/deep-dive-in-java-vs-c-performance/
1•ingve•6m ago•0 comments

OpenTelemetry Distribution Builder

https://github.com/observIQ/otel-distro-builder
2•pveierland•12m ago•1 comments

Kilauea erupts, destroying webcam [video]

https://www.youtube.com/watch?v=TK2N99BDw7A
4•zdw•15m ago•0 comments

Updating Rust's Linux musl targets to 1.2.5

https://blog.rust-lang.org/2025/12/05/Updating-musl-1.2.5/
1•ingve•17m ago•0 comments

The Resonant Computing Manifesto

https://resonantcomputing.org/
1•tlarkworthy•17m ago•0 comments

Kenyans lured by lucrative job offers and sent to fight for Russia

https://www.bbc.com/news/articles/c20gn2d51l1o
2•breve•17m ago•0 comments

PatchworkOS: An OS for x86_64, built from scratch in C and assembly

https://github.com/KaiNorberg/PatchworkOS
2•pykello•20m ago•1 comments

Repurposed Drugs for Covid [video]

https://www.youtube.com/watch?v=2_wKXWaMdEM
1•alex1138•20m ago•0 comments

Ask HN: What is the Bootstrap/Tailwind equivalent for SwiftUI?

1•takinola•26m ago•0 comments

Celbridge: Edit spreadsheets and write Python scripts side-by-side

https://github.com/celbridge-org/celbridge
1•noodlebird•27m ago•1 comments

Show HN: Online version of Teeko, of Guy L. Steele fame

https://teeko.cc
2•ptramo•30m ago•0 comments

The Müller-Lyer Illusion in Ant Foraging

https://pmc.ncbi.nlm.nih.gov/articles/PMC3859535/
2•mudil•30m ago•0 comments

Railroads will be allowed to reduce inspections and rely more on technology

https://apnews.com/article/automated-railroad-track-inspections-waiver-derailments-fra-d3c4b0f313...
3•geox•31m ago•1 comments

Lobfo – AI terminal for sports prediction markets (Kalshi × Polymarket)

https://v0-pmt-ai.vercel.app/
1•Nortca•33m ago•1 comments

Show HN: Chrobox – plan, execute, and reflect with AI insights

https://www.chrobox.net/
1•ggprgrkjh•34m ago•0 comments

How to make a macOS screen saver

https://wadetregaskis.com/how-to-make-a-macos-screen-saver/
2•chmaynard•36m ago•0 comments

Getting AI object removal to run in under 2 seconds in a Figma plugin

https://www.figma.com/community/plugin/1576512610054427811/photo-object-remover-imgour
1•Bikashhh•36m ago•1 comments

Advent Hunt 2025

https://2025.adventhunt.com/
1•thatoneengineer•37m ago•0 comments

Chinese fighters target SDF jets with radar lock-on, Japan says

https://www.japantimes.co.jp/news/2025/12/07/japan/china-japan-radar-lock-on/
4•DustinEchoes•41m ago•1 comments

Show HN: MCP Hosting with Persistent Storage

https://glama.ai/blog/2025-12-06-mcp-hosting-with-persistent-storage
1•statements•44m ago•0 comments

Space Invaders – The Legacy

https://spaceinvaders.square-enix-games.com/legacy
2•andsoitis•45m ago•0 comments