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!

Why Companies Keep Tokenmaxxing

https://caseorganic.substack.com/p/why-companies-keep-tokenmaxxing
1•SLHamlet•40s ago•0 comments

Physical Media Is Making a Comeback. The Next Console Generation Might Kill It

https://www.wired.com/story/physical-media-is-having-a-comeback-the-next-console-generation-may-k...
1•rolph•1m ago•0 comments

Should You Automate Your Life?

https://www.newyorker.com/culture/open-questions/should-you-automate-your-life
1•fortran77•3m ago•0 comments

How to Evaluate an NPM Package – 2026 Edition

https://blog.gaborkoos.com/posts/2026-05-29-How-to-Evaluate-an-npm-Package-2026-Edition/
1•theanonymousone•7m ago•0 comments

Rendering Diffs, by Pierre Computer Company

https://pierre.computer/writing/on-rendering-diffs
2•amadeus•7m ago•1 comments

Telegram announcing the surrender of Ft. Sumter (1861)

https://en.wikisource.org/wiki/Fort_Sumter_telegram
1•caminanteblanco•8m ago•0 comments

Quine revives Hyper Terminal

https://hyper.quineglobal.com
2•ironmagma•12m ago•0 comments

Financial Models as Code

https://github.com/Orcaset/orcaset-py
1•jrdnocs•15m ago•0 comments

FYI: Dreamina is shady; do not use

1•ronyeh•15m ago•0 comments

Apple's Finder App [video]

https://www.youtube.com/shorts/viUU2LAR8eg
2•Cider9986•18m ago•0 comments

Wikipedia doesn't need my cash

https://forkingmad.blog/wikipedia-doesnt-need-my-cash/
4•speckx•21m ago•1 comments

The Presences API: Track who is online, typing, and active in realtime

https://appwrite.io/blog/post/announcing-presences-api
1•codeguyakashdev•21m ago•0 comments

Redis-py sucks. It's time for something better

https://github.com/alisaifee/coredis
1•22graeme•23m ago•1 comments

A tiny microphone and site to track birds outside your window

https://theodore.net/projects/AvianVisitors/
2•Twarner•23m ago•1 comments

APL's Surprising Learning Curve (2017) [video]

https://www.youtube.com/watch?v=9xCJ3BCIudI
1•tosh•24m ago•0 comments

Clawtoberfest Contribute · Iterate · Molt

https://nesbitt.io/clawtoberfest/
1•lyoncy•26m ago•0 comments

Monty Hall Problem Simulation

https://nodesocket.github.io/monty-hall-problem-simulation/
1•nodesocket•26m ago•0 comments

Can someone explain this information theory puzzle paper in simple terms?

https://www.researchgate.net/publication/394259368_Exploring_Reinforcement_Learning_and_Informati...
1•JustSittingHere•29m ago•0 comments

Multi-Tenancy in Spring Boot: A Practical Guide

https://anomitra.me/blog/multi-tenancy-in-spring-boot-a-practical-guide/
1•shadeslayer_•30m ago•0 comments

Americans Are Falling Behind on Their $1.25T Credit-Card Bill

https://www.wsj.com/personal-finance/credit/us-credit-card-debt-af5c7c77
10•tcp_handshaker•30m ago•2 comments

Vidai – AI Gateway Written in Rust Community Edition Released

https://vidai.uk/community/
1•nagug•32m ago•0 comments

Decades of Effort Restore Steelhead and Salmon Passage on Alameda Creek

https://www.fisheries.noaa.gov/feature-story/decades-effort-restore-steelhead-and-salmon-passage-...
3•rawgabbit•34m ago•0 comments

La Fabbrica Del Terrore

https://drfmappa.substack.com/p/la-fabbrica-del-terrore
1•drpsymappa•38m ago•0 comments

ChatPaper: Explore and AI Chat with the Academic Papers

https://chatpaper.com
1•geox•39m ago•0 comments

Rothko for your current weather conditions

https://rothko.joonas.wtf/
22•jxmorris12•40m ago•2 comments

Why German trains are never on time anymore

https://www.lemonde.fr/en/international/article/2026/05/29/why-german-trains-are-never-on-time-an...
7•rawgabbit•40m ago•1 comments

Show HN: Heypi – Like OpenClaw but for Your Team (Slack, Discord, etc.)

https://github.com/hunvreus/heypi
1•hunvreus•42m ago•0 comments

Reproducible Infrastructure and Nix

https://www.heavybit.com/library/podcasts/open-source-ready/ep-38-reproducible-infrastructure-wit...
2•jmartens•43m ago•0 comments

ARM Open Sources AI-Powered Security Code Review

https://github.com/arm/metis
1•ARob109•43m ago•0 comments

What is to be done about MGLRU?

https://lwn.net/Articles/1072866/
2•infinet•43m ago•0 comments