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!

Musk seeks up to $134B from OpenAI, Microsoft in fraud lawsuit

https://www.business-standard.com/world-news/musk-seeks-up-to-134-billion-from-openai-microsoft-i...
1•hagbard_c•4m ago•0 comments

I hotreload Rust and so can you

https://kampffrosch94.github.io/posts/hotreloading_rust/
1•polanas•7m ago•0 comments

Do people still need websites, or just a public page?

1•paravaib•9m ago•0 comments

Pushing the smallest possible change to production

https://ankursethi.com/blog/smallest-possible-change/
1•todsacerdoti•13m ago•0 comments

Log Levels: A Better Strategy with OpenTelemetry

https://www.dash0.com/knowledge/log-levels
1•ayoisaiah•14m ago•0 comments

Vercel Launches Skills – "NPM for AI Agents" with React Best Practices Built-In

https://jpcaparas.medium.com/vercel-launches-skills-npm-for-ai-agents-with-react-best-practices-b...
1•zenoware•21m ago•0 comments

The Instant Pot Failed Because It Was a Good Product (2023)

https://www.theatlantic.com/technology/archive/2023/06/instant-pot-bankrupt-private-equity/674414/
1•rwmj•22m ago•1 comments

The 600-year-old origins of the word 'hello'

https://www.bbc.com/culture/article/20260113-hello-hiya-aloha-what-our-greetings-reveal
7•1659447091•24m ago•1 comments

Ask HN: Favorite YouTube Channels?

2•chistev•30m ago•1 comments

Ask HN: Any tools for managing multi Claude Code instances?

1•tansan•31m ago•0 comments

Why Saunas, Bathhouses, Cold Plunge Pools Are So Popular

https://www.bloomberg.com/news/features/2026-01-16/why-saunas-bathhouses-cold-plunge-pools-are-so...
1•Anon84•33m ago•0 comments

Show HN: Termilingo – a terminal-based spaced repetition flashcard app

https://github.com/ayakovlenko/termilingo
1•ayakovlenko•33m ago•0 comments

Case Study: Hydration Latency in Enterprise E-Commerce (Nike vs. New Balance)

https://websiteaiscore.com/blog/nike-vs-new-balance-technical-audit
1•aggeeinn•41m ago•1 comments

Photo was taken in 1911 using glass plate technology

https://bsky.app/profile/alanjstedman.bsky.social/post/3mcm2qdizg22u
4•doener•41m ago•1 comments

Don't be a human alarm clock

https://mannhowie.com/human-alarm-clock
1•elephant_burger•42m ago•1 comments

WhisperPair: Hijacking Bluetooth Accessories Using Google Fast Pair

https://whisperpair.eu/
2•xerosic•44m ago•0 comments

Vercel's Web Interface Guidelines

https://vercel.com/design/guidelines
1•handfuloflight•45m ago•0 comments

I used an agent to hunt vulns

https://blazelight.dev/blog/agent-vuln-hunting.mdx
1•theblazehen•46m ago•0 comments

Fitdrop: Personal exploration of fashion from 1980 to 2025

https://fitdrop.cc/
2•num42•47m ago•0 comments

What predicts success in AI coding? (Analysis of 4.6k amp threads)

https://amp-analysis-casestudy.vercel.app/
1•njpatel•49m ago•0 comments

Incarnation Lease

https://atmankalena.substack.com/p/incarnation-lease
1•Trifectorium•51m ago•1 comments

Why Mixing Colors on Your Computer Makes Mud

https://spectraljs.com/blog/why_mixing_colors_on_your_computer_makes_mud/
2•rvanwijnen•53m ago•0 comments

Architecture for Disposable Systems

https://tuananh.net/2026/01/15/architecture-for-disposable-systems/
6•tuananh•57m ago•2 comments

The modern, full-stack TypeScript framework that makes T3 Stack look like 2022

https://github.com/yazcaleb/c4-template
2•plawlost•59m ago•0 comments

Multi armed bandit resource allocation in Near Memory Processing architectures

https://www.sciencedirect.com/science/article/pii/S277306462500012X
4•rbanffy•1h ago•0 comments

Cold Truths

https://newsletter.doomberg.com/p/cold-truths
1•simonebrunozzi•1h ago•0 comments

ASCII characters are not pixels: a deep dive into ASCII rendering

https://alexharri.com/blog/ascii-rendering
52•alexharri•1h ago•3 comments

Gut micro-organisms associated with health, nutrition and dietary intervention

https://www.nature.com/articles/s41586-025-09854-7?lid=t94o71j7gslg
8•lonelyasacloud•1h ago•1 comments

A collection of my weird, fun, and fast-built side projects

https://www.pankajtanwar.in/side-hustles
2•jaynate•1h ago•0 comments

AV1 Image File Format Specification Gets an Upgrade with AVIF v1.2.0

https://aomedia.org/blog%20posts/AV1-Image-File-Format-Specification-Gets-an-Upgrade-with-AVIF/
8•breve•1h ago•0 comments