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

Comments

zljdanceholic•11mo 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: Specialty Coffee Discovery Platform

https://beangenie.coffee
1•epicwynn•1m ago•0 comments

Dump Weights from TensorRT

https://github.com/refortif-ai/trt-weight-extractor
1•rithikjainNd01•4m ago•1 comments

Agentic Dev: AI-curated daily signal for AI devs (no hype)

https://agenticdev.blog/
1•beeswaxpat•4m ago•0 comments

Dear Boys, Looksmaxxing Is a Fool's Errand

https://www.wsj.com/lifestyle/relationships/looksmaxxing-looksminning-marriage-ceb931e3
1•impish9208•5m ago•2 comments

Perceived characteristics of illusory faces in symmetrical visual noise

https://royalsocietypublishing.org/rsos/article/13/3/250570/481097/Facing-your-expectations-perce...
1•bookofjoe•5m ago•0 comments

Show HN: Modo – Open-source AI IDE that plans before it codes (spec-driven dev)

https://github.com/mohshomis/modo
1•mohshomis•5m ago•0 comments

The Evolution of Program State

https://queue.acm.org/detail.cfm?id=3799737
1•swq115•6m ago•0 comments

Do Large Language Models (Really) Need Statistical Foundations? [pdf]

https://www.weijie-su.com/files/LLM_position.pdf
1•fzliu•6m ago•0 comments

Broadly stable atmospheric CO2 and CH4 levels over the past 3M years

https://www.nature.com/articles/s41586-025-10032-y
1•walterbell•10m ago•0 comments

Revisited: The Cylob Cryptogram

https://scienceblogs.de/klausis-krypto-kolumne/2020/08/18/revisited-the-cylob-cryptogram/
1•pavel_lishin•13m ago•0 comments

The Endless Goodbye

https://www.theatlantic.com/family/2026/04/death-dementia/686552/
1•petethomas•17m ago•0 comments

Frona – self-hosted personal AI assistant

https://github.com/fronalabs/frona
1•syncerx•17m ago•0 comments

Zeaota – AI Native Product Intelligence Tool

https://zeaota.ai
1•Shriansh_Pandey•18m ago•0 comments

'Cognitive Surrender' Is a New and Useful Term for How AI Melts Brains

https://gizmodo.com/cognitive-surrender-is-a-new-and-useful-term-for-how-ai-melts-brains-2000742595
3•mikhael•19m ago•0 comments

Data Security Risks of Using Foreign-Developed Mobile Apps in the US

https://www.ic3.gov/PSA/2026/PSA260331
3•gnabgib•20m ago•0 comments

How should you change your life decisions if we are being watched by aliens?

https://marginalrevolution.com/marginalrevolution/2026/04/how-should-you-change-your-life-decisio...
3•paulpauper•23m ago•0 comments

Show HN: Vim Navigator – MCP server that lets AI agents drive your Neovim

https://github.com/kcaldas/vim-navigator
1•kcaldas•23m ago•0 comments

Does AI moderate political extremes? I'm not convinced

https://philosophybear.substack.com/p/does-ai-moderate-political-extremes
2•paulpauper•23m ago•0 comments

Latest Kindle updates cause gigabytes of data upload during sleep, battery drain

https://old.reddit.com/r/kindle/comments/1sbmiee/kindle_uploading_gigabytes_while_it_sleeps/
1•seam_carver•24m ago•0 comments

Show HN: Mdarena – Benchmark your Claude.md against your own PRs

https://github.com/HudsonGri/mdarena
2•hudsongr•29m ago•1 comments

hid-omg-detect: Linux Driver in Development to Detect Malicious HID Devices

https://www.phoronix.com/news/hid-omg-detect-Malicious-HID
2•josephcsible•29m ago•0 comments

OpenAI's fall from grace as investors race to Anthropic

https://www.latimes.com/business/story/2026-04-01/openais-shocking-fall-from-grace-as-investors-r...
2•1vuio0pswjnm7•32m ago•0 comments

OppoScan – Agentic Market Opportunity Scanner for Startups

https://opposcan.com/
1•supramono•33m ago•1 comments

FBI warns iPhone, Android users: apps, personal data collected, stored overseas

https://nypost.com/2026/04/04/world-news/fbi-warns-some-foreign-apps-could-collect-americans-data...
2•1vuio0pswjnm7•33m ago•0 comments

Reasons Mastodon won't survive (2017)

https://mashable.com/article/mastodon-wont-survive
5•doener•38m ago•3 comments

Tesla's stock suffers steepest drop of 2026 on disappointing deliveries report

https://www.cnbc.com/2026/04/02/tesla-tsla-q1-2026-vehicle-delivery-production.html
5•1vuio0pswjnm7•40m ago•0 comments

Eric Voegelin – From Enlightenment to Revolution

https://en.wikiquote.org/wiki/Eric_Voegelin
1•programmexxx•46m ago•0 comments

AI videos fuel rhetoric as Orbán bids for four more years in Hungary

https://www.bbc.com/news/articles/c5yj97yd6v5o
3•breve•47m ago•0 comments

Repowise: Codebase intelligence for AI-assisted engineering teams

https://github.com/repowise-dev/repowise
2•i0exception•49m ago•0 comments

Thailand, pollution, AI, my books, and ADHD

https://indignified.substack.com/p/hasan-i-sabah-prologue
1•ZguideZ•1h ago•0 comments