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!

Show HN: Redivue – A self-hosted, open-source Redis GUI

https://github.com/abidinberkay/Redivue
1•abidinberkay•25s ago•0 comments

Christophe Pettus: The Vector That Lied About Its Dimensions

https://thebuild.com/blog/the-vector-that-lied-about-its-dimensions/
1•hnrprtlpdb•1m ago•0 comments

Show HN: Ollin – Trip planner that builds a day-by-day plan from one sentence

https://ollin.travel/try
1•jakesorce•2m ago•0 comments

NTS Radio via Atonemo Player

https://atonemo.com/products/nts
1•artur_makly•2m ago•0 comments

Show HN: CoverCheck, reads vendor COIs and flags what is short or expiring

https://covercheck.thecompound.tech
1•kyisaiah47•3m ago•0 comments

Our minds aren't equipped to handle AI

https://www.theverge.com/ai-artificial-intelligence/1003794/ai-education-computational-model-thought
1•rpgbr•3m ago•0 comments

Exposing the UK's Attempt to Destroy the First Amendment (2025)

https://prestonbyrne.com/2025/10/16/the-ofcom-files/
1•dmitrygr•3m ago•0 comments

JumpStar is the world's strongest AI engine for Chinese Checkers

https://chinesecheckers.ai/chinese-checkers-ai
1•CharlesW•6m ago•0 comments

I fixed my buggy remote control for our Google Chromecast device

https://hunden.linuxkompis.se/2026/07/31/how-i-fixed-my-buggy-remote-control-for-our-google-chrom...
1•speckx•7m ago•0 comments

PrintCraft: Read, organize, combine, split, secure PDFs in a native app in Rust

https://getartcraft.com/apps/printcraft
1•rahimnathwani•7m ago•0 comments

CircuitRF: An open source EDA tool for RF design and simulation

https://github.com/potatobeanradio/circuitRF
1•1e1a•9m ago•0 comments

Show HN: RigMark benchmarks local AI the way coding agents use it

https://github.com/alexellis/rigmark
1•alexellisuk•10m ago•1 comments

Ncdu: NCurses Disk Usage

https://github.com/rcalixte/ncdu
1•ibobev•10m ago•0 comments

Protocol-Aware Recovery for Consensus-Based Storag [pdf]

https://www.usenix.org/system/files/conference/fast18/fast18-alagappan.pdf
1•ibobev•10m ago•0 comments

Show HN: Bringing a Billy Bass to Life with AI

https://twitter.com/MorgantWillis/status/2107463928196247843
1•mtw14•11m ago•0 comments

Show HN: Orbtile – See which AI coding agent needs you, on a Logitech keypad

https://orbtile.com/?s=hn
1•diogomendes•11m ago•0 comments

Why Continuations Are Coming to Java

https://www.infoq.com/presentations/continuations-java/
1•ibobev•11m ago•0 comments

DBison: A database workspace that stays out of the way

https://dbison.app/
1•thunderbong•11m ago•0 comments

IBM and Red Hat Remediate 400 Previously Unknown Open Source Vulnerabilities

https://newsroom.ibm.com/2026-10-06-ibm-and-red-hat-remediate-more-than-400-previously-unknown-op...
1•ilreb•12m ago•0 comments

Developer Survey 2026

https://survey.stackoverflow.co/2026
1•hk__2•12m ago•0 comments

Every US Electrical Outlet Explained

https://practical.engineering/blog/2026/9/15/every-us-electrical-outlet-explained
1•crescit_eundo•12m ago•0 comments

The L.A. people who record random sounds, from duck quacks to fax machines

https://www.latimes.com/lifestyle/story/2026-10-05/los-angeles-field-recording-club
1•rdmuser•14m ago•0 comments

Show HN: Screen Records – edit demo or how-to recordings with MCP

https://screenrecords.app/
1•littlebusywoman•14m ago•0 comments

Thousands of Exposed Systems in Europe's Wind Farms and Solar Parks

https://modat.io/blog/to-see-the-wind-and-the-sun/
1•vanschelven•16m ago•1 comments

Show HN: Plexavo – simplest way to find AWS misconfigurations and attack paths

https://github.com/plexavo/Plexavo
1•kavee-dev•16m ago•0 comments

A Calendar of Smells

https://worldsensorium.com/a-calendar-of-smells/
1•dnetesn•17m ago•0 comments

NewsGuard Launches First AI Chatbot Built to Deliver Trusted Journalism

https://www.newsguardtech.com/press/newsguard-launches-first-ai-chatbot-built-to-deliver-trusted-...
1•bariumbitmap•17m ago•0 comments

- I tried to build a WCAG-friendly iPhone calendar – please prove me wrong

https://testflight.apple.com/join/sKcmUdAq
1•marc0janssen•17m ago•0 comments

The Fossil Logic of the Industrial and AI Revolutions

https://blue-continuum.com/fossil-logic
1•dnetesn•18m ago•0 comments

Chinese Plug-In Hybrid SUV Was UK's Best Selling Car Last Month

https://insideevs.com/news/810819/jaecoo-7-uk-best-selling/
2•bookofjoe•19m ago•0 comments