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

How A Secretive Firm Tried (& Failed) to Fix an Epstein Friend's Tattered Image

https://www.nytimes.com/2026/05/17/us/politics/epstein-reummler-reputation-management.html
1•bookofjoe•21s ago•0 comments

A Tie in Tel Aviv

https://www.tabletmag.com/sections/arts-letters/articles/tie-tel-aviv-startup-con
1•nsoonhui•1m ago•0 comments

Where are the ads in the biggest change to Search in 25 years

https://matthiasott.com/notes/ad-infinitum
1•ZacnyLos•1m ago•0 comments

About That Erdős Problem

https://siliconreckoner.substack.com/p/about-that-erdos-problem
1•emil-lp•3m ago•1 comments

Free Software Foundation Europe – Danke FüR Deine Bestellung

https://fsfe.org/contribute/spreadtheword-orderthanks.html
1•onemink•4m ago•0 comments

Eagle 3.1: Collaboration Between the EAGLE Team, vLLM Team, and TorchSpec Team

https://vllm.ai/blog/2026-05-26-eagle-3-1
2•berlianta•6m ago•0 comments

Netherlands blocks US takeover of vital digital supplier

https://www.politico.eu/article/netherlands-blocks-us-takeover-vital-digital-supplier/
2•vrganj•7m ago•1 comments

Intel Working on Pmtctl Tool for Linux in Dealing with Platform Telemetry Data

https://www.phoronix.com/news/Intel-pmtctl-Tool
1•Bender•7m ago•1 comments

Spotify chief defends AI-generated music

https://www.ft.com/content/dbdec57b-1e24-455b-b9e8-81fd3efe85da
1•thm•7m ago•0 comments

No captain, my captain: Navantia floats crewless warship

https://www.theregister.com/offbeat/2026/05/24/no-captain-my-captain-navantia-floats-crewless-war...
1•Bender•9m ago•0 comments

"The User Is Frustrated Because "

https://bwanaerp.medium.com/the-user-is-frustrated-because-inside-the-feral-2-000-month-mind-of-a...
1•instarlaxy•10m ago•0 comments

GitHub Actions down again today

https://www.githubstatus.com/?today
3•cebert•10m ago•0 comments

Anthropic to release Mythos-class models to the public

https://www.theregister.com/security/2026/05/25/anthropic-to-release-mythos-class-models-to-the-p...
1•Bender•10m ago•0 comments

Kefir: A C17/C23 Compiler

https://git.sr.ht/~jprotopopov/kefir
2•fanf2•11m ago•0 comments

AMD, Broadcom and Google Intensify Anti-Nvidia Offensive

https://economy.ac/news/2026/05/202605289199
2•giuliomagnifico•11m ago•0 comments

Show HN: My Day – daily planner to get things done

https://codeberg.org/joexo/myday
2•joexo•12m ago•0 comments

BoquilaHUB 0.5: now it includes SOTA AI models for bioacoustics

https://github.com/boquila/boquilahub/releases/tag/v0.5
2•jdiaz97•13m ago•0 comments

Neo-Capital – local-first AI bookkeeping that runs on your own machine

https://neocapital.app/
2•OMNISSoftworks•14m ago•0 comments

AI Agent Governance Toolkit

https://github.com/microsoft/agent-governance-toolkit
2•gfortaine•15m ago•0 comments

CodeGuard – defence-in-depth SSH security in one Python file

https://github.com/GeorgeBigh/CodeGuard
2•georgebigh•18m ago•0 comments

Harnesses and post-training close the open-weight bug-finding gap

https://vincenzoiozzo.com/blog/oss-models-vuln-research
2•snagg•19m ago•0 comments

The $500 Delivery Robot Is Coming – and It Will Reshape the Industry

https://www.roboticstomorrow.com/article/2026/04/the-500-delivery-robot-is-coming-%E2%80%94-and-i...
2•manvel_hn•19m ago•0 comments

MetaLens: AI agents that audit your Metabase instance and find what's broken

https://metalens.it
2•valiottidata•20m ago•0 comments

Life in My Twenties

https://fjlin.me/life-in-my-twenties
2•unitcircle69•20m ago•0 comments

Show HN: Vendorlobby – AI intake for cold emails, calls, and LinkedIn pitches

https://vendorlobby.com
2•ignsl•21m ago•0 comments

Show HN: A curated directory of AI affiliate programs, updated monthly

https://aiafflist.com/
2•Odeh13•21m ago•0 comments

Show HN: JobZap – Chrome extension for filtering LinkedIn job search

https://github.com/its-monotype/jobzap
2•monotype•23m ago•0 comments

Show HN: RemotePilot: Track Remote Opportunities

https://remotepilot.dev/
2•introvertmac•24m ago•0 comments

Infographics for Caching

https://bytebytego.com/guides/caching-performance/
2•anandvashishtha•28m ago•0 comments

The Three Virtues of a Great Programmer

https://thethreevirtues.com/
3•rbanffy•31m ago•0 comments