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

Comments

zljdanceholic•8mo 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: I built an Instagram-style productivity app with gamification

https://apps.apple.com/us/app/lockin-social-productivity/id6742454713
1•mandynoee•2m ago•1 comments

The Concise TypeScript Book

https://github.com/gibbok/typescript-book
1•javatuts•7m ago•1 comments

Worktrunk – A CLI tool to manage multiple worktrees in Git repositories

https://github.com/max-sixty/worktrunk
1•javatuts•7m ago•0 comments

Jupyter Agents: training LLMs to reason with notebooks

https://huggingface.co/blog/jupyter-agent-2
1•walterbell•8m ago•0 comments

What's the end game for Ghost newsletter sign-up spam?

https://www.autodidacts.io/ghost-newsletter-sign-up-spam/
1•Curiositry•9m ago•0 comments

A multimodal sleep foundation model for disease prediction

https://www.nature.com/articles/s41591-025-04133-4
1•gnabgib•9m ago•0 comments

Quake 1 Single-Player Map Design Theories (2001)

https://www.quaddicted.com/webarchive//teamshambler.planetquake.gamespy.com/theories1.html
1•Lammy•15m ago•0 comments

Panoply of the Weird

https://www.nybooks.com/articles/2026/01/15/panoply-of-the-weird-fitz-james-obrien/
1•mitchbob•18m ago•1 comments

Sovereign Tech Fund: Strategic investments in the digital infrastructure

https://www.sovereign.tech/programs/fund
1•teleforce•18m ago•0 comments

Show HN: WinBorg, a beautiful alternative to Vorta for BorgBackup

https://github.com/robotnikz/WinBorg
1•robotnikz•24m ago•0 comments

Reversible Computation as a software construction paradigm

1•Nivdc•26m ago•1 comments

Writing First, Tooling Second

https://susam.net/writing-first-tooling-second.html
2•Brajeshwar•29m ago•0 comments

How can I grep for lines containing foo AND bar, foo OR bar?

https://mywiki.wooledge.org/BashFAQ/079
1•kamaraju•32m ago•0 comments

Show HN: Cortex – Android Notification manager with on-device LLM

https://play.google.com/store/apps/details?id=xyz.moyelauncher.cortex&hl=en_US
1•0xManjeet•38m ago•0 comments

Apple Wallet Storage Bug Is Filling Up iPhone Space for Some Users

https://www.macobserver.com/news/apple-wallet-storage-bug-is-filling-up-iphone-space-for-some-users/
3•ksec•39m ago•2 comments

Show HN: DreamForge – AI dream journal that turns dreams into art

https://dream-forge.me
1•KenzoArai•40m ago•0 comments

Court rejects NVIDIAs attempt to seal email chain with Annas Archive [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.cand.426191/gov.uscourts.cand.426191.222.0.pdf
3•1vuio0pswjnm7•42m ago•1 comments

Show HN: MCP Server for AI Agents to Publish on WriteFreely

https://github.com/laxmena/writefreely-mcp-server
1•laxmena•44m ago•0 comments

My Beef with the iOS 26 Tab Bar

https://ryanashcraft.com/ios-26-tab-bar-beef/
3•ksec•44m ago•0 comments

Tom Verlaine was a mystery. His archives reveal more of his story

https://www.nytimes.com/2026/01/09/arts/music/tom-verlaine-television-archives.html
1•tintinnabula•47m ago•0 comments

I build products to get "unplugged" from the internet

https://getunplugged.io/I-build-products-to-get-unplugged
2•keplerjst•47m ago•0 comments

New year's resolutions are arbitrary, and that's okay

https://bobbiechen.com/blog/2026/1/10/new-years-resolutions-are-arbitrary-and-thats-okay
1•bobbiechen•48m ago•0 comments

Show HN: AI Character Generator for Fashion Model Shots and Consistent Avatars

https://characteraigc.com
1•jokera•50m ago•0 comments

How to Disable Gemini on Android, Gmail, Chrome, Photos, & Google Apps

https://tuta.com/blog/how-to-disable-gemini-on-android
1•dotcoma•51m ago•0 comments

Show HN: Kings vs. Knight

https://minichessgames.com/#/play/kings-vs-knight
1•patrickdavey•57m ago•0 comments

Show HN: Shelfarr is an open source audiobook renamer tool

https://github.com/VacantlyCrushing/Shelfarr
1•vcrushing•1h ago•0 comments

'The answer cannot be nothing': The battle over Canada's mystery brain disease

https://www.bbc.com/news/articles/c623r47d67lo
35•lewww•1h ago•7 comments

Will Rogers Phenomenon

https://en.wikipedia.org/wiki/Will_Rogers_phenomenon
3•samuel246•1h ago•0 comments

Show HN: Use Terraform to manage to your TrueNAS apps

https://github.com/deevus/terraform-provider-truenas
1•deevus•1h ago•1 comments

Ukraine's Quest to Build a Missile to Strike Deep in Russian Territory

https://www.wsj.com/world/inside-ukraines-quest-to-build-a-missile-to-strike-deep-in-russian-terr...
2•JumpCrisscross•1h ago•0 comments