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!

Humanitarian crisis looming: 300k displaced as Israeli army pounds Lebanon

https://www.france24.com/en/humanitarian-crisis-looming-300-000-displaced-as-israeli-army-pounds-...
1•pera•3m ago•0 comments

Data Center Intelligence at the Price of a Laptop

https://tomtunguz.com/qwen-9b-matches-frontier-models/
1•vinhnx•4m ago•0 comments

Show HN: WebGPU Running a Swin Transformer

https://fungi.renderlab.cc
1•hirako2000•7m ago•0 comments

Americans' electricity bills are up. Don't blame AI

https://www.economist.com/finance-and-economics/2026/03/05/americans-electricity-bills-are-up-don...
1•pingou•8m ago•0 comments

Warmto.me Record a voice note after networking, AI writes your follow-up

https://www.warmto.me
1•aimoae•9m ago•1 comments

A Tour of Acme (2012)

https://research.swtch.com/acme
1•tosh•14m ago•0 comments

Jse v2.0 AI Output Specification

https://marchliu.github.io/2026/03/07/jse-v20-ai-output-specification
1•mars_liu•14m ago•0 comments

AI Angels – a platform for creating personalized AI companions

1•aiangels_24•14m ago•0 comments

I don't know if my job will still exist in ten years

https://www.seangoedecke.com/will-my-job-still-exist/
1•s_dev•15m ago•1 comments

Show HN: Ptero, a Svelte Alternative to Docusaurus

https://github.com/yail259/ptero
1•yaoke259•15m ago•0 comments

ma

http://www.call-with-current-continuation.org/ma/README
2•tosh•17m ago•0 comments

Show HN: SPF Flattener Solves the 10-Lookup Limit using recursive DNS resolution

https://spf1.com/
1•bwoud•18m ago•1 comments

Show HN: Visual drag-and-drop README builder with live GitHub preview

1•ofershapira•18m ago•0 comments

Show HN: MCP Starter Kit – Production-Ready TypeScript Template for MCP Serve

https://github.com/junna-legal/mcp-starter-kit
1•KJ_Labs•18m ago•0 comments

Sith Names and Darth Titles – Ultimate Dark Side Name Guide for Star Wars Fans

https://starwarsnamegenerator.com/blog/ultimate-sith-names-guide
1•Jaxon_Varr•19m ago•1 comments

Show HN: Anypost – P2P (group)chat with calls

https://anypost.xyz/
1•emilss•20m ago•0 comments

Show HN: I built Asterode, a multi model AI app with memory and power features

https://asterode.ai
2•stefbuzas•20m ago•1 comments

The $130/Month AI Agent Stack That Replaced a $200k Marketing Team

2•jackcofounder•20m ago•0 comments

UTF-8 History (2003)

https://www.cl.cam.ac.uk/~mgk25/ucs/utf-8-history.txt
1•tosh•22m ago•0 comments

Sarajevo Safari

https://en.wikipedia.org/wiki/Sarajevo_Safari
2•thunderbong•25m ago•0 comments

Specialization After Generalization: Towards Understanding Test-Time Training

https://arxiv.org/abs/2509.24510
1•teleforce•25m ago•0 comments

Capital Efficiency and the Tech Layoff Correction (2020-2025)

https://datakid.org/r/2026-03-07-jxhde2
1•tigerkid•27m ago•0 comments

Build an Agent That Learns from Its Own Mistakes [video]

https://www.youtube.com/watch?v=-stDHMwbBRw
1•malgamves•33m ago•0 comments

Filesystems Are Having a Moment

https://madalitso.me/notes/why-everyone-is-talking-about-filesystems/
2•malgamves•34m ago•0 comments

Show HN: Vimalender a Vim style calendar for the terminal written in Go

https://github.com/Sadoaz/vimalender
2•sadoaz•36m ago•0 comments

The salary cap debate has Major League Baseball gearing up for war

https://www.theguardian.com/sport/2026/feb/27/mlb-salary-cap-stoppage-owners
1•PaulHoule•36m ago•0 comments

We messed up with the Windows 12 article. What we got wrong and how it happened

https://www.pcworld.com/article/3079754/we-messed-up-with-the-windows-12-article-what-we-got-wron...
1•joshstrange•36m ago•1 comments

Use Claude for free through Amazon customer support

https://xcancel.com/pseudotheos/status/2029957370323870040
2•doener•36m ago•0 comments

Show HN: SimplAI – Build and deploy AI agents and workflows without boilerplate

https://simplai.ai
1•SimplAI_ai•37m ago•0 comments

Show HN: I applied Notion-logic to a Canvas

https://kanvas-app-zeta.vercel.app
1•giaco_hendel•37m ago•0 comments