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

Comments

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

Wealth Dies

https://surplusenergyeconomics.wordpress.com/2025/11/02/314-how-wealth-dies/
1•martinlaz•1m ago•0 comments

Neural CA for Self-Assembly – Decentralized, Self-Repairing (0.003 MSE)

https://github.com/windstorm12/neural-CA-Automata
1•windstorm12•2m ago•1 comments

Public GitLab repositories exposed more than 17,000 secrets

https://www.bleepingcomputer.com/news/security/public-gitlab-repositories-exposed-more-than-17-00...
1•dangtony98•4m ago•0 comments

Study Reveals How Tattoo Ink Affects the Immune System

https://www.swissinfo.ch/eng/various/tattoos-influence-the-defence-system-of-mice/90522006
4•croh•5m ago•0 comments

DuckDB 1.4.2 LTS

https://duckdb.org/2025/11/12/announcing-duckdb-142
2•kermatt•6m ago•0 comments

U.S. may eliminate income tax by end of current admin

https://www.axios.com/2025/11/28/trump-tariffs-income-taxes
3•hereme888•7m ago•1 comments

France Creates Voluntary Military Service as Europe Faces Russian Threat

https://www.nytimes.com/2025/11/27/world/europe/france-military-service.html
4•bookofjoe•11m ago•1 comments

Show HN: Cooltechblogs POC: local-first blog post aggregator

https://www.cooltechblogs.com/
1•phillvdm•14m ago•0 comments

The Battle over Africa's Great Untapped Resource: IP Addresses

https://www.wsj.com/business/telecom/africa-ip-addresses-china-3e543b9d
1•ajuhasz•14m ago•0 comments

Imgur Geo-Blocked the UK, So I Geo-Unblocked My Network

https://blog.tymscar.com/posts/imgurukproxy/
12•tymscar•15m ago•1 comments

Staff at Irish Meta client firm told 400 jobs at risk

https://www.thejournal.ie/meta-job-losses-6887604-Nov2025/
6•lawlessone•16m ago•0 comments

The Hidden Language of Our Body's Rhythms

https://thereader.mitpress.mit.edu/the-hidden-language-of-our-bodys-rhythms/
3•the-mitr•24m ago•0 comments

Quanta Convert and Quantize AI Models

https://github.com/Mainframework/Quanta
1•trilogic•28m ago•1 comments

Poll HN: What operating system do you primarily develop on?

45•dennis-tra•28m ago•59 comments

28M Hacker News comments as vector embedding search dataset

https://clickhouse.com/docs/getting-started/example-datasets/hackernews-vector-search-dataset
27•walterbell•29m ago•2 comments

Mystery of the Quincunx's Missing Quincunx

https://blog.plover.com/history/quincunx.html
2•masfuerte•30m ago•0 comments

Understand your funnel with Micro Conversions

https://cleancommit.io/blog/micro-conversions/
1•mrkaluzny•32m ago•0 comments

Show HN: Encryptalotta – Free client-side PGP encryption tool for files

https://encryptalotta.com/
1•hireclay•33m ago•0 comments

Intel Secures Apple as Foundry Customer for Future M-Series Chips

https://winbuzzer.com/2025/11/28/report-intel-secures-apple-as-foundry-customer-for-future-m-seri...
5•walterbell•36m ago•1 comments

"Vibe coder" on X claims SaaS makes $60k while app is trivially insecure

https://twitter.com/jp_kiser/status/1994450874207236206
6•johnpaulkiser•36m ago•3 comments

Your Loneliness Was a Design Decision Made by Your Enemy

https://margaretkilljoy.substack.com/p/you-loneliness-was-a-design-decision
6•sandboxdev•37m ago•0 comments

Rock Paper Scissors Solitaire

https://klezlab.it/rock-paper-scissors-solitaire.html
4•klez•37m ago•1 comments

Ask HN: Which cloud provider do you like best and why?

7•trio8453•37m ago•3 comments

Tips for effective prototyping with Rails 8 and Claude Code

https://www.wyeworks.com/blog/2025/11/26/tips-for-effective-prototyping-rails-claude-code/
4•wyeworks•37m ago•0 comments

Show HN: Made a thing to use AI with intervals.icu

https://intervals.pro
3•maxrev17•38m ago•0 comments

This tool might beat NotebookLM at its own game

https://www.xda-developers.com/tool-might-beat-notebooklm/
1•vidyesh•42m ago•0 comments

Molly: An Improved Signal App

https://molly.im/
3•dtj1123•42m ago•0 comments

Be Useful in Emergencies

https://kg.dev/thoughts/emergencies
5•kashnote•43m ago•0 comments

Tiny lead fragments in hunted meat exceed safe levels, study reveals

https://phys.org/news/2025-11-tiny-fragments-meat-exceed-safe.html
4•geox•44m ago•0 comments

Generate YourRapper Name

https://generaterapname.xyz
2•SinanW•44m ago•0 comments