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: Pawmc a.k.a. talking diary, an LLM chat with compartmentalised memory

https://pawmc-demo.kolaegipet.workers.dev/?demo=1
1•kol3x•1m ago•0 comments

They Fled Trump's America. Now They Regret It

https://www.wired.com/story/they-fled-trumps-america-now-they-regret-it/
1•bushwart•1m ago•0 comments

Shopify Hit with Phishing Attack

https://romanzipp.com/blog/shopify-hit-with-phishing-attack
1•forgingahead•2m ago•0 comments

Tennessee fireflies: A summertime light show [video]

https://www.youtube.com/watch?v=QCWkzQqO7Ro
1•nomilk•2m ago•0 comments

How a 1975 Book Explained Computers and How They Worked

https://rarehistoricalphotos.com/1975-computer-guide-photos/
1•lakkal•3m ago•1 comments

Sony updates the Walkman as a $5,900 gold-plated MP3 player

https://www.theregister.com/personal-tech/2026/10/20/sony-updates-the-walkman-as-a-5900-gold-plat...
1•bushwart•4m ago•0 comments

Railway (PaaS) Major Outage

https://status.railway.com/incident/QH8L8B3E
2•hurrell•6m ago•0 comments

Essential Ideas from Plato's Republic Explained

https://www.thecollector.com/republic-plato-essential-ideas/
2•Tomte•6m ago•0 comments

Matcha, CLI-based RSS daily digest and Markdown generator

https://github.com/piqoni/matcha
1•lexoj•6m ago•0 comments

Sem – new code substrate level for agents

https://sem-docs.vercel.app
1•rs545837•7m ago•0 comments

9/10 research papers disputing ultraprocessed food definition have industry ties

https://www.theexamination.org/articles/nova-ultraprocessed-foods-industry-ties-study
1•robtherobber•7m ago•0 comments

Show HN: Switchboard – Mac menu bar app that shows every localhost port

https://github.com/destucr/Switchboard
1•rbtsven•7m ago•0 comments

The state of AI coding interviews, 2026

https://nyrion.ai/research/ai-coding-interviews-2026
2•maxnyriev•7m ago•0 comments

Street Fighter (Puppet Edition)

https://code.chuanqisun.com/puppet-fighter/
6•osmoscraft•8m ago•1 comments

GPUThor: Amplifying Rowhammer Attacks to Exploit ECC-Protected GPUs

https://gputhor.com/
1•jstrieb•9m ago•0 comments

Rough Timeline of PHP2Shell

https://www.soeren.codes/articles/timeline-php2shell
1•CER10TY•10m ago•0 comments

A PHP2Shell stopgap "fix" until older PHP versions are updated

https://stuff.sigvaldason.com/php2sh.html
1•floathub•10m ago•1 comments

Pre-registered a calibration study for my GEO tool. Result: null

https://github.com/Auriti-Labs/geo-optimizer-skill/tree/main/research/calibration-2026-10
1•juanauriti•11m ago•0 comments

Alpha Sapien: What if we cloned history's greatest athletes and made them fight?

https://alphasapienbook.com/
1•jakerushcomedia•11m ago•0 comments

PHP Foundation's Overview of CVE-2026-109618 and CVE-2026-109619

https://thephp.foundation/blog/2026/10/21/todays-php-security-release-and-how-were-strengthening-...
11•ejohnso49•13m ago•1 comments

India government: social media accounts are fear mongering on E mudra incident

https://twitter.com/GoI_MeitY/status/2112914711419445421
1•unknownhad•13m ago•1 comments

Fast Filesystems for VMs

https://modal.com/blog/vm-sandbox-filesystem
1•birdculture•14m ago•0 comments

BYD launches new Seagull EV with 5-minute Flash Charging, starting under $10k

https://electrek.co/2026/10/20/byd-launches-new-seagull-ev-with-5-min-charging-under-10k/
5•cisc•15m ago•1 comments

LiteLLM Compromised Again

https://twitter.com/SocketSecurity/status/2112907732877775016
1•ComputerGuru•15m ago•1 comments

Show HN: I told people I'm a convicted felon after 20 years of hiding it

https://buford.bg/
3•buf•16m ago•0 comments

PHP 5.6.12 Still Vulnerable?

https://fedi.katze.sh/@elise/117479383739450605
4•aphroz•17m ago•0 comments

Japan launches mission to bring home a piece of the Martian moon Phobos

https://arstechnica.com/space/2026/10/japan-launches-mission-to-bring-home-a-piece-of-the-martian...
4•rbanffy•18m ago•0 comments

We asked an agent to log 40 messages on 3 CRMs via MCP. One cost 4x as much

https://goodtiming.ai/blog/agent-taste-test-2/
1•dreyler0•18m ago•0 comments

Some updated Docker PHP images available - not all yet

https://hub.docker.com/_/php/tags
2•jhogervorst•19m ago•2 comments

Show HN: Datachef - full-stack data platform

https://www.datachef.com
1•joefusaro87•19m ago•0 comments