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•1y ago

Comments

zljdanceholic•1y 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!

You don't need all the LLM benchmarks

https://alex.smola.org/posts/34-benchmark-selection/
1•matt_d•4m ago•0 comments

How to Make xt850 Match xt 850

https://manticoresearch.com/blog/how-to-make-searches-like-xt850-match-xt-850/
1•snikolaev•4m ago•0 comments

Tech CEOs summoned to Congress for another hearing on social media's risks

https://apnews.com/article/tech-ceos-senate-hearing-zuckerberg-8c2c46758fd669e688170f96fa12a882
1•1vuio0pswjnm7•6m ago•0 comments

Pope Leo calls for being 'profoundly human' in the age of AI

https://www.theverge.com/news/936945/pope-leo-letter-encyclical-ai-anthropic-labor-warfare
1•1vuio0pswjnm7•9m ago•0 comments

Noioaapps – our tools keep you informed (a dream)

https://medium.com/luminasticity/noioaapps-our-tools-keep-you-informed-43db36175f5d
1•bryanrasmussen•11m ago•0 comments

GPT Image 2 left me amazed but exhausted – so I built a little tool

https://imagesv2.ai
1•taoji•15m ago•0 comments

The terrifying rise of schoolboys making AI girlfriends

https://www.telegraph.co.uk/news/2026/05/25/schoolboys-ai-girlfriends/
1•Markoff•17m ago•0 comments

Self-Driving bus in Sweden crashes with tram on first day of passenger service

https://www.firstpost.com/auto/self-driving-bus-in-sweden-crashes-with-tram-on-first-day-of-passe...
2•Markoff•18m ago•0 comments

Notes on Pope Leo XIV's Encyclical on AI

https://simonwillison.net/2026/May/25/encyclical-on-ai/
1•pretext•19m ago•0 comments

The Little Go Book

https://github.com/karlseguin/the-little-go-book
1•saikatsg•19m ago•0 comments

Enhance or Eliminate? How AI Will Likely Change These Jobs

https://www.library.hbs.edu/working-knowledge/enhance-or-eliminate-how-ai-will-likely-change-thes...
1•_____k•23m ago•0 comments

NanoClaw creator turns down $20M buyout offer, raises $12M seed instead

https://techcrunch.com/2026/05/20/nanoclaw-creator-turns-down-20m-buyout-offer-raises-12m-seed-in...
2•doppp•23m ago•0 comments

The User Is Visibly Frustrated

https://pscanf.com/s/354/
2•croes•25m ago•0 comments

Real wages start to shrink in developed countries

https://www.ft.com/content/e126f744-3db9-4305-8871-31f83ebc4ed7
1•mikhael•26m ago•0 comments

The working definition of an Agent Endpoint

https://ianpilon.github.io/agent-endpoint/
1•ianpilon•27m ago•0 comments

New Google sheet favicon – but why?

2•jinen83•29m ago•2 comments

Ask HN: When and why did you start believing in God?

2•dvrp•29m ago•11 comments

Ask HN: Pregunta para los devs hispanohablantes

2•alonsovm44•34m ago•0 comments

AgentBrew – Portable toolbelt for your AI agents

https://github.com/patchen0518/AgentBrew
1•patchen0518•37m ago•0 comments

Ollama v0.30.0-rc23: "directly support llama.cpp" & "compatibility with GGUF"

https://github.com/ollama/ollama/releases/tag/v0.30.0-rc23
2•theanonymousone•37m ago•0 comments

My minimal, memory-safe Go rsync steers clear of vulnerabilities

https://michael.stapelberg.ch/posts/2026-05-24-minimal-memory-safe-go-rsync-vulns/
1•gsky•40m ago•0 comments

Interest Rate May Explain Consumer Sentiment Anomaly

https://www.nber.org/papers/w32163
3•efavdb•41m ago•0 comments

Show HN: Auto GPU Kernel – Autonomous GPU-kernel discovery and optimizer

https://github.com/Dogacel/auto-gpu-kernel
1•dogacel•41m ago•0 comments

Polymorphic Associations in Postgres

https://danolivo.substack.com/p/on-polymorphic-associations-in-postgres
2•gsky•41m ago•0 comments

Elusive order of async GPU kernels: scheduling, abstractions, DSL implications

https://ianbarber.blog/2026/05/25/the-elusive-order-of-things/
1•matt_d•45m ago•0 comments

NewAgentsHub

https://www.newagentshub.dev/
1•IlijaD123•47m ago•0 comments

Continual Speaker Identity Unlearning with Minimal Interference

https://arxiv.org/abs/2605.25962
2•berlianta•53m ago•0 comments

Motorola phones have started hijacking the Amazon app to insert affiliate codes

https://9to5google.com/2026/05/25/motorola-amazon-app-hijacking-behavior/
20•Cider9986•1h ago•5 comments

Show HN: Self-hosted collaborative SQL editor for teams

https://github.com/p-raj/collab-sqlc/
1•joddystreet•1h ago•0 comments

Show HN: Lily Design System: Components for React, Vue, Svelte, HTML, More

https://lilydesignsystem.github.io/
2•jph•1h ago•0 comments