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

Comments

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

The AI boom is heralding a new gold rush in the American west

https://www.theguardian.com/technology/2025/dec/04/nevada-ai-data-centers
1•teleforce•2m ago•0 comments

The Role of Diet on the Gut Microbiome, Mood and Happiness

https://pubmed.ncbi.nlm.nih.gov/36993403/
1•rzk•5m ago•0 comments

NeurIPS best paper awards 2025

https://blog.neurips.cc/2025/11/26/announcing-the-neurips-2025-best-paper-awards/
1•ivansavz•6m ago•0 comments

Reactive Hypoglycemia

https://en.wikipedia.org/wiki/Reactive_hypoglycemia
1•rzk•6m ago•0 comments

The Welsh street that wants to be recognised as the steepest in the world

https://www.walesonline.co.uk/news/wales-news/welsh-street-wants-recognised-steepest-15116001
1•thunderbong•7m ago•0 comments

Next-Generation Magazine

https://www.retromags.com/magazines/usa/next-generation/
1•evo_9•11m ago•0 comments

AnySplat: Feed-Forward 3D Gaussian Splatting from Unconstrained Views

https://city-super.github.io/anysplat/
2•hellohello2•13m ago•0 comments

One Year with ChatGPT Pro as a First Hire

https://www.soundformovement.com/chatgpt-pro-as-first-hire
1•gwintrob•16m ago•0 comments

BMW PHEV: When EU engineering becomes a synonym for "unrepairable" (EV Clinic)

https://evclinic.eu/2025/12/04/2021-phev-bmw-ibmucp-21f37e-post-crash-recovery-when-eu-engineerin...
1•mikelabatt•16m ago•0 comments

From Code Foundation Models to Agents and Applications: A Comprehensive Survey

https://arxiv.org/abs/2511.18538
1•Anon84•18m ago•0 comments

America's mayors are right to support small business

https://www.noahpinion.blog/p/americas-mayors-are-right-to-support
2•paulpauper•22m ago•1 comments

MCP Just for API Specs?

1•ReedGraff•22m ago•0 comments

Judge Issues Tentative Ruling in Favor of SFC

https://sfconservancy.org/news/2025/dec/04/tentative-vizio-ruling-in-favor-of-sfc/
3•onedognight•25m ago•0 comments

The Poker Game of Life

https://terminaldrift.substack.com/p/the-poker-game-of-life
1•effnorwood•27m ago•0 comments

Building a RAG Server with PostgreSQL – Part 1: Loading Your Content

https://www.pgedge.com/blog/building-a-rag-server-with-postgresql-part-1-loading-your-content
1•pgedge_postgres•28m ago•0 comments

Show HN: I Built FavMusic After My Daughter Wanted a Heart Album Template

https://favmusic.org
1•olivefu•32m ago•0 comments

Show HN: Kirkify AI – One-click kirkification

https://kirkified.ai/
1•skypq•33m ago•1 comments

Film Grain Synthesis for AV1 Video Codec [pdf]

https://norkin.org/pdf/DCC_2018_AV1_film_grain.pdf
1•SoKamil•39m ago•0 comments

QuickTime turns 34 Yes, Apple's big bet on 'multimedia' still matters

https://www.macworld.com/article/2984983/happy-birthday-quicktime.html
1•CharlesW•39m ago•0 comments

The Ofcom Files, Part 4: Ofcom Rides Again

https://prestonbyrne.com/2025/12/04/the-ofcom-files-part-4-ofcom-rides-again/
10•parliament32•41m ago•0 comments

Built a fix for the 'minimum brightness is still too bright' problem on Hyprland

https://github.com/mrdrbrdr/ultra-low-brightness
1•mrdrbrdr•42m ago•1 comments

America Is Flying Blind on Immigration

https://www.apricitas.io/p/america-is-flying-blind-on-immigration
2•paulpauper•44m ago•2 comments

Apple to resist India order to preload state-run app as political outcry builds

https://www.reuters.com/sustainability/boards-policy-regulation/apple-resist-india-order-preload-...
3•CharlesW•44m ago•0 comments

Interpreting the Turnaway Study Correctly

https://www.betonit.ai/p/interpreting-the-turnaway-study-correctly
1•paulpauper•44m ago•0 comments

Incremental Development for Games (Is Hard) (2008)

https://journal.stuffwithstuff.com/2008/04/24/incremental-development-for-games-is-hard/
1•andsoitis•47m ago•0 comments

We need a canvas for input rather than textbox for all AI chatbots

1•nani98•51m ago•0 comments

SonicDE, the Sonic Desktop Environment

https://github.com/Sonic-DE
3•akagusu•54m ago•1 comments

MD Engine – No Code Game Creation Software

https://www.youtube.com/watch?v=0A1obMBxWPQ
1•bane•55m ago•0 comments

Pouring Packages with Homebrew

https://lwn.net/Articles/1046236/
2•signa11•1h ago•0 comments

TanStack announces an AI product [video]

https://www.youtube.com/watch?v=TFaVCe5mSN8
1•ryanvogel•1h ago•1 comments