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

Comments

zljdanceholic•9mo 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: Creating PDF documents with rotativa.io templates

https://rotativa.io/site/blog/instructions/2025/11/19/pdf-creation-with-templates.html
1•webgio•52s ago•0 comments

Browser.html – a web browser built with web technologies using Servo as web ren

https://tangled.org/me.webbeef.org/browser.html
1•todsacerdoti•1m ago•0 comments

Android App Builder

https://sketchware.pro/
1•rammy1234•2m ago•0 comments

UK chip startup Fractile to expand UK operations with £100M investment

https://www.datacenterdynamics.com/en/news/uk-chip-startup-fractile-to-expand-uk-operations-with-...
1•rowanajmarshall•2m ago•0 comments

Skene Cookbook – 700 open source production-ready AI skills

https://github.com/SkeneTechnologies/skene-cookbook
1•teemuki•3m ago•1 comments

Show HN: ZeroSum – I built a zero-based budgeting app

https://zerosum.so/
1•fidalgodev•4m ago•0 comments

Show HN: Kybera – Agentic Smart Wallet with AI Osint and Reputation Tracking

https://kybera.xyz
1•xipz•5m ago•0 comments

Show HN: I built a portfolio builder for mobile developers

https://mobilepage.app/
1•adrienadv•6m ago•0 comments

Europe's $24T Breakup with Visa and Mastercard Has Begun

https://europeanbusinessmagazine.com/business/europes-24-trillion-breakup-with-visa-and-mastercar...
2•NewCzech•9m ago•0 comments

South Korean exchange races to recover $40B of Bitcoin sent by mistake

https://www.theguardian.com/world/2026/feb/10/bithumb-korean-crypto-exchange-sent-bitcoin-mistake
1•KolmogorovComp•10m ago•0 comments

Show HN: Snapfridge–vision-based grocery assistant built with Lovable and Gemini

https://snapfridge.xyz/
1•lmangiag•12m ago•0 comments

RLHF from Scratch

https://github.com/ashworks1706/rlhf-from-scratch
1•onurkanbkrc•12m ago•0 comments

Ask HN: What do you want people to build?

1•billsunshine•12m ago•0 comments

Show HN: Run AWS CDK apps locally - speeding up agentic coding

https://local-web-services.github.io/www/
1•eamonnfaherty•12m ago•0 comments

Alphabet lines up 100-year sterling bond sale

https://www.ft.com/content/3260bc45-e09e-45a7-ae30-e55effbaf29b
1•cik•12m ago•0 comments

The hell is going on with the epstien files

1•drakeswalla•13m ago•0 comments

Alphabet Plans Tech's First 100-Year Bond Since Dot-Com Era

https://finance.yahoo.com/news/alphabet-plans-tech-first-100-163611765.html
1•m-hodges•15m ago•0 comments

The Feynman Lectures on Physics (online edition)

https://www.feynmanlectures.caltech.edu/
1•rramadass•15m ago•0 comments

Show HN: A Triangular Clock

https://show.franzai.com/a/shoe-loud-clown
1•franze•18m ago•0 comments

Lets Encrypt DNS-Persist-01; Domain Control Validation

https://scotthelme.co.uk/dns-persist-01-handling-domain-control-validation-in-a-short-lived-certi...
1•moebrowne•19m ago•0 comments

Show HN: Deterministic linguistic enrichment pipeline for Node.js

https://www.npmjs.com/package/linguistic-enricher
1•svenschaefer•20m ago•0 comments

"Code itself will go away in favor of just making the binary directly."

https://twitter.com/elonmusk/status/2021128401831199215
1•throwaway2027•20m ago•0 comments

A fun Python puzzle with circular imports

https://utcc.utoronto.ca/~cks/space/blog/python/PythonCircularImportPuzzle
1•todsacerdoti•21m ago•0 comments

Show HN: Local Wikipedia Title Index

https://www.npmjs.com/package/wikipedia-title-index
1•svenschaefer•23m ago•0 comments

What I want from AI – two specific use cases for a Home Assistant

1•wewewedxfgdf•25m ago•0 comments

Feasibility of advanced COTS RF transceivers for RF payload processing

https://indico.esa.int/event/552/contributions/11078/
1•teleforce•25m ago•0 comments

Deepfake fraud taking place on an industrial scale, study finds

https://www.theguardian.com/technology/2026/feb/06/deepfake-taking-place-on-an-industrial-scale-s...
1•speckx•27m ago•0 comments

Stb programming stream #0 [video]

https://www.youtube.com/watch?v=B5Jebz3kKu8
1•marvinborner•29m ago•1 comments

Clean-room implementation of Half-Life 2 on the Quake 1 engine

https://code.idtech.space/fn/hl2
2•klaussilveira•29m ago•0 comments

Valve's job rejection letter to a high school teen is a class act

https://www.polygon.com/valve-job-rejection-letter-high-school-steam-career/
3•speckx•32m ago•0 comments