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

Comments

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

Vouch

https://github.com/mitchellh/vouch
1•dboon•36s ago•0 comments

The next evolution of application security: AI-accelerated DevSecOps

https://www.scworld.com/resource/the-next-evolution-of-application-security-ai-accelerated-devsecops
1•Bender•1m ago•0 comments

Good People Make Others Uncomfortable

https://thecomplexityedge.substack.com/p/the-myth-that-good-people-dont-make
1•srid•2m ago•0 comments

A Better TypeScript-ZScript v0.4.1

https://github.com/zscriptlang/zscript
1•ziyaadsaqlain•3m ago•0 comments

Shaping 0-1 with Claude Code

https://twitter.com/rjs/status/2020184079350563263
1•tosh•3m ago•0 comments

Michael Pollan Says Humanity Is About to Undergo a Revolutionary Change

https://www.nytimes.com/2026/02/07/magazine/michael-pollan-interview.html
1•whack•4m ago•0 comments

Credentials for Linux: Bringing Passkeys to the Linux Desktop

https://alfioemanuele.io/talks/2026/02/01/fosdem-2026-credentials-for-linux.html
1•alfie42•5m ago•0 comments

Show HN: Computerscienceresources.com – A Crowdsourced Learning Platform

https://github.com/AllanKoder/ComputerScienceResources.com
1•CatBread•5m ago•0 comments

Ask HN: How do you handle Canadian income tax brackets in software?

1•jbsgermain•7m ago•0 comments

Tell HN: Claude Code freezes on long inputs

1•logicallee•8m ago•0 comments

Fast Properties in V8 (2017)

https://v8.dev/blog/fast-properties
1•aragonite•8m ago•0 comments

Warming temperatures are shrinking snowpack in key Canadian watersheds

https://www.cbc.ca/news/science/winter-snow-climate-water-9.7078119
1•Teever•8m ago•0 comments

Remote Laravel Development – Mac and Tailscale and Laravel Herd

https://swapnil.dev/remote-laravel-development-with-tailscale-herd-and-mac-studio-the-complete-guide
1•iamswap•8m ago•0 comments

Show HN: Generated implementation of StrongDM Attractor from Markdown specs

https://github.com/brynary/attractor
1•brynary•10m ago•0 comments

Bitcoin is still about $69,000 too high

https://www.ft.com/content/2b030926-2012-4446-b22d-e549e10e7086
3•bookofjoe•10m ago•1 comments

Show HN: CarbonLint – Real-time carbon footprint tracker for code

1•nishalk•13m ago•2 comments

Immigrants Reduced US Deficits by $14.5T Since 1994

https://www.cato.org/blog/cato-study-immigrants-reduced-deficits-145-trillion-1994
3•throw0101c•13m ago•0 comments

I put a real-time 3D shader on the Game Boy Color

https://blog.otterstack.com/posts/202512-gbshader/
2•adunk•17m ago•0 comments

Waymo admits that its autopilot is often just guys from the Philippines

https://www.techspot.com/news/111233-waymo-admits-autopilot-often-guys-philippines.html
2•u1hcw9nx•21m ago•1 comments

Looking for AI Engineering Intern at at Berlin Investment Fund

https://bitcap.jobs.personio.com/job/2497787?language=en
1•dipshady•23m ago•1 comments

Show HN: Bhagavan – a calm, approachable app for exploring Hinduism

https://www.bhagavan.io
3•AkhilSonthi•24m ago•0 comments

Technical Articles for Non-Technical Users Who Moved to Technical in the AI Era

https://app.writtte.com/read/KXd5FrR
2•lasgawe•25m ago•0 comments

Binutils 2.46 Released – AMD, ARM, RISC-V, SFrame v3

https://sourceware.org/pipermail/binutils/2026-February/148149.html
4•edelsohn•27m ago•0 comments

Meow-1: Biopharmaceutical Company Is Testing Weight Loss Drug for Cats

https://www.greenmatters.com/pets/weight-loss-drugs-for-cats
2•randycupertino•27m ago•1 comments

Show HN: I am building "Jira" for AI coding agents

https://github.com/Giancarlos/GuardRails
2•giancarlostoro•29m ago•0 comments

The string " +#+#+#+#+#+ " breaks Codex 5.3

3•kachapopopow•29m ago•0 comments

Mathematicians Are Putting A.I. To the Test

https://www.nytimes.com/2026/02/07/science/mathematics-ai-proof-hairer.html
4•o4c•30m ago•1 comments

What the Desert Teaches

https://www.robpanico.com/articles/display/?entry_short=what-the-desert-teaches
2•retrocog•32m ago•0 comments

Google's 52x AI Growth

https://tomtunguz.com/google-earnings-q4-2025/
4•gmays•32m ago•1 comments

Show HN: MCP App Template designed for coding agents

https://github.com/sebderhy/mcp-app-template
4•sebderhy•33m ago•3 comments