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!

Ilya on Deep Learning in 2015

https://www.interconnects.ai/p/ilya-on-deep-learning-in-2015
1•nsoonhui•1m ago•0 comments

A Tour of Common Concurrent Hash Table Designs

https://bluuewhale.github.io/posts/concurrent-hashmap-designs/
1•signa11•3m ago•0 comments

Show HN: GoldCalc – Real-time gold value calculator

https://goldcalctool.com/
1•wangxin199•10m ago•0 comments

Show HN: SPF – Self-hosting from home(port forwarder with UPnP/DDNS)

https://github.com/DsChauhan08/spf
1•DsChauhan08•14m ago•0 comments

Job Description vs. Resume Match Score Tool

https://cvmatchscore.com
1•makowskid•18m ago•1 comments

39C3 – To sign or not to sign: Practical vulnerabilities in GPG and friends [video]

https://www.youtube.com/watch?v=U0ZYOTHrB7I
1•derrida•18m ago•0 comments

They graduated from Stanford. Due to AI, they can't find a job

https://www.latimes.com/business/story/2025-12-19/they-graduated-from-stanford-due-to-ai-they-can...
2•achow•20m ago•2 comments

Process goals vs. outcome goals – research worth sharing before 2026

https://www.reddit.com/r/Entrepreneur/s/sl3sKHGO17
1•Bayram•22m ago•0 comments

Ubuntu 26.04 LTS – The Roadmap

https://discourse.ubuntu.com/t/ubuntu-26-04-lts-the-roadmap/72740
2•ravenical•23m ago•0 comments

Ask HN: Might Microsoft lose Windows to the Linux desktop?

1•andrewstuart•23m ago•0 comments

The "Breton affair" and its questionable timing

https://radiobruxelleslibera.com/2025/12/24/the-breton-affair-and-its-questionable-timing/
1•_____k•24m ago•0 comments

Last Year on My Mac: Look Back in Disbelief

https://eclecticlight.co/2025/12/28/last-year-on-my-mac-look-back-in-disbelief/
2•vitosartori•24m ago•0 comments

Brigitte Bardot, French screen legend, dies aged 91

https://www.theguardian.com/film/2025/dec/28/brigitte-bardot-french-screen-legend-and-animal-righ...
2•gfortaine•26m ago•0 comments

Hungry Fat Cells Could Someday Starve Cancer to Death

https://www.ucsf.edu/news/2025/01/429411/how-hungry-fat-cells-could-someday-starve-cancer-death
2•mrtnmrtn•32m ago•0 comments

Show HN: TitleTuner – Generate YouTube titles, scripts and tags from one idea

https://title-tuner-56e49f85.base44.app/
1•DivyaraneshN•32m ago•0 comments

Tim Cook Posts AI Slop in Christmas Message on Twitter

https://daringfireball.net/linked/2025/12/27/slopibus
5•latexr•38m ago•0 comments

Understanding Database Transactions and Isolation Levels

https://shbhmrzd.github.io/databases/transactions/isolation-levels/2025/12/26/understanding-datab...
1•birdculture•45m ago•0 comments

Build Software. Build Users

https://dima.day/blog/build-software-build-users/
1•dinerville•46m ago•0 comments

Fallibility, Reflexivity, and the Human Uncertainty Principle (2014)

https://www.georgesoros.com/2014/01/13/fallibility-reflexivity-and-the-human-uncertainty-principl...
1•tihsllub•47m ago•0 comments

Mkbhd: I shrunk down into an M5 Chip

https://www.youtube.com/watch?v=Jh9pFp1oM7E
2•fork-bomber•47m ago•1 comments

A new way to extract detailed transcripts from Claude Code

https://simonw.substack.com/p/a-new-way-to-extract-detailed-transcripts
1•abdelhousni•50m ago•0 comments

How to boost your calorie-crunching brown fat in the cold winter months

https://www.bbc.com/future/article/20251128-how-to-boost-your-calorie-crunching-brown-fat-in-the-...
1•XzetaU8•52m ago•1 comments

Rust Views Tradeoffs

https://www.infoq.com/presentations/rust-tradeoffs/
1•fanf2•54m ago•0 comments

39C3: Fraudsters Defrauded the Deutschlandticket of Millions

https://www.heise.de/en/news/39C3-How-fraudsters-defrauded-the-Deutschlandticket-of-millions-1112...
2•ogig•55m ago•0 comments

JETSTREAM: A Jeffrey Epstein exploration tool

https://jetstream.naturemag.org/
1•csmantle•55m ago•1 comments

Show HN: Lucius AI – Forensic analysis of 500-page government tender PDFs

https://www.ailucius.com
1•Lucius-AI•56m ago•1 comments

Show HN: An offline-first semantic search library with no DB or APIs

https://github.com/iaavas/simile-search
2•aavashbaral•57m ago•2 comments

National Raisin Reserve

https://en.wikipedia.org/wiki/National_Raisin_Reserve
3•leontrolski•1h ago•0 comments

Man prepares Kickstarter to bring his AI wife (evolved from Grok) into real body

2•antonyloveseve•1h ago•1 comments

Show HN: Cursor-history CLI for browse/backup Cursor chat history

https://github.com/S2thend/cursor-history
1•s2thend•1h ago•0 comments