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!

Data Centers and Local Economies in the Age of AI: A Shift–Share Approach

https://www.nber.org/papers/w35194
1•paulpauper•1m ago•0 comments

New way to use CLIs from your phone

https://apps.apple.com/us/app/mobilecli/id6757689455
1•AlexanderKnigge•1m ago•1 comments

Some non-obvious why AI will create transitional problems in employment

https://marginalrevolution.com/marginalrevolution/2026/05/some-non-obvious-reasons-why-ai-will-cr...
1•paulpauper•1m ago•0 comments

Overworked AI Agents Turn Marxist, Researchers Find

https://www.wired.com/story/overworked-ai-agents-turn-marxist-study/
1•littlexsparkee•4m ago•1 comments

CVE-2026-42945 – Critical heap buffer overflow in Nginx ngx_HTTP_rewrite_module

https://github.com/DepthFirstDisclosures/Nginx-Rift
1•882542F3884314B•7m ago•0 comments

OpenAI Flips the Script

https://every.to/context-window/openai-flips-the-script
1•gmays•8m ago•0 comments

Extract iOS backups using only stock macOS command line tools

https://github.com/paralevel/extract-ios-backups-from-terminal
1•trapf•9m ago•0 comments

Blue Origin may need external funding to hit ambitious launch targets

https://arstechnica.com/space/2026/05/blue-origin-may-need-external-funding-to-hit-ambitious-laun...
1•strongpigeon•10m ago•0 comments

Claude subscriptions no longer cover `claude -p`

https://x.com/i/trending/2054617957440143639
3•ramoz•10m ago•1 comments

AI-Powered File Organization Breaks Barriers with Natural Language Control

https://aihaberleri.org/en/news/ai-powered-file-organization-breaks-barriers-with-natural-languag...
1•VaultSort•11m ago•0 comments

Show HN: Ravan – Free streaming for AI-generated instrumental music

https://ravan.one
2•truemoein•11m ago•1 comments

Show HN: Open-source clone of the swarm / connect the dots / happenstance

https://github.com/draftboardco/lean-intros
1•offtotheraces•12m ago•1 comments

Microglia participate in anxiety and grooming in mice using calcium signaling

https://www.nature.com/articles/s41380-026-03572-w
2•PaulHoule•13m ago•0 comments

EditLens: Quantifying the extent of AI editing in text

https://arxiv.org/abs/2510.03154
2•horseradish•14m ago•0 comments

I Compared the Galaxy S26 Ultra to the Nokia Lumia 1020

https://www.androidpolice.com/i-compared-the-galaxy-s26-ultra-to-a-13-year-old-phone-and-i-wasnt-...
1•nixass•14m ago•0 comments

Fractions in HTML

https://www.rubenerd.au/fractions-in-html/
1•rishikeshs•15m ago•0 comments

The day the Pintupi Nine entered the modern world

https://www.bbc.com/news/magazine-30500591
1•ilamont•19m ago•0 comments

When Building Is Easy, the Danger Is Building Everything

https://stack72.dev/when-building-is-easy-the-danger-is-building-everything/
4•speckx•21m ago•0 comments

Making the news available at no cost is a victory

https://www.sltrib.com/opinion/commentary/2026/05/12/just-days-tribune-reporting/
8•danso•21m ago•2 comments

Lake Tahoe residents to find a new power source after energy source redirects

https://finance.yahoo.com/news/nearly-50-000-lake-tahoe-170925969.html
4•hnthrowaway0315•25m ago•1 comments

Continual Harness: Online Adaptation for Self-Improving Foundation Agents

https://arxiv.org/abs/2605.09998
2•milkkarten•25m ago•0 comments

Research shows fast and effective way to reduce plastics in body

https://www.uwa.edu.au/news/article/2026/april/research-shows-fast-and-effective-way-to-reduce-pl...
1•littlexsparkee•27m ago•0 comments

Why Was the Discovery of the Jet Stream Mostly Ignored? (2018)

https://www.smithsonianmag.com/air-space-magazine/as-next-may-unbelievablebuttrue-180968355/
1•robin_reala•28m ago•0 comments

Show HN: DAG-BFT with multi-attribute reputation

https://github.com/Savitri-Network/savitri-network
1•And_Cadamuro•29m ago•0 comments

What drawing lines on football pitch taught me about future of human-AI collab

https://singhkays.com/blog/drawing-lines-football-pitch-human-ai/
1•singhkays•31m ago•0 comments

Nginx Rift: Remote Code Execution via an 18-Year-Old Vulnerability

https://depthfirst.com/research/nginx-rift-achieving-nginx-rce-via-an-18-year-old-vulnerability
3•rs_rs_rs_rs_rs•32m ago•0 comments

Trevor Howsam Limited: 19th- and 20th-Century Props and Wallpaper

https://trevorhowsam.com/
1•NaOH•32m ago•0 comments

I built a site generator that starts from docs, Maps, or Instagram

https://www.google.com/search?q=azonova+sites
2•azharxes•33m ago•0 comments

The Death of (The Philosophy of) Economics

https://cyrilhedoin.substack.com/p/the-death-of-the-philosophy-of-economics
1•paulpauper•33m ago•0 comments

A SQL-Inspired Query Language Designed for Event Sourcing

https://yoeight.github.io/blog/2025/12/21/EventQL_A_SQL_Inspired_Query_Language_Designed_For_Even...
3•goloroden•33m ago•0 comments