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!

Show HN: Get a quick skincare analysis by uploading a photo

https://howolddoyoulook.com/skincare
1•beast200•3m ago•0 comments

Show HN: EasyShot – macOS screenshot thumbnails that don't disappear after 5s

1•amlug•4m ago•0 comments

AI Hairstyle Changer

https://hairstyleaichanger.com/
1•Fsen•10m ago•0 comments

Why Whisper Notes for Mac Left the App Store

https://whispernotes.app/blog/why-whisper-notes-left-mac-app-store
1•mazzystar•12m ago•0 comments

"I hope you don't use Generative AI"

https://rmv.fyi/notes/i-hope-you-don-t-use-generative-ai
2•garblegarble•13m ago•0 comments

The AI Morning Show: Automating German Humor

https://portfolio.bildsignal.de/p_gagflatrate/
2•pahn•14m ago•1 comments

Rippling AI

https://www.rippling.com/blog/introducing-rippling-ai
1•tosh•17m ago•0 comments

The Five Companies You Can Build in 2026

https://www.dylancollins.com/p/the-five-companies-you-can-build
1•dylancollins•18m ago•0 comments

AI Council: run mupliple LLMs on your question, get consolidated opinion

https://github.com/yanbrod/council
1•ianbrode•19m ago•0 comments

TBM 406: Seeing Everything, Understanding Nothing (The Context Trap)

https://cutlefish.substack.com/p/tbm-406-seeing-everything-understanding
1•kiyanwang•23m ago•0 comments

Gea: A Compile-Time Reactive UI Framework That's Just JavaScript

https://github.com/dashersw/gea
1•dokdev•25m ago•0 comments

The Reason Most People Are Terrible Communicators (and How to Fix It)

https://alifeengineered.substack.com/p/the-reason-most-people-are-terrible
1•kiyanwang•25m ago•0 comments

Bombadil: Property-based testing for web UIs by Antithesis

https://github.com/antithesishq/bombadil
1•Klaster_1•26m ago•0 comments

Management in the Age of AI – Stay SaaSy

https://staysaasy.com/management/2026/03/12/ai-management.html
1•kiyanwang•27m ago•0 comments

'Alright mate?': Amazon pins UK hopes on AI upgrade of Alexa

https://www.theguardian.com/technology/2026/mar/19/amazon-uk-ai-upgrade-alexa-voice-assistant-dev...
2•chrisjj•30m ago•0 comments

Wikigacha – Collect cards from articles on Wikipedia and use them in battle

https://wikigacha.com
1•helloplanets•31m ago•0 comments

Taste at scale. Why the hardest part of building products stayed human

https://designexplained.substack.com/p/taste-at-scale
1•kaizenb•34m ago•0 comments

Context Engineering for Coding Agents

https://martinfowler.com/articles/exploring-gen-ai/context-engineering-coding-agents.html
2•BerislavLopac•35m ago•0 comments

Ask HN: Have you cancelled any software subscriptions because AI replaced them?

1•maxim_bg•36m ago•1 comments

Google to Allow AI Opt-Out to Ease UK Competition Concerns

https://www.globalbankingandfinance.com/google-allow-ai-opt-out-ease-uk-competition-concerns/
1•_____k•37m ago•0 comments

Anonymous model Hunter Alpha is Xiaomi's model

https://mimo.xiaomi.com/mimo-v2-pro
1•sergdigon•37m ago•0 comments

Agentic CTF

https://jemini.live
1•4ppsec•41m ago•0 comments

Principles for sustaining open source in the age of generative AI

https://www.human-oss.dev/
1•starptech•41m ago•0 comments

Vance plans Hungary visit in show of support for Orban ahead of tight election

https://www.reuters.com/world/europe/vance-plans-hungary-visit-show-support-orban-ahead-tight-ele...
1•vrganj•43m ago•0 comments

Design Conductor: agent autonomously builds a 1.5 GHz Linux-capable RISC-V CPU

https://arxiv.org/abs/2603.08716
2•EvgeniyZh•45m ago•0 comments

In-Person vs. Remote Engineering Teams

https://playfulprogramming.com/posts/in_person_vs_remote_teams/
1•BerislavLopac•45m ago•0 comments

The biggest surprise of the MacBook Neo

https://asymco.com/2026/03/18/the-biggest-surprise-of-the-macbook-neo/
2•ingve•46m ago•0 comments

Translate Garry Tan's LinkedIn-speak to plain English

https://github.com/garrytan/gstack/pull/213
60•tornikeo•47m ago•17 comments

Show HN: Philo - Notetaking app is your IDE

https://philo.so
1•johntopia•47m ago•1 comments

Ask HN: Why do we need tool calls in agent loops?

1•neilbb•48m ago•0 comments