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!

Unlocking Long-Context LLM Training via Compiler-Based Sequence Parallelism

https://arxiv.org/abs/2604.27089
1•PaulHoule•53s ago•0 comments

Quirre – An AI marketing copilot for non-marketers

https://www.quirre.com/
1•dmnlaali•1m ago•0 comments

When innocent tools form dangerous chains to jailbreak LLM agents

https://arxiv.org/abs/2509.25624
2•leecoursey•1m ago•0 comments

Ask HN: What's worse? Making decisions based on bad data or no data? Why?

2•jrs235•2m ago•0 comments

What five years of data tells us about lasting relationships

https://hanker.dating/study
2•whatsupdog•3m ago•0 comments

A man who blew up a nuclear power station and disappeared

https://www.theguardian.com/world/2026/may/05/the-man-who-blew-up-a-nuclear-power-station-koeberg...
4•billybuckwheat•3m ago•0 comments

The Stall Door Crack [video]

https://www.youtube.com/watch?v=psKpIFYn3Uo
1•giardini•3m ago•0 comments

Show HN: 118% More RPS for Maravel vs. Lumen with Maravel-Framework 10.71.7

https://medium.com/@marius-ciclistu/118-more-rps-for-maravel-vs-lumen-with-maravel-framework-10-7...
1•marius-ciclistu•5m ago•0 comments

NARE CLI

https://github.com/Nare-Labs/NARE-CLI
2•BastOfMax•5m ago•0 comments

Can Chatbots Do Memfrob?

https://danieltuveson.github.io/stupid/llm/2026/04/24/chatbot.html
1•tuveson•6m ago•0 comments

The Race to Become the Context Layer for Agents

https://gavinray97.github.io/blog/the-race-for-universal-context-layer
2•gavinray•6m ago•0 comments

Most Developers Have Never Built Anything Real – The Numbers Are Embarrassing

https://comuniq.xyz/post?t=1032
2•01-_-•7m ago•1 comments

We removed AI from our game and it made it significantly better

https://zadzoud.com/chibitomo
4•ZeidJ•9m ago•1 comments

The King in Yellow (1895)

https://www.gutenberg.org/cache/epub/8492/pg8492-images.html
1•caminanteblanco•9m ago•0 comments

After 3 months of using standing desk

https://darshanmakwana412.github.io/2026/05/standing-desk/
1•darshanmakwana•12m ago•0 comments

Brockman: OpenAI to Spend $50B on Computing in 2026

https://www.bloomberg.com/news/articles/2026-05-05/openai-to-spend-50-billion-on-computing-in-202...
2•htrp•12m ago•0 comments

Every Type of Plastic Used by Lego

https://bricknerd.com/home/every-type-of-plastic-used-by-lego-2026-edition-3-12-26
1•speckx•12m ago•0 comments

AutoSP from PyTorch

https://pytorch.org/blog/introducing-autosp/
1•gmays•13m ago•0 comments

Show HN: Is your brand invisible to AI? We built a free visibility score

https://engagemii.com/aeo
1•Greg_engagemii•13m ago•0 comments

Why Is Electricity So Hard to Understand? (1989)

http://amasci.com/miscon/whyhrd3.html
2•downbad_•13m ago•1 comments

Public Service Announcement Badges

https://psas.dev/
1•edent•15m ago•0 comments

Show HN: Cockroach Battle Royale Game

https://roachoids.com
1•AFF87•16m ago•0 comments

LightInk, a Solar Powered ESP32 Smartwatch

https://hackaday.com/2026/05/05/lightink-a-solar-powered-esp32-smartwatch/
1•HardwareLust•16m ago•0 comments

Sam Bankman-Fried's Venture Bets Would Have Made Him $100B Richer

https://www.forbes.com/sites/ninabambysheva/2026/05/05/how-sam-bankman-frieds-venture-bets-would-...
1•paulpauper•16m ago•1 comments

The Programmer's Oath: 2025

https://ivanlugo.dev/oath.html
1•tikimcfee•16m ago•1 comments

Blackstone, KKR in Talks with Google to Bring AI Models to Portfolio Firms

https://www.bloomberg.com/news/articles/2026-05-05/blackstone-kkr-consider-google-deal-in-surge-o...
1•petethomas•17m ago•0 comments

Stop trying to review AI's code faster: bet on rollback instead

https://rootly.com/blog/stop-trying-to-review-ais-code-faster-bet-on-rollbacks-instead
1•sylvainkalache•17m ago•1 comments

Why didn't IPv6 work in my home network?

https://gowtham.dev/blog/ipv6-problems.html
1•lladnar•17m ago•0 comments

Ask HN: Have you ever thought of leaving programming for something else?

3•chistev•18m ago•1 comments

Font Changer Pro

https://chromewebstore.google.com/detail/font-changer-pro-—-fancy/gcnkiamhcnamjajanohnedpaafjgfbjc
1•asiffareed•18m ago•0 comments