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!

In Blow to Democrats, Virginia Court Strikes Down House Map

https://www.nytimes.com/2026/05/08/us/politics/virginia-redistricting-supreme-court.html
2•Amorymeltzer•45s ago•0 comments

Jan Koum, WhatsApp founder donates record $200M to Shaare Zedek Hospital

https://www.jns.org/news/israel-news/whatsapp-founder-donates-record-200-million-to-shaare-zedek
1•myth_drannon•3m ago•0 comments

Auth Proxy Injection for LLMs

https://www.grepular.com/Auth_Proxy_Injection_for_LLMs
1•Brajeshwar•3m ago•0 comments

DeepL lays off 25% of its workforce

https://www.heise.de/en/news/Cologne-AI-translator-DeepL-lays-off-a-quarter-of-its-workforce-1128...
2•summarity•3m ago•0 comments

The Grand Line of Fine-Grained Authorization

https://fusionauth.io/blog/grand-line-of-fine-grained-authorization
1•mooreds•4m ago•0 comments

Spark CLI: local, multi-provider email access for AI agents

https://github.com/readdle/spark-cli-skills
1•andriydruk•4m ago•0 comments

Words Fail (2020)

https://carcinisation.com/2020/06/26/words-fail/
1•surprisetalk•4m ago•0 comments

Copy/Fail Detection Script (CI/CD)(CVE-2026-31431)

https://github.com/liamromanis101/CVE-2026-31431-Copy-Fail---Vulnerability-Detection-Script
1•lromanis•5m ago•0 comments

Ads in AI Chatbots? An Analysis of How LLMs Navigate Conflicts of Interest

https://arxiv.org/abs/2604.08525
1•DeusExMachina•5m ago•0 comments

When Semiconductor Materials Misbehave

https://semiengineering.com/when-semiconductor-materials-misbehave/
1•PaulHoule•5m ago•0 comments

Reggie: Hybrid Compile-Time and Runtime Optimized Regex for Java

https://github.com/DataDog/java-reggie
2•mfiguiere•6m ago•0 comments

(Un)portable defer in C

https://antonz.org/defer-in-c/
2•fanf2•7m ago•0 comments

Show HN: NPM Package that fills forms via voice using Gemini Live API

https://www.npmjs.com/package/audio-forms
1•vaibhavgeek•8m ago•0 comments

Show HN: A near-zero-dependency Java tookit for internal tools and AI flows

https://github.com/vadimv/server-components
1•v4d1mv•9m ago•0 comments

Expansion on DORA report's observation on individual vs. team productivity

https://alokit.substack.com/p/the-dora-paradox-why-adding-ai-makes
1•avikalp•10m ago•0 comments

Echon – Privacy-First Discord Alternative in Rust and Tauri

https://echon-voice.com
1•Phrosen•12m ago•0 comments

Tldraw SDK 5.0

https://tldraw.dev/blog/tldraw-sdk-5-0
1•SpyCoder77•13m ago•0 comments

Metaphors are central to design. AI needs better ones

https://metedata.substack.com/p/011-ai-needs-better-metaphors
1•young_mete•13m ago•0 comments

De-classified Files documenting UFOs, 'extraterrestrial life' released

https://www.foxnews.com/politics/trump-admin-releases-highly-anticipatedfiles-documents-ufos-extr...
2•kokanator•13m ago•0 comments

What Color is Your Function? (2015)

https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/
1•jeremyscanvic•14m ago•0 comments

You're ignoring most of the world – Which countries get attention by the numbers

https://timhirschelburns.substack.com/p/youre-ignoring-most-of-the-world
1•alphabetatango•14m ago•0 comments

Code Red: The Business Impact of Code Quality

https://dl.acm.org/doi/epdf/10.1145/3524843.3528091
2•tacon•14m ago•0 comments

WhyGoAI – AI session recordings that tell you why users left

2•LatifaOuali•15m ago•0 comments

Cognitive Surrender

https://addyosmani.com/blog/cognitive-surrender/
1•tagyro•15m ago•0 comments

GPON vs. EPON vs. XGS-PON: Complete Comparison Guide 2026

https://www.langzhichina.com/gpon-vs-epon-vs-xgs-pon-comparison-guide
1•langzhi•16m ago•0 comments

Telegram Adds Guest AI Bots, Bot-to-Bot Chats, Chat Automation

https://telegram.org/blog/ai-bot-revolution-11-new-features
2•sharpshadow•16m ago•0 comments

Conversation Branching in AI Chat

https://ably.com/blog/conversation-tree-branching-ably-ai-transport
1•zknill•18m ago•0 comments

Tesla's screwup involves making the font size of braking system too small (2024)

https://www.theverge.com/2024/2/2/24059114/tesla-recall-brake-system-font-size-power-steering
2•gurjeet•18m ago•0 comments

Ask HN: How do we handle the rise of low quality "This is LLM" comments?

1•shantnutiwari•21m ago•1 comments

Young and old men are leaving the labor force, fueling a record decline

https://www.washingtonpost.com/business/2026/05/08/men-labor-force-drop-outs/
4•littlexsparkee•21m ago•1 comments