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•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: Thuki – local Al overlay for macOS (double-tap Control, no API key)

https://www.thuki.app
1•logan_ng•2m ago•0 comments

Don't Outsource the Learning

https://twitter.com/addyosmani/status/2056078124346228860
1•pretext•2m ago•0 comments

Chrome iOS Broken on HN etc.

1•alphaomegacode•4m ago•0 comments

Open-Source, Plugin-Driven Geospatial Intelligence Engine

https://github.com/silvertakana/worldwideview
1•huragok•4m ago•0 comments

The two oldest printing presses

https://museumplantinmoretus.be/en/worlds-two-oldest-printing-presses
1•janpot•4m ago•0 comments

Michael Jackson returns to Billboard Hot 100

https://liveclip.substack.com/p/michael-jackson-returns-to-top-20-billboard
1•firasd•5m ago•0 comments

Show HN: Maravel-Framework v20.0-RC – Extends Benchmark Lead over Laravel/Lumen

https://github.com/macropay-solutions/maravelith/releases/tag/20.0.0-RC7
1•marius-ciclistu•6m ago•0 comments

New Design For The FreeBSD Website

https://www.freebsd.org/
1•signa11•10m ago•0 comments

The Gentle Singularity; the Fast Takeoff

https://www.prinzai.com/p/the-gentle-singularity-the-fast-takeoff
1•pretext•10m ago•0 comments

MouseClaw – a pixel-art desktop AI pet for macOS (hold to speak)

https://edwin-hao-ai.github.io/MouseClaw/
2•edwinhao•15m ago•0 comments

Can we cite Wikipedia? What if it was more reliable than its detractors? (2025)

https://arxiv.org/abs/2509.02462
1•Glitch752•16m ago•0 comments

Zdroid: Zed Editor Ported to Android

https://github.com/Dylanmurzello/zed-android-port
2•goodburb•21m ago•0 comments

3months ago, I predicted OpenClaw wouldn't uninstall cleanly and prepared for it

https://github.com/oswarld/openshears
1•haebom•23m ago•2 comments

Semantic IDs for finding vulnerable code at scale

https://shrikar.com/writing/semantic-ids-for-vulnerable-code
1•shrikar•25m ago•0 comments

Étienne Ghys: The Shape of Letters: From Leonardo da Vinci to Donald Knuth

https://www.youtube.com/watch?v=1OIxzewWilc
4•tzury•27m ago•0 comments

Ask HN: Why we use Git wrong?

1•modinfo•29m ago•0 comments

The Aussie gov just screwed startup founders. my musings

https://ghuntley.com/livid/
1•ghuntley•32m ago•0 comments

Blockchain for beginners: a brief explainer with demo

https://www.seangoedecke.com/blockchain-for-beginners/
1•argee•33m ago•1 comments

Is the Weight-Loss Drug Revolution Causing a Frailty Epidemic?

https://www.wsj.com/health/pharma/glp-1-weight-muscle-loss-frailty-ca277a24
1•0in•34m ago•0 comments

Freelang – a Libc-free, direct sys/kernel call language with weird concurrency

https://freelang.dev
9•keepamovin•34m ago•2 comments

MemEye: A Visual-Centric Evaluation Framework for Multimodal Agent Memory

https://huggingface.co/papers/2605.15128
1•maxloh•36m ago•0 comments

Review: Sylve on FreeBSD, one big security hole

https://distrowatch.com/weekly-mobile.php?issue=20260518#sylve
1•jandeboevrie•37m ago•0 comments

YouTube, Snap and TikTok settle school district's social media addiction claims

https://www.reuters.com/world/us/youtube-snap-settle-school-districts-social-media-addiction-clai...
1•1vuio0pswjnm7•38m ago•0 comments

The CEO Agenda 2025

https://www.oliverwymanforum.com/ceo-agenda/how-ceos-navigate-geopolitics-trade-technology-people...
1•1vuio0pswjnm7•40m ago•0 comments

Ex-Google CEO Eric Schmidt Fails to Read Room on AI, Gets Booed into Oblivion

https://gizmodo.com/ex-google-ceo-eric-schmidt-fails-to-read-room-on-ai-gets-booed-to-oblivion-20...
2•imichael•40m ago•1 comments

Usual implementation of attention transformers (SDPA) is kind of bad, actually

https://gist.github.com/celoyd/6bf10122c3f5f7e64b0c684704e4ffb2
1•teleforce•42m ago•0 comments

Apple Is Making Hit Products and High Profits from Imperfect Chips

https://www.wsj.com/tech/apple-is-making-hit-products-and-high-profits-from-imperfect-chips-d32c21d8
1•ryan_j_naughton•43m ago•0 comments

Meta Defeated as EU Backs Publishers in Content Pay Dispute

https://www.law.com/international-edition/2026/05/17/meta-defeated-as-eu-backs-publishers-in-cont...
1•1vuio0pswjnm7•43m ago•0 comments

Neovim sweetspot between trad coding and AI coding

https://github.com/cachebag/jumpy
1•cachebag•50m ago•0 comments

Saturn V Haynes Manual

https://www.amazon.com/Saturn-1967-1973-Apollo-Skylab-Workshop/dp/0857338285
2•bilegeek•51m ago•0 comments