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

Comments

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

Createmystore.ai – a Shopify store builder that sets up conversion tools for you

https://createmystore.ai
1•alice_vitals•4m ago•1 comments

Show HN: Claude Code generated a tip that looks like an ad

1•kmschaal•8m ago•0 comments

Show HN: I built a free CharacterAI that runs locally

https://github.com/akdeb/open-toys/tree/main/resources
2•akadeb•10m ago•0 comments

Show HN: Lightless Labs Refinery – multi-model consensus and synthesis

https://github.com/Lightless-Labs/refinery
2•ElFitz•14m ago•0 comments

My brain lies to me, so I built AI an immune system

https://github.com/timvonsachs/sentinel-ai
1•timfromsachs•14m ago•0 comments

Magic Link Pitfalls

https://etodd.io/2026/03/22/magic-link-pitfalls/
1•Munksgaard•16m ago•0 comments

Show HN: Hackerism (an example of good-quality AI-art-direction and some xprmt.)

https://github.com/chromoblob/hn/blob/main/transhackerism.png
1•chromoblob•17m ago•0 comments

Liveline: Smooth, real-time, and animated line charts

https://benji.org/liveline
1•jrhizor•18m ago•0 comments

The Modern Antiquarian

https://www.themodernantiquarian.com/
1•jstanley•18m ago•0 comments

The Myth of the MV pattern: Why SwiftUI developers just reinvented MVC

https://matteomanferdini.com/swiftui-mv-pattern/
1•ingve•20m ago•0 comments

Trino – Introducing the NUMBER data type

https://trino.io/blog/2026/03/25/number-data-type.html
1•hashhar•21m ago•0 comments

Like Putin, Trump is a megalomaniac. In Europe, we can shield ourselves

https://www.theguardian.com/commentisfree/2026/mar/25/like-putin-trump-is-a-megalomaniac-in-europ...
2•haizhung•23m ago•0 comments

Building a Mostly IPv6 Only Home Network

https://varunpriolkar.com/2026/03/building-a-mostly-ipv6-only-home-network/
1•arhue•26m ago•0 comments

Harness design for long-running application development

https://www.anthropic.com/engineering/harness-design-long-running-apps
2•tosh•32m ago•0 comments

Predictive Coding to Digital Brain: Neuroscience-Inspired Memory for AI Agents

https://blog.gazzurelli.com/from-predictive-coding-to-digital-brain-a-cognitive-architecture-for-...
1•duckma•34m ago•0 comments

Show HN: CI/CD in your terminal, zero YAML

https://zippy.sh
2•svanderbijl•35m ago•0 comments

Apotris – A free and multiplatform block stacking game

https://akouzoukos.com/apotris
1•routeroff•35m ago•0 comments

Addressing global removal race in Wayland

https://blog.vladzahorodnii.com/2026/03/24/addressing-global-removal-race-in-wayland/
1•fanf2•36m ago•0 comments

Money Disorder

https://en.wikipedia.org/wiki/Money_disorder
1•amelius•39m ago•0 comments

How to Install a Gem

https://andre.arko.net/2026/03/24/how-to-install-a-gem/
1•ingve•40m ago•0 comments

Skeleton of musketier d'Artagnan possibly found (Dutch)

https://nos.nl/artikel/2607725-skelet-van-vierde-musketier-d-artagnan-mogelijk-na-eeuwen-gevonden
1•28304283409234•43m ago•1 comments

Iris – a C inference pipeline for image synthesis models

https://github.com/antirez/iris.c
1•nnx•43m ago•0 comments

Death of Programming Languages?

1•tarunmangukiya•44m ago•0 comments

Death of the IDE?

https://addyo.substack.com/p/death-of-the-ide
1•vinhnx•46m ago•0 comments

How does behavior change happen

https://invertedpassion.com/how-does-behavior-change-happen/
1•vinhnx•46m ago•0 comments

Fractal Neuro Oscillator

https://sourceforge.net/projects/fractal-neuro-oscillator/
1•vector_the_lost•47m ago•0 comments

Firefox 149 adds split-view and free built-in VPN

https://www.firefox.com/en-US/firefox/149.0/releasenotes/
1•vidyesh•47m ago•0 comments

The junior developer pipeline is broken, and nobody has a plan to fix it

https://thinkpol.ca/2026/03/24/the-junior-developer-pipeline-is-broken-and-nobody-has-a-plan-to-f...
3•birdculture•49m ago•1 comments

AI Writes Code. You Own Quality

https://helderberto.com/posts/ai-writes-code-you-own-quality
2•helderburato•50m ago•0 comments

The Long Tail Comes for the Creative Industry

https://studios.greenhousepartners.com/insights/long-tail-creative-agencies-ai
1•mooreds•50m ago•0 comments