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

Comments

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

US Traces Ransomware Attacks to 2 People Working for Cybersecurity Firms

https://www.pcmag.com/news/us-traces-ransomware-attacks-to-2-people-working-for-cybersecurity-firms
1•WaitWaitWha•47s ago•0 comments

AWS announces Fastnet, its first solo subsea cable project

https://www.aboutamazon.com/news/aws/transatlantic-subsea-cable-us-ireland-fastnet-aws
1•Henry3•1m ago•0 comments

Searles's Chinese Room: Case study in philosophy of mind and cognitive science

https://cse.buffalo.edu/~rapaport/Papers/Papers.by.Others/reingold-on-searle.html
1•mhb•1m ago•0 comments

High-performance 2D graphics rendering on the CPU using sparse strips [pdf]

https://github.com/LaurenzV/master-thesis/blob/main/main.pdf
1•todsacerdoti•2m ago•0 comments

LLMs as Interpreters: The Probabilistic Runtime for English Programs

https://responseawareness.substack.com/p/llms-as-interpreters-the-probabilistic
2•gmays•2m ago•0 comments

Why AI Can't Write Good Software

https://blog.jpillora.com/p/why-ai-cant-write-good-software
1•jpillora•2m ago•0 comments

This Month in Redox – October 2025

https://www.redox-os.org/news/this-month-251031/
1•akyuu•3m ago•0 comments

Giant rotating hamster wheels aim to 'revolutionize' indoor skiing

https://newatlas.com/ski-snowboard/snowtunnel-indoor-ski-rotating/
1•geox•3m ago•0 comments

Why do some of us love AI, while others hate it?

https://theconversation.com/why-do-some-of-us-love-ai-while-others-hate-it-the-answer-is-in-how-o...
1•g-b-r•3m ago•0 comments

Django ninja aio CRUD REST framework

https://github.com/caspel26/django-ninja-aio-crud
1•mangrisano•4m ago•1 comments

New Major ReARM Release Includes Vulnerability Analysis Functionality

https://rearmhq.com/blog/2025-11-04-rearm-adds-vulnerability-analysis-functionality/
1•taleodor•5m ago•0 comments

Inline vs. Pipeline Ray Tracing

https://www.evolvebenchmark.com/blog-posts/inline-vs-pipeline-ray-tracing
1•evolve_•5m ago•0 comments

Preparing for Threats to Come: Cybersecurity Forecast 2026

https://cloud.google.com/blog/topics/threat-intelligence/cybersecurity-forecast-2026/
1•meysamazad•5m ago•0 comments

PayByCar has suspended their services

https://mypaybycar.com/
1•ghostoftiber•6m ago•1 comments

Free Online Image Watermark Tool

https://watermark.openai2025.com/index.html
1•ace520•8m ago•0 comments

What Happens If You Blur and Sharpen an Image 1000 Times? [video]

https://www.youtube.com/watch?v=7oCtDGOSgG8
1•skibz•9m ago•0 comments

Stop Renting Your Audience: Run Your Own Newsletter with Listmonk

https://meysam.io/blog/own-your-newsletter-with-listmonk/
2•meysamazad•11m ago•0 comments

I am trying to find interest in my provably correct parameter selection method

1•Patternician•11m ago•0 comments

Rpnpy – a reverse-Polish notation calculator for Python

https://github.com/terrycojones/rpnpy
1•davipatti•12m ago•1 comments

Show HN: Agor → Figma for AI Coding (Open Source)

https://agor.live
1•caravel•12m ago•2 comments

Tailwindcss.com load time is now very fast

https://twitter.com/whakaarolabs/status/1985707677868077116
2•youz•13m ago•0 comments

Show HN: A CSS-Only Terrain Generator

https://terra.layoutit.com
1•rofko•14m ago•0 comments

Development and validation of blood-based diagnostic biomarkers for ME/CFS

https://translational-medicine.biomedcentral.com/articles/10.1186/s12967-025-07203-w
1•bookofjoe•14m ago•1 comments

Debugging containers that have no shell

https://docs.docker.com/reference/cli/docker/debug
1•pploug•14m ago•1 comments

Show HN: Clear Mail for Gmail – Clean up your Gmail inbox locally, no OAuth reqd

https://clearmailapp.com
1•raghukumar•16m ago•0 comments

YC Partner Simulator

https://www.ycarena.com/games/partnersim
1•andrelaszlo•17m ago•0 comments

Show HN: API-first approval workflows and smart routing (SignumFlow)

1•signumflow•17m ago•0 comments

NetHack4 Philosophy

http://nethack4.org/philosophy.html
2•suioir•20m ago•0 comments

Truckmakers lobby European Commission to weaken their emissions targets

https://www.transportenvironment.org/articles/truckmakers-lobby-european-commission-to-weaken-the...
2•robtherobber•21m ago•0 comments

ARRL Frequency Measurement Test (Thursday)

https://fmt.arrl.org/
1•swalberg•23m ago•0 comments