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!

Too Many Books?

https://www.nytimes.com/2026/07/09/style/too-many-books-new-york-city-apartment-scholar-landlord....
1•simplegeek•1m ago•0 comments

Why Shadow AI Detection Can Not Wait

https://konghq.com/blog/enterprise/shadow-ai-detection-enterprise-governance
1•axandriamier•1m ago•0 comments

Neon Handles Database Branching

https://bytesizedbets.com/p/how-neon-handles-database-branching
1•TheAnkurTyagi•2m ago•0 comments

A 2-in-1 OSINT suite for deep email and username metadata extraction

https://github.com/kaifcodec/user-scanner
1•json-hunter07•3m ago•0 comments

Show HN: I built source-verified SAT score profiles for hiring

https://showmyscore.com/
1•stony-builds•3m ago•0 comments

Show HN: Simulator for a custom 8-bit discreet logic computer

https://msap2.mehran.dk
1•mehrant•4m ago•0 comments

Spotify now has an AI assistant you can talk to

https://www.neowin.net/news/spotify-now-has-an-ai-assistant-you-can-talk-to/
1•jenic_•7m ago•1 comments

Allthevaccines.org

https://allthevaccines.org/
1•Gooblebrai•8m ago•0 comments

Too many words about DIDs

https://steveklabnik.com/writing/too-many-words-about-dids/
2•steveklabnik•10m ago•0 comments

Show HN: An IELTS grader that names the one thing blocking Band 7

https://examinerly.com/
1•shraey96•12m ago•0 comments

Why Huge Pages Matter for Postgres?

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•13m ago•0 comments

Show HN: Dspack Studio – An agent builds UI, the design system gates what ships

https://studio.aesthetic-function.com
1•ryandmonk•13m ago•0 comments

Show HN: A lightweight model monitor for scikit-learn and Keras

https://aitor1717.github.io/canary-ml/
1•aitor1717•14m ago•0 comments

The first sunlight reflecting space mirror has been cleared for launch

https://www.theverge.com/science/965263/reflect-orbital-space-mirror-launch-fcc-clearance
1•Brajeshwar•15m ago•1 comments

Show HN: I built a free app that turns your fridge into recipes (solo dev)

https://souva.app
1•RyanJensen•15m ago•0 comments

Vivario – a browser terrarium that generates its own world and sound

https://vi-vario.com/
1•mtsyfy•15m ago•0 comments

Why Pogačar Rides on a Car Tire Brand

https://www.renehersecycles.com/why-pogacar-rides-on-a-car-tire-brand/
1•bobchadwick•16m ago•0 comments

Maybe Men's Problem Is That They Like Being Lonely

https://www.conorfitzgerald.com/p/maybe-mens-problem-is-that-they-like
3•casca•17m ago•0 comments

A ChatGPT automation just found –$45K in erroneous invoices across 3 years

https://twitter.com/mitchellh/status/2077053324835389497
2•tosh•17m ago•0 comments

Designing Math Ft. Grant Sanderson (3Blue1Brown) I Config 2026

https://www.youtube.com/watch?v=bLSLN96Gn-w
1•root-parent•19m ago•0 comments

Iran exploited mobile flaws to locate U.S. troops in the Middle East

https://techcrunch.com/2026/07/14/iran-abused-mobile-networks-vulnerabilities-to-locate-u-s-milit...
3•speckx•19m ago•0 comments

IBM warns AI boom is squeezing software budgets; shares sink in sector rout

https://finance.yahoo.com/markets/stocks/articles/ibm-expects-second-quarter-revenue-111029599.html
3•wslh•20m ago•0 comments

Dupes (product clones) took over the world

https://www.vox.com/podcasts/493930/dupe-culture-fender-ugg-quince-tiktok-amazon-online-shopping
3•gumby•20m ago•0 comments

Show HN: Skills as a Service via MCP –> Coding Agent Skill Library

https://github.com/mmccalla/coding-agent-skill-library
1•get-analyst-01•23m ago•0 comments

Linux Transparent Proxy Internals

https://allhailthetopology.substack.com/p/linux-transparent-proxy-internals
1•ldelossa•23m ago•1 comments

Google probed by Swiss regulator over Android default search feature

https://www.reuters.com/legal/litigation/google-probed-by-swiss-regulator-over-android-default-se...
1•1vuio0pswjnm7•24m ago•0 comments

Why design matters for a web framework: a 7-year evolution

https://wasp.sh/blog/2026/07/13/why-design-matters-for-a-web-framework
2•matijash•24m ago•0 comments

Show HN: Megaphone – On-device macOS dictation built on Apple's SpeechAnalyzer

https://github.com/Kuberwastaken/megaphone
1•kuberwastaken•25m ago•0 comments

Show HN: Orbital PAI a personal AI assistant

https://github.com/Dream-Mosaic/orbital-pai
1•kalcode•25m ago•0 comments

K (1993)

https://web.archive.org/web/20160330020952/http://archive.vector.org.uk/art10010830
1•tosh•25m ago•0 comments