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!

Cybersecurity Agency Leaves Its Digital Keys Out in Public on GitHub

https://gizmodo.com/the-worst-leak-that-ive-witnessed-u-s-cybersecurity-agency-leaves-its-digital...
1•WarOnPrivacy•1m ago•0 comments

Bornagain.com

http://bornagain.com/
2•gregsadetsky•2m ago•0 comments

The Explore-Exploit Dilemma in Media Consumption (2016)

https://gwern.net/media-rl
1•mcmoor•4m ago•0 comments

Going Analog

https://www.natemeyvis.com/going-analog/
2•speckx•5m ago•0 comments

The Strange Rock Ship of Masuda

https://offbeatjapan.com/rock-ship-of-masuda/
1•thunderbong•10m ago•0 comments

Getting Confidence in (Agentic) Code

https://ucsd-cse-115-215.github.io/sp26/lectures/04-correctness.html
1•matt_d•12m ago•0 comments

A Quarter Century of Unix (Peter Salus, 1994)

https://archive.org/details/aquartercenturyofunixpeterh.salus_201910
1•ninjin•13m ago•1 comments

TuriX AI launched the latest version

https://github.com/TurixAI/TuriX-CUA
1•turixai•17m ago•1 comments

Open-sourcing ShipReq – a requirements platform written in FP Scala/Scala.js

https://gist.github.com/japgolly/538875580ec648ca7517ce04d63dc009
1•japgolly•18m ago•1 comments

Compute Optimal Tokenization: Scaling Laws for Data Compression in LLMs

https://co-tok.github.io/
1•matt_d•19m ago•0 comments

Benchmarking llama.cpp's new MTP support on Strix Halo

https://calebcoffie.com/blog/benchmarking-llama-cpp-mtp-on-strix-halo
1•CCoffie•20m ago•0 comments

Peter Neumann Has Died

https://www.tuhs.org/pipermail/tuhs/2026-May/033748.html
1•pabs3•22m ago•0 comments

What even IS runtime infrastructure?

https://blog.bridgexapi.io/why-developers-need-programmable-evm-runtime-infrastructure
1•Bridgexapi•27m ago•0 comments

Explore Punks NFT Collection on Polygon Blockchain

https://punks_4.x.rarible.com
1•demro•29m ago•1 comments

Show HN: Clark-Browser – Stealth Chromium

https://github.com/clark-labs-inc/clark-browser
2•stan_kirdey•30m ago•0 comments

Google: Continued commitment to Chromebooks, and looking ahead

https://cloud.google.com/blog/products/chrome-enterprise/our-continued-commitment-to-chromebooks-...
3•pabs3•33m ago•0 comments

Sieve – scans Cursor/Claude chat history for leaked API keys

https://apps.apple.com/us/app/sieve-secret-scanner/id6767409365?mt=12
1•helpful_human•33m ago•0 comments

The Mac mini just became infrastructure

https://thenewstack.io/mac-mini-agent-infrastructure/
1•rav3ndust•36m ago•0 comments

Walmart, Target and Dollar General Spend Billions to Make Stores Look Nicer

https://www.nytimes.com/2026/05/11/business/retailers-stores-renovations.html
2•lxm•37m ago•0 comments

We built a runtime activation layer for autonomous AI agents

https://www.santaclawz.ai/
1•evan-k-global•40m ago•0 comments

PgBackRest Will Continue

https://pgbackrest.org/news.html#will-continue
3•thunderbong•40m ago•0 comments

Peter Salus has died

https://www.tuhs.org/pipermail/tuhs/2026-May/033750.html
32•speckx•43m ago•3 comments

Material Nonpublic Information at Hughes High

https://arcove.substack.com/p/material-nonpublic-information-at-hughes-high
1•jfil•44m ago•0 comments

AI Grant Writing Assistant

https://grantbot.pl
1•tredi•47m ago•0 comments

Research shows a clear and communicated AI stance acts as a powerful amplifier

https://dora.dev/capabilities/clear-and-communicated-ai-stance/
1•riffic•48m ago•0 comments

Shuffle multiple artists' full discographies on Spotify (Chrome extension

https://chromewebstore.google.com/detail/discogmix-multi-artist-sh/oejdmfhdpfpimljokmknjifehccmanko
1•esayli•53m ago•0 comments

The down fall of bug bounties

https://shubs.io/the-down-fall-of-bug-bounties/
2•infosecau•54m ago•0 comments

Vault Pro – AI Scaffolder for Obsidian Project Notes (Node/Claude)

https://checkout.stripe.com/c/pay/cs_live_a1T5cP4xxXFYhY045VE1ui9fm1NJj0ACL1umdUosCWtXUSR8CKrdNPs...
1•bshelby88•56m ago•0 comments

Living 35 ft underground: inside a preserved Titan II nuclear missile silo

https://www.youtube.com/watch?v=rSFSnOBYlbM
1•bane•1h ago•0 comments

An Overview of the Mathematical Theory of Communication for Philosophers [pdf]

https://theinformationalturn.net/wp-content/uploads/2012/03/MTC_overview.pdf
2•teleforce•1h ago•0 comments