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!

Show HN: Spoiler-Free Website for UFC, FIFA World Cup, Formula 1

https://eventclock.org
1•budgetjonsnow•1m ago•0 comments

Whales copy trading on Polygoose

https://polygoose.xyz/en/
1•manofix•3m ago•0 comments

Show HN: I ported 11 model families to Apple's new on-device AI framework

https://github.com/john-rocky/coreai-model-zoo
1•mlboy•3m ago•0 comments

Show HN: LinkedIn Unfiltered – Turn AI slop into readable posts

https://github.com/kjhq/linkedin-unfiltered
1•thunderdrag•4m ago•0 comments

Personal Guardian Angel with LLM

https://gwern.net/guardian-angel
1•rickybule•6m ago•0 comments

We Cut Onboarding Time by 40% Using AI – Here's What We Did (Week 5 Roun

https://theaileverageweekly.com/posts/we-cut-onboarding-time-by-40-using-ai-here-s-exactly-what-w...
1•talvardi7•16m ago•0 comments

Genblaze: Open-Source Python SDK for Multi-Provider Generative Media Pipelines

https://www.backblaze.com/blog/introducing-genblaze-a-python-sdk-for-generative-media-pipelines/
1•LaSombra•18m ago•0 comments

Misenlac.es – Your bio link and URL shortener in one place

https://misenlac.es/es
1•david_rodriguez•20m ago•1 comments

SpaceX IPO makes Elon Musk the first trillionaire

https://www.reuters.com/business/media-telecom/spacex-ipo-makes-elon-musk-worlds-first-trillionai...
1•thomascountz•24m ago•1 comments

An Overpass QL interpreter using the QLever database

https://www.openstreetmap.org/user/Kai%20Johnson/diary/408849
1•altilunium•27m ago•0 comments

Ask HN: What is the difference between an IMU module and a smart motion sensor?

1•daischsensor•29m ago•0 comments

Italian bill on nuclear energy progressing through parliament

https://www.world-nuclear-news.org/articles/italian-bill-on-nuclear-energy-progresses-through-par...
2•omblivion•29m ago•0 comments

Dearhiringmanager.io Is Hiring a Full-Stack Developer (Remote)

https://dearhiringmanager.io
1•fcKarhuno•29m ago•0 comments

Construct's New 3D Editor

https://www.construct.net/en/blogs/construct-official-blog-1/introducing-constructs-new-3d-1902
1•AshleysBrain•32m ago•0 comments

Justification in Arabic Typesetting

https://doi.org/10.3998/3336451.0023.104
2•fanf2•35m ago•0 comments

Google Axion ARM Processors

https://cloud.google.com/products/axion
2•tosh•39m ago•0 comments

HP SSDs lose their performance after 7.5 years / integer overflow

https://support.hpe.com/connect/s/softwaredetails?language=en_US&collectionId=MTX-4cc24985bf9c485...
3•foosinn•40m ago•0 comments

AI Engineering the Acceleration Whiplash

https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways
2•DareTheDev•41m ago•0 comments

Bumsrakete - CVE-2026-45257

https://bumsrake.de/
1•jbk•41m ago•0 comments

ClickHouse expands strategic collaboration with Google Cloud

https://clickhouse.com/blog/clickhouse-expands-strategic-collaboration-with-google-cloud
1•tosh•42m ago•0 comments

Gen Zers are arriving at college unable to even read a sentence

https://fortune.com/article/gen-z-college-students-struggling-to-read-books-professors-forced-to-...
2•jruohonen•43m ago•0 comments

Cat Hair Mustache Puzzle

https://en.wikipedia.org/wiki/Cat_hair_mustache_puzzle
1•LookAtThatBacon•47m ago•0 comments

chDB is an in-process OLAP SQL Engine powered by ClickHouse

https://github.com/chdb-io/chdb
1•tosh•49m ago•0 comments

CostLoop – track SaaS renewals and stop paying for forgotten subscriptions

https://costloop.app/blog/avoid-forgotten-saas-renewals/
1•Cech1337•49m ago•0 comments

Visible Boundaries Earn Trust

https://blog.vigilharbor.com/visible-boundaries-earn-trust
1•Calvin-Gibson•51m ago•1 comments

Apposters – Generate a full project website from a GitHub repository

https://apposters.com/
1•loeona•53m ago•0 comments

Kache – a zero-copy build cache for Rust

https://kunobi.ninja/blog/kache-v0-5-0
1•ainhoaa•57m ago•1 comments

NHS Replaces a&E Receptionists with iPads

https://www.telegraph.co.uk/news/2026/06/10/nhs-replaces-ae-receptionists-with-ipads/
4•ksec•59m ago•0 comments

Show HN: Recreate Thinking Machines 276B voice demo with duct tape and 8B model

https://github.com/kouhxp/cheap-im
1•mrkn1•1h ago•0 comments

KPMG report on benefits of AI contained AI hallucinations

https://www.ft.com/content/b3828e92-4961-4b39-84f0-c42f33be3c3f
2•calcifer•1h ago•1 comments