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!

How Scientists Contained a Threat That Could Have Destroyed Humanity

https://www.nytimes.com/2026/09/23/us/asilomar-dna-ai-self-regulation-laws.html
1•dataflow•1m ago•0 comments

New model gev outperforms jev and takes images as input too

https://anyeval.com/eval/jevbench/versus?a=typesafe-ai%252Fjev&b=trustedrouter%252Fgev-1.0
1•ljlolel•1m ago•1 comments

Amateur Naturalists Are Helping Scientists Track What Everything Eats

https://news.ncsu.edu/2026/09/who-eats-whom-research/
1•rdmuser•1m ago•0 comments

Show HN: Tenderness – open-source synthetic data generation for VLM/OCR

https://github.com/paperchase-labs/tenderness
1•ohmyjob•1m ago•0 comments

Everyone is hilariously prompt-injecting AI via llms.txt and you aren't

https://installmap.com/research/llms-txt-ai-instructions
1•jakobgreenfeld•3m ago•0 comments

How Deep Is Tulainyo Lake?

https://caseyhandmer.wordpress.com/2026/09/20/how-deep-is-tulainyo-lake/
1•dannyobrien•4m ago•0 comments

The Windows message loop: how applications became reactive

https://www.diagrid.io/blog/agentic-execution-evolution-2-windows-message-loop
1•mwfussell•4m ago•0 comments

Hardware-Agnostic Models in vLLM

https://pytorch.org/blog/hardware-agnostic-models-in-vllm/
1•matt_d•5m ago•0 comments

Slop grenade – demo of Window Management API

https://slop-grenade.yeah.io/
1•ownerr•6m ago•0 comments

Apple Removes iPhone 16 and iPhone 17 from Texture and Grain Support

https://www.macobserver.com/news/apple-locks-iphone-16-17-out-texture-grain-controls/
1•ValentineC•6m ago•0 comments

Show HN: HookDeploy – Webhook infra with mTLS private delivery

https://hookdeploy.dev
1•mbernstein01•7m ago•0 comments

Using Local Coding Agents

https://magazine.sebastianraschka.com/p/using-local-coding-agents
1•pretext•7m ago•0 comments

Tired of Tracking Apps?

https://play.google.com/store/apps/details?id=com.versanyx.explainmy_phone&hl=en_US
1•Globe_18•7m ago•0 comments

Show HN: Droid ASC – An On-Demand Android Decompiler, 41–269x Faster Than JADX

https://github.com/MG1937/ASC
2•mgaldys4•8m ago•1 comments

Ask HN: Will software still matter when AI write all our programs?

1•estranhosidade•8m ago•1 comments

Extending Scapy for Hardware Reverse Engineering

https://voidstarsec.com/blog/scapy-spi-reconstruction
1•wrongbaud•10m ago•0 comments

Show HN: Local Software Factory – running multiple coding agents in parallel

https://github.com/stratonext/software-factory
1•gianlucabertell•10m ago•0 comments

Show HN: Make It Nice

https://liseman.github.io/make-it-nice/#/result/ATAC1fBVUPvgLIZ-Je3tNSsbNREfGzUbGysVdjhmd3JrZzJ5d...
1•liseman•11m ago•0 comments

LLM Benchmark for de-identification and synthesis

https://huggingface.co/datasets/TonicAI/Privacy-Bench
1•akamor•15m ago•0 comments

Law firm paid £200M to support Post Office, while police investigating scandal

https://www.computerweekly.com/news/366650861/Law-firm-paid-200m-to-support-Post-Office-while-pol...
1•latein•16m ago•0 comments

Named and Optional Arguments Are Awesome

https://botahamec.dev/named-optional-args
1•birdculture•16m ago•0 comments

AI Overviews and the Limits of the Search Safe Harbor

https://www.lawfaremedia.org/article/ai-overviews-and-the-limits-of-the-search-safe-harbor
1•hn_acker•16m ago•0 comments

Training a Language Model End-to-End in Rust: An Experience Report

https://arxiv.org/abs/2609.25008
2•Brajeshwar•16m ago•0 comments

Show HN: Watch Newsletters by AI

https://newsletrix.com/
2•ebod•17m ago•0 comments

Meta testing a 'human concierge' for its new personal AI agent, Muse

https://www.reuters.com/business/meta-testing-human-concierge-its-new-personal-ai-agent-muse-2026...
2•2143•18m ago•0 comments

SLOPocalypse Survivors

https://joshtronic.com/games/slopocalypse-survivors/
1•joshtronic•18m ago•0 comments

Show HN: Cloud-based email and calendar sync platform and Android app – for sale

https://sugarmail.app/
1•uncle_kostya•19m ago•0 comments

OAuth Token Theft Through Microsoft's Front Door

https://www.huntress.com/blog/stealing-oauth-tokens-through-microsofts-front-door
1•speckx•19m ago•0 comments

Apple Reference Image Explained Through Anti-Doping

https://medium.com/the-quantastic-journal/apple-reference-image-explained-through-anti-doping-642...
1•cadeos•19m ago•0 comments

Maynooth university: MU researchers build world-first DNA computer

https://www.maynoothuniversity.ie/news-events/mu-researchers-build-world-first-dna-computer-publi...
2•gvieri•20m ago•0 comments