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!

Ok computer: Rare folk instruments and lost melodies find a digital future

https://www.euronews.com/culture/2026/05/16/ok-computer-rare-folk-instruments-and-lost-melodies-f...
1•mooreds•53s ago•0 comments

92-year-old receives UK-first robotic cancer treatment

https://www.leedsth.nhs.uk/news/92-year-old-becomes-first-patient-to-receive-uk-first-robotic-can...
1•thunderbong•1m ago•0 comments

Stop Eating Lady Gaga's Oreos

https://www.experimental-history.com/p/stop-eating-lady-gagas-oreos
1•paulpauper•2m ago•0 comments

Versioned Late Materialization for Recommendation System Training

https://arxiv.org/abs/2604.24806
1•PaulHoule•2m ago•0 comments

I gave birth in South Korea and I'm lowkey traumatized

https://emilyballesteros.substack.com/p/i-gave-birth-in-south-korea-and-im
1•paulpauper•3m ago•0 comments

Those new service sector jobs

https://www.nytimes.com/2026/06/07/travel/accessible-tree-climbing-oregon.html
1•paulpauper•3m ago•1 comments

Yann LeCun: World Models: Enabling the Next AI Revolution [video]

https://www.youtube.com/watch?v=72Xj8k5WQX4
2•simonpure•4m ago•0 comments

Agentic RL: Token-In, Token-Out Done Right

https://qgallouedec-tito.hf.space/http://localhost:4321/
1•gmays•4m ago•0 comments

Claude Ledger – local cost/ROI dashboard for Claude Code usage

https://github.com/BMapAI/claude-ledger
1•itsopi•6m ago•0 comments

Cohere North Mini Code 30B Moe Apache 2.0

https://cohere.com/blog/north-mini-code
1•jeromechoo•7m ago•0 comments

Show HN: Nodea, an open-source AI canvas for working through complex projects

https://nodea.ai/demo
1•ElliottCrosby•10m ago•0 comments

Weird Design Choices in Hpack Strings

https://kallus.org/blog_hpack_string.html
1•bkallus•12m ago•0 comments

Claude Fable 5

https://twitter.com/claudeai/status/2064394146916229443
2•s-xyz•12m ago•0 comments

RNG: Flat Datacenter Networks at Amazon

https://arxiv.org/abs/2604.15261
1•fanf2•12m ago•0 comments

Show HN: Lore – LLM proxy for coding agent context and memory management

https://withlore.ai/
2•BYK•13m ago•0 comments

Claude Fable is a myth, just like new iPhone releases

1•gsunshinel•13m ago•1 comments

Broadcom 20GW Strategic AI Platform Raises $35 Billion From Apollo

https://investors.broadcom.com/news-releases/news-release-details/broadcom-apollo-and-blackstone-...
1•vijayr02•14m ago•0 comments

Show HN: Get your website roasted within a week

https://shitfa.st
1•R4FKEN•15m ago•0 comments

A Love Story

https://pudding.cool/2026/06/love-story/
2•usrme•15m ago•0 comments

Ask HN: Is Capafy.ai Legit?

1•ar27111994•16m ago•0 comments

Who's the Smartest Corvid?

https://thetyee.ca/Culture/2026/06/05/Whos-the-Smartest-Corvid/
2•NaOH•17m ago•0 comments

Show HN: Joka.work – AI-native ticketmaxxing to replace Jira in the agentic era

https://joka.work
1•natyoung•19m ago•0 comments

Snake (self aware) – Built by Claude

https://snake-stable-build.netlify.app
1•kesor•19m ago•1 comments

Show HN: I built a social-first search(X, Reddit, TikTok) cause Google is boring

https://www.bluhe.ai/
3•Dhavidh•20m ago•1 comments

Human-Near-the-Loop

https://trilogyai.substack.com/p/human-near-the-loop
2•jeffbarr•21m ago•0 comments

How Elon Musk Killed Hundreds of Thousands of People

https://www.currentaffairs.org/news/how-elon-musk-killed-hundreds-of-thousands-of-people
5•tastyface•22m ago•0 comments

Claude Fable Is Out

https://twitter.com/StefanW/status/2064399946648846505
2•swolpers•22m ago•0 comments

DuckDB Storage Engine for MariaDB

https://mariadb.org/duckdb-storage-engine-for-mariadb-when-the-sea-lion-learns-to-quack/
1•tanelpoder•23m ago•0 comments

Edgar Allan Poe found bugs in Turso

https://turso.tech/blog/edgar-allan-poe
1•dockerd•23m ago•0 comments

Where is the AI jobs crisis?

https://www.apollo.com/wealth/the-daily-spark/where-is-the-ai-jobs-crisis
9•bwestergard•25m ago•5 comments