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•7mo ago

Comments

zljdanceholic•7mo 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!

Guide to Machine Learning

https://www.ibm.com/think/machine-learning
1•b-man•49s ago•0 comments

Automate your denied insurance appeals

https://healthappeal.com
1•naman5a•51s ago•0 comments

VisualDiffer: Compare Folders and Files on macOS

https://visualdiffer.com
1•sea-gold•57s ago•1 comments

Low-frequency noise can help electric vehicles stand out in busy environments

https://techxplore.com/news/2025-12-employing-frequency-noise-electric-vehicles.html
1•PaulHoule•1m ago•0 comments

DevSecOps Tools Periodic Table

https://digital.ai/learn/devsecops-periodic-table/
1•gudzpoz•5m ago•0 comments

Rock Paper Scissors Strategies

https://wrpsa.com/rock-paper-scissors-strategies/
1•cainxinth•5m ago•0 comments

AI Generated Tests Might Be Lying to You

https://www.youtube.com/watch?v=-iGptIr7FZA
1•nslog•6m ago•0 comments

My coworker's 36 key Corne open-source keyboard setup

https://nuon.co/blog/nuon-keyboard-culture/
1•realsharkymark•6m ago•1 comments

Automatic label checking: The missing step in making reliable medical AI

https://www.omu.ac.jp/en/info/research-news/entry-100013.html
1•geox•7m ago•0 comments

AI Usage Policy – Tao of Mac

https://taoofmac.com/space/site/ai_policy
1•rcarmo•8m ago•0 comments

More Than 80% of New California Properties Are in High Fire-Risk Areas

https://www.theguardian.com/news/datablog/2025/feb/15/california-wildfire-building-risk
1•karakoram•8m ago•0 comments

Predictions for 2026

https://taoofmac.com/space/blog/2025/12/26/1500
1•rcarmo•8m ago•0 comments

My year in tech switches- 2025 edition

1•KitN•9m ago•1 comments

The Ethical Computing Initiative, Xmas Edition

https://aol.codeberg.page/eci/
1•babylon5•10m ago•0 comments

The gut bacteria that put the brakes on weight gain in mice

https://phys.org/news/2025-12-gut-bacteria-weight-gain-mice.html
1•WaitWaitWha•11m ago•0 comments

Show HN: Witr – Explain why a process is running on your Linux system

https://github.com/pranshuparmar/witr
1•pranshuparmar•14m ago•1 comments

Optics Primer, Part 1: Traditional Pluggable Optics

https://www.chipstrat.com/p/optics-primer-part-1-traditional
1•rbanffy•16m ago•0 comments

Show HN: Zero-config staging environments for GitHub repos

https://autodock.io
1•mikesol•18m ago•0 comments

Pew Research - Striking Findings from 2025

https://www.pewresearch.org/short-reads/2025/12/09/striking-findings-from-2025/
2•karakoram•20m ago•0 comments

Show HN: Dropstone – A Recursive Swarm Runtime for Long-Horizon Agent Tasks

https://www.dropstone.io
1•epicprogrammer•20m ago•1 comments

High School Student Discovers 1.5M Potential New Astronomical Objects

https://www.smithsonianmag.com/smart-news/high-school-student-discovers-1-5-million-potential-new...
8•mhb•21m ago•2 comments

Am I a Workaholic?

https://workaholics-anonymous.org/am-i-a-workaholic/
1•bookofjoe•21m ago•0 comments

AI Boom Adds $500B To Net Worth Of US Tech Billionaires In 2025

https://www.ft.com/content/9dcd770a-1ca7-4533-980c-08c5704c9670
1•karakoram•22m ago•1 comments

GenAI Website Traffic Share

https://twitter.com/Similarweb/status/2004113864347029663
1•xnx•23m ago•0 comments

Show HN: Crawlee Cloud Self-hosted platform for running Crawlee and Apify actor

https://crawlee.cloud
2•aminembarki•27m ago•0 comments

Show HN: Xcc700: Self-hosting mini C compiler for ESP32 (Xtensa) in 700 lines

https://github.com/valdanylchuk/xcc700
3•isitcontent•28m ago•0 comments

Show HN: Text Behind Image – put text behind objects using AI

https://text-behind-image.org/
1•kyrox•28m ago•0 comments

an opinionated blog on tech switches by a student who lived through year 2025

https://substack.com/inbox/post/182630805
1•KitN•28m ago•1 comments

Clone Hero – open-source Guitar Hero successor

https://clonehero.net/
2•tomaytotomato•31m ago•0 comments

The Story of DeepMind

https://bigthink.com/business/the-inside-story-of-deepmind/
1•Brajeshwar•31m ago•0 comments