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

Comments

zljdanceholic•6mo 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: A browser tool that tracks your hands in real-time

https://webinterac.vercel.app/
2•warrowarro•2m ago•0 comments

Idempotency Keys

https://www.morling.dev/blog/on-idempotency-keys/
3•furkansahin•2m ago•0 comments

OpenTransit – A MassTransit Fork

1•Nakib•2m ago•0 comments

A Software Language That Vibe Coding Kids Deserve

https://github.com/MatthiasKainer/matthiashihic
1•mat_the_k•3m ago•0 comments

Show HN: I built a "Hot or Not" for startups to get the feedback YC doesn't give

https://yci.vercel.app/vote
1•alielroby•4m ago•0 comments

A Power Grid-Aware Website

https://fershad.com/grid-aware-site/
1•vintagedave•4m ago•1 comments

A We-Free December

https://hollisrobbinsanecdotal.substack.com/p/a-we-free-december
1•HR01•4m ago•0 comments

Show HN: Product Loop – Automated AI customer interviews

https://productloop.io
1•satssehgal•6m ago•0 comments

Show HN: Tree Dangler

https://www.jasonthorsness.com/34
1•jasonthorsness•6m ago•0 comments

Show HN: Smart Bill Splitter: Split bills in browser without login, ads, cookies

https://smartbillsplitter.com
1•truetotosse•6m ago•0 comments

Getting Started with Claude Code

https://realpython.com/courses/getting-started-claude-code/
1•meysamazad•6m ago•0 comments

Browserbench.ai is launched to evaluate browser runtimes for AI Agents

https://www.browserbench.ai
1•idanraman•8m ago•1 comments

Ruthless prioritization while the dog pees on the floor

https://longform.asmartbear.com/prioritization/
2•gk1•10m ago•0 comments

Alphabet (Googl) Gains on Report Meta to Use Its AI Chips

https://www.bloomberg.com/news/articles/2025-11-25/alphabet-gains-on-report-that-meta-will-use-it...
1•mgh2•11m ago•0 comments

Ageing Populations Will Lead to Lower Living Standards, Warns Study

https://www.ft.com/content/3a675f7f-ff46-4b8d-9744-08dfed18d23a
2•skx001•12m ago•2 comments

Show HN: A seeded, deterministic chaos simulation runtime for async Rust

https://github.com/ZA1815/fracture
1•Crroak•13m ago•1 comments

The State of AI: don't share your secrets with a chatbot

https://www.ft.com/content/9cdd07b0-567e-4715-9ebd-435b1d685e4b
1•1vuio0pswjnm7•13m ago•0 comments

Questioning an Interface: From Parquet to Vortex

https://www.polarsignals.com/blog/posts/2025/11/25/interface-parquet-vortex
2•asubiotto•14m ago•0 comments

Show HN: Fractalbits – S3 compatibe store,1M iops p99~5ms,using Rust and Zig

https://github.com/fractalbits-labs/fractalbits-main
5•thomas_fa•15m ago•0 comments

Ask HN: Is There a Market for a "Phone-Only" VA Proxy?

2•ibogunov•16m ago•0 comments

Literary Philosophy and Philosophical Literature

https://countercraft.substack.com/p/literary-philosophy-and-philosophical
2•crescit_eundo•16m ago•0 comments

What Happens to Kids' Brains After Hours Staring at Screens?

https://studyfinds.org/kids-brains-after-thousands-of-hours-staring-at-screens/
1•Noaidi•17m ago•0 comments

Optique 0.7.0: Smarter error messages and validation library integrations

https://hackers.pub/@hongminhee/2025/optique-070
1•todsacerdoti•18m ago•0 comments

State Healthcare Rankings: The Methods Behind the Metrics

https://news.gallup.com/poll/698219/state-healthcare-rankings-methods-behind-metrics.aspx
1•hn_acker•18m ago•0 comments

What our data says about timed coding problems

https://www.otherbranch.com/shared/blog/what-our-data-says-about-timed-coding
1•rachofsunshine•20m ago•0 comments

How Long Does Reddit Account Warm-Up Take?

https://awesome-directories.com/blog/reddit-marketing-account-warmup-time-investment/
1•meysamazad•22m ago•0 comments

Continuous Batching from First Principles

https://huggingface.co/blog/continuous_batching
1•jxmorris12•24m ago•0 comments

AI Smells on Medium

https://rmoff.net/2025/11/25/ai-smells-on-medium/
2•rmoff•25m ago•0 comments

MiniMax-M2 Deep Research Agent

https://github.com/dair-ai/m2-deep-research
1•omarsar•27m ago•0 comments

German 'hammer gang' trial for seven accused of extreme-left violence

https://www.bbc.com/news/articles/cn091g7dreyo
2•onemoresoop•28m ago•0 comments