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

Comments

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

How Russia's Largest Private University Linked to $25M Essay Mill

https://krebsonsecurity.com/2025/12/drones-to-diplomas-how-russias-largest-private-university-is-...
1•Bender•1m ago•0 comments

Tempo's Testnet Is Live

https://tempo.xyz/blog/testnet
1•simonebrunozzi•1m ago•0 comments

The Married Scientists Torn Apart by a Covid Bioweapon Theory

https://www.nytimes.com/2025/12/07/us/china-virologist-li-meng-yan-coronavirus.html
1•bookofjoe•2m ago•1 comments

Will the digital control grid inevitably fail, or is it here?

https://libresolutionsnetwork.substack.com/p/teachable-digital-prison
1•Noaidi•2m ago•1 comments

200k Tokens Is Plenty

https://error.workos.com/sso/redirect-uri-invalid
1•misternugget•3m ago•0 comments

Why a College Fighting for Survival Is Slashing Econ and Physics Majors

https://www.bloomberg.com/news/features/2025-12-09/albright-college-budget-cuts-are-eliminating-m...
2•littlexsparkee•3m ago•1 comments

Two Githubs, One Laptop

https://blog.djnavarro.net/posts/2025-12-08_two-github-one-laptop/
1•speckx•4m ago•0 comments

Interview with Calvin Rose, the Janet Creator

https://alexalejandre.com/programming/interview-with-bakpakin/
1•smartmic•4m ago•0 comments

Meta Avocado

https://www.cnbc.com/2025/12/09/meta-avocado-ai-strategy-issues.html
2•noslenwerdna•4m ago•0 comments

Barnum's Law of CEOs

https://www.antipope.org/charlie/blog-static/2025/12/barnums-law-of-ceos.html
1•LaSombra•5m ago•0 comments

Launch HN: Mentat (YC S16) – Controlling LLMs with Runtime Intervention

https://playground.ctgt.ai
2•cgorlla•5m ago•0 comments

Nobel Winner Machado's Briefing Delayed as Oslo Arrival Unclear

https://www.bloomberg.com/news/articles/2025-12-09/nobel-winner-machado-s-briefing-delayed-as-osl...
1•wslh•5m ago•1 comments

Polyglot AI Agents: WebAssembly Meets the JVM

https://blog.mozilla.ai/polyglot-ai-agents-webassembly-meets-the-java-virtual-machine-jvm/
1•aittalam•6m ago•0 comments

Iain Douglas-Hamilton, Elephant Expert and Protector, Dies at 83

https://www.nytimes.com/2025/12/09/world/africa/iain-douglas-hamilton-dead.html
1•quapster•7m ago•0 comments

PyCharm 2025.3 – Unified IDE, Jupyter notebooks in remote dev, uv as default

https://www.jetbrains.com/pycharm/whatsnew/
2•indigodaddy•7m ago•0 comments

I think jj-vcs is worth your time

https://schpet.com/note/why-i-think-jj-vcs-is-worth-your-time
1•steveklabnik•7m ago•0 comments

Show HN: MPL – A Python DSL that transpiles logic to Pine Script

https://github.com/hakanovski/MPL
1•hknyrgnc•7m ago•1 comments

The AI Price Hike

https://molodtsov.me/2025/12/ai-price-hike/
1•speckx•8m ago•0 comments

The open hardware water cooling controller project

https://github.com/kennycoder/waku-ctl
1•kennycoder•10m ago•1 comments

Datadog built a low-latency, multi-tenant data replication platform

https://www.datadoghq.com/blog/engineering/cdc-replication-search/
2•mooreds•10m ago•0 comments

Odies – AI Companions living on your screen

https://www.youtube.com/watch?v=uwQjUHvm0JM
1•omoistudio•11m ago•0 comments

Static Analysis of APL Code [video]

https://www.youtube.com/watch?v=d4pRvKMcp_g
1•pillowshift•11m ago•0 comments

"I've failed 17 times with the exact same error": An agent debugging tale

https://blog.tonkotsu.ai/p/ive-failed-17-consecutive-times-with
2•derekcheng08•12m ago•1 comments

A smart-glasses HUD app for guiding IKEA assembly [video]

https://www.youtube.com/watch?v=1bgYNNsjEAI
1•tash_2s•13m ago•1 comments

Dingo – a meta-language for Go

https://dingolang.com/
1•ezekg•13m ago•0 comments

Show HN: Banking-Grade Validators for IBAN, Swift, OFAC and Blockchain Networks

https://zkorigoplus.com/
1•ADCXLAB•13m ago•1 comments

Backpropagation: Find Partial Derivatives [video]

https://www.youtube.com/watch?v=lZrIPRnoGQQ
2•dwa3592•14m ago•0 comments

Discover the World's Top Vibe Coders

https://www.vibolio.com/
1•helloviby•14m ago•0 comments

Due to relentless AI scrapers notabug.org is currently down

https://notabug.org
3•ankitpati•16m ago•1 comments

Berkeley professor's camera caught student allegedly sabotaging another student

https://www.mercurynews.com/2025/12/08/uc-berkeley-professor-installed-secret-camera-allegedly-ca...
4•justin66•16m ago•0 comments