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!

Make LLM-powered apps Smarter and Cheaper, Reliable, Auditable changing 1 LOC

https://github.com/AlhasanIQ/consortium
2•alhasaniq•2m ago•1 comments

Guide to Response Time Monitoring

https://testomato.com/blog/response-time-monitoring/
1•dewey-decibel•3m ago•0 comments

Minlz v1.2: Search compressed data with without decompression

https://github.com/minio/minlz/releases/tag/v1.2.0
1•klauspost•5m ago•1 comments

"Houston, we have 1 problem(s)."

https://unsung.aresluna.org/houston-we-have-1-problems/
1•Looky1173•7m ago•1 comments

Anduril CEO Warns AI and Defense Valuations Are Becoming Dangerously Overvalued

https://finance.yahoo.com/technology/ai/articles/anduril-ceo-warns-ai-defense-180112499.html
2•jack1689•8m ago•0 comments

Musk's Starlink Socks Customers with $1500 'High Demand' Surcharge

https://www.techdirt.com/2026/07/13/musks-starlink-socks-customers-with-1500-high-demand-surcharge/
4•defrost•9m ago•0 comments

Open source AI matters more than ever, according to Hugging Face's Clem Delangue

https://techcrunch.com/podcast/open-source-ai-matters-more-than-ever-according-to-hugging-faces-c...
1•jack1689•11m ago•0 comments

Show HN: A Sims-style house builder in the browser (Three.js, no back end)

https://github.com/ch-bas/threejs-sims-house-builder
2•ch-bas•11m ago•1 comments

Show HN: OSS Web Based AI Video Studio (Vivijure)

2•skyphusion•13m ago•0 comments

I Stopped Destructuring Everything

https://allthingssmitty.com/2026/07/13/i-stopped-destructuring-everything/
1•AllThingsSmitty•14m ago•0 comments

Show HN: Costbase – See what each of your AI apps costs, without a proxy

https://costbase.co
2•yidaman•15m ago•0 comments

The Emperor's New Xerox

https://ianreppel.org/the-emperors-new-xerox/
2•mvac•17m ago•0 comments

Show HN: Hypothesis Prism, a graph representation of a paper's hypothesis

https://hypothesisprism.com
1•ayasamadzelkava•17m ago•0 comments

The Chinese Communist Party turns 105 amidst technological splendor

https://english.elpais.com/international/2026-07-10/the-chinese-communist-party-turns-105-amidst-...
2•geox•20m ago•0 comments

UK Bans Support for Iran's Islamic Revolutionary Guard Corps

https://www.bbc.co.uk/news/articles/cz0jkj7e87go
1•jjgreen•21m ago•0 comments

Christopher Nolan says people disdain AI, idea it'll replace humans is nonsense

https://www.theguardian.com/film/2026/jul/13/christopher-nolan-odyssey-director-comments-ai-artif...
2•thm•23m ago•0 comments

Borrow-Checking Surprises

https://www.scattered-thoughts.net/writing/borrow-checking-surprises/
1•surprisetalk•23m ago•0 comments

Building AI Agents? Here Are Some Anti-Patterns to Avoid

https://machinelearningmastery.com/building-ai-agents-here-are-some-anti-patterns-to-avoid/
1•eigenBasis•23m ago•0 comments

TeamBrain – Git-Native Shared Memory for Claude Code, Cursor and Codex

https://teambrain-site.netlify.app/
1•DonatienMigue•25m ago•0 comments

MCP with Keycloak, Claude, Codex and a Whole Lot of Coffee

https://blog.priyavijai-kalyan2007.workers.dev/mcp-via-keycloak-with-claude-codex-coffee/
1•oldnewthing•25m ago•0 comments

Major Setbacks for Nvidia Kyber NVL144

https://twitter.com/SemiAnalysis_/status/2073874671498387899
1•doener•26m ago•0 comments

Hoarding in Summer

https://matt-schellhas.medium.com/hoarding-in-summer-fdaf9ec1834d
1•mooreds•32m ago•0 comments

Agentgateway adds token exchange, JWT-assertion, and Entra OBO

https://agentgateway.dev/blog/2026-07-12-agentgateway-token-exchange-jwt-assertion-entra-obo/
2•mooreds•33m ago•0 comments

AI boom to drive €6.8B in water spend for European data centres by 2036

https://www.watermagazine.co.uk/2026/07/13/ai-boom-to-drive-e6-8-billion-in-water-spend-for-europ...
1•technewssss•36m ago•0 comments

A Linux compatible kernel written in Zig that runs Linux binaries in the browser

https://github.com/michaelkremenetsky/linuxemu
2•michaelkrem•36m ago•0 comments

Alomware Toolbox: Windows tool prevents OLED screen burn-in

https://www.computerbild.de/artikel/Tipps-Windows-Alomware-Toolbox-Windows-Tool-verhindert-OLED-B...
1•BarryGuff•36m ago•1 comments

Mistral, Europe's AI Darling, Fails FLI Safety Index

https://mrkt30.com/mistral-europes-ai-darling-fails-fli-safety-index/
2•technewssss•36m ago•0 comments

MongoDB Query Mistakes That Return the Wrong Results

https://visualeaf.com/blog/mongodb-query-mistakes-wrong-results/
2•mike_codes•38m ago•0 comments

A restaurant menu demonstrates the frightening power of inflation

https://tipswatch.com/2026/07/12/a-restaurant-menu-demonstrates-the-frightening-effects-of-inflat...
1•mooreds•41m ago•0 comments

Show HN: Live MRR in your X bio, on autopilot. Screenshots expire–Nuvio doesn't

https://www.nuvio.so
2•launchpact_io•43m ago•0 comments