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•10mo ago

Comments

zljdanceholic•10mo 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!

Despite What You've Heard, AI Art Is Still Much Copyrightable

https://knifepoint.substack.com/p/despite-what-youve-heard-ai-art-is
2•kg•3m ago•0 comments

Building AI Agents non-technical teammates can improve without me

https://chainix.ai
1•JackFarrell•3m ago•1 comments

Google Account "Digital Execution" While Auditing a Chrome Store Vulnerability

1•NTT_Prime•3m ago•0 comments

Anthropic's AI tool Claude central to U.S. campaign in Iran, amid a bitter feud

https://www.washingtonpost.com/technology/2026/03/04/anthropic-ai-iran-campaign/
1•spenvo•4m ago•0 comments

Ask HN: Porting MIT CADR to RISC-V

1•lstevens14•4m ago•0 comments

Aigli: Photo and Video Editor – Now Available on the App Store

https://apps.apple.com/us/app/aigli-photo-video-editor/id6756179374
1•_janc_•4m ago•1 comments

How surprise discoveries and lizard venom led to a new class of weightloss drugs

https://biomedical-sciences.uq.edu.au/article/2024/04/rise-ozempic-how-surprise-discoveries-and-l...
1•thunderbong•5m ago•0 comments

AIPriceCompare – Instantly Compare AI API Pricing Across Models

https://aipricecompare.saposs.com/
1•powerwild•6m ago•1 comments

The one science reform we can all agree on, but we're too cowardly to do

https://www.experimental-history.com/p/the-one-science-reform-we-can-all
1•sito42•6m ago•1 comments

Show HN: O4DB – Intent-based M2M protocol without centralized APIs

https://github.com/dannythecountok/O4DB-protocol
1•dannythecount•6m ago•1 comments

"It Turns Out"

https://jsomers.net/blog/it-turns-out
1•Munksgaard•7m ago•0 comments

Show HN: AI Code Review CLI

https://github.com/kodustech/cli
1•eddelgado•8m ago•0 comments

Top HN: Daily summary of the top Hacker News stories

https://hn.alcazarsec.com/daily
1•alcazar•9m ago•1 comments

Senior Back End Engineer (Architecture and AI Systems)Vienna / Remote (Europe)

https://howiesystems.sharepoint.com/:w:/s/Howie/IQB9qE1nUjXER4YGyFc9GAuTAR--PsD5bDq0ZpVo0yo6PUM?e...
1•ewavonhowie•10m ago•1 comments

Show HN: I reverse-engineered car lease math against three real dealer documents

https://quotedefender.com/blog/verified-lease-math-three-deals
1•amirjavid•11m ago•2 comments

The Bizarro Team

https://k2xl.substack.com/p/the-bizarro-team
1•k2xl•12m ago•0 comments

AgenticROS is an open-source platform connecting ROS to OpenClaw for Physical AI

https://agenticros.com
1•cmatthieu•13m ago•1 comments

Show HN: I built a browser-based 3D modeler because I'm scared of Blender

https://app.topomaker.com/
1•whothatcodeguy•14m ago•0 comments

Show HN: CodeYam Memory – comprehensive memory management for Claude Code

2•nadis•16m ago•1 comments

The Death of Issue Tracking

https://twitter.com/danlovesproofs/status/2028890694837039202
1•stevenking86•18m ago•0 comments

The War in the Balkans (1912)

https://www.jstor.org/stable/25119890?seq=1
2•joebig•21m ago•0 comments

LeBron James Is President – Exploiting LLMs via "Alignment" Context Injection

https://github.com/skavanagh/lebron-james-is-president
2•PaulHoule•21m ago•0 comments

Show HN: GitPulse – stop buying dead software (and a timeline for your dev life)

https://www.gitpulse.dev/
1•bombashell•22m ago•1 comments

No Silver Bullet–Essence and accident in software engineering (1986) [pdf]

https://worrydream.com/refs/Brooks_1986_-_No_Silver_Bullet.pdf
1•vinhnx•24m ago•0 comments

Dating Profile Optimizer and AI Dating Coach – AskJoey

https://askjoey.io/
1•Luki1234•24m ago•0 comments

Show HN: Opacore – free Bitcoin tax reports and open-source portfolio OS (MIT)

https://opacore.com
1•jpsdtj•24m ago•1 comments

Show HN: CodePulse – Minimalist Online IDE Built with Vanilla JavaScript/Fastify

https://pklavc.github.io/codepulse-monorepo/
1•PkLavc•24m ago•1 comments

Swedish Government proposes real-time AI facial recognition for police use

https://www.regeringen.se/rattsliga-dokument/proposition/2026/03/prop.-202526150
1•JuliusLam•28m ago•0 comments

Ask HN: Why has ChatGPT disabled links to websites?

2•krschacht•28m ago•0 comments

Show HN: Open-sourced a web client that lets any device use Apple's on-device AI

https://github.com/Techopolis/perspective-intelligence-web-community
2•tayarndt•29m ago•0 comments