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!

He designed C++ to solve your code problems

https://stackoverflow.blog/2026/04/07/he-designed-c-to-solve-your-code-problems/
1•chrisaycock•1m ago•0 comments

Release Please

https://github.com/googleapis/release-please
1•b-man•3m ago•0 comments

Show HN: Omni Voice – AI Voice Cloning and Text-to-Speech Platform

https://omnivoice.app
2•danielmateo773•5m ago•0 comments

Training SOTA vulnerability discovery agents through RL

https://depthfirst.com/post/dfs-mini1-agent
1•growthgod•6m ago•0 comments

Personal Site Infrastructure, Diagrammed

https://www.coryd.dev/posts/2026/personal-site-infrastructure-diagrammed
1•cdrnsf•11m ago•0 comments

Apollo.io Acquires Pocus

https://www.morningstar.com/news/pr-newswire/20260319ne14558/apolloio-acquires-pocus-to-advance-i...
1•jenthoven•18m ago•0 comments

Drive9, a network drive with built-in semantic search

https://github.com/mem9-ai/drive9
1•jinqueeny•19m ago•0 comments

How Alive Can a Video Game Street Be?

https://www.youtube.com/watch?v=5wU4AB7Y2Kw
2•pippy360•20m ago•1 comments

Impact of 100% Adoption of AI Coding Agents by Non-Technical Team

https://www.kapwing.com/blog/how-we-achieved-100-adoption-of-ai-coding-agents/
1•jenthoven•20m ago•0 comments

Russia and China veto UN resolution aimed at reopening the Strait of Hormuz

https://apnews.com/article/un-iran-us-strait-hormuz-bahrain-resolution-640e644b57df5c762ed9c57ef8...
3•WaitWaitWha•20m ago•0 comments

ICE acknowledges it is using powerful spyware

https://text.npr.org/nx-s1-5776799
4•dnemmers•24m ago•0 comments

Law Students: AI Is Changing Things

https://maxglobalnews.com/the-future-of-lawyers-in-the-age-of-ai-%f0%9f%92%bb/
1•videobroker•28m ago•0 comments

Show HN: Kylrix- open source de-googled privacy suite for techies

1•nathfavour•30m ago•1 comments

The way every agent framework handles MCP is a latent security problem

2•An0n_Jon•38m ago•0 comments

Steergen: Single-source steering docs for spec-driven development

https://github.com/aabs/steergen
1•andrew_matthews•43m ago•0 comments

Voltage drops when powering a Raspberry Pi4B from a LM2596T regulator

https://electronics.stackexchange.com/questions/767760/voltage-drops-when-powering-a-raspberry-pi...
1•kristianp•44m ago•0 comments

I wrote maternity experience on my resume

https://story.cv/blog/articles/maternity-leave-on-resume
1•kavyaj•45m ago•1 comments

GitHub Copilot CLI now supports BYOK and local models

https://github.blog/changelog/2026-04-07-copilot-cli-now-supports-byok-and-local-models/
3•lemonish97•45m ago•1 comments

Odd Lots: This Is How to Tell If Writing Was Made by AI

https://www.bloomberg.com/news/audio/2026-04-02/odd-lots-how-to-tell-if-writing-was-made-by-ai-po...
2•KnuthIsGod•46m ago•0 comments

White Noise (encrypted group chat over Nostr) completes security audit

https://leastauthority.com/blog/audit-of-white-noise-whitenoise-rs/
2•iamnothere•48m ago•0 comments

Phishing Campaigns "I Paid Twice" Targeting Booking.com Hotels and Customers

https://blog.sekoia.io/phishing-campaigns-i-paid-twice-targeting-booking-com-hotels-and-customers/
1•quantisan•49m ago•0 comments

JSIR: A High-Level IR for JavaScript

https://discourse.llvm.org/t/rfc-jsir-a-high-level-ir-for-javascript/90456
7•nnx•51m ago•0 comments

Is my writing too wet?

https://samkriss.substack.com/p/is-my-writing-too-wet
1•cainxinth•53m ago•0 comments

Apple is pissing me off. (rant - Account Settings)

3•TechPlasma•55m ago•0 comments

Zayvora

https://ollama.com/daxini2404
1•dharamdaxini•1h ago•0 comments

Downdetector for Claudecode Vibes

https://claudedumb.com/
2•ymaws•1h ago•0 comments

Incremental Compilation with LLVM

https://ziglang.org/devlog/2026/#2026-04-08
3•mlugg•1h ago•0 comments

Goldman CIO Marco Argenti on the Warp-Speed Improvements in AI

https://podcasts.apple.com/us/podcast/goldman-cio-marco-argenti-on-the-warp-speed/id1056200096?i=...
1•KnuthIsGod•1h ago•0 comments

Longer wavelengths in sunlight pass through the human body and have a systemic

https://www.nature.com/articles/s41598-025-09785-3
3•bilsbie•1h ago•0 comments

Show HN: Can an AI model fit on a single pixel?

https://github.com/dvelton/ai-pixel
3•deevelton•1h ago•0 comments