frontpage.
newsnewestaskshowjobs

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!

From Sawdust to Paw Patrol: The Spin Master Story (With Ronnen Harary) [audio]

https://www.econtalk.org/from-sawdust-to-paw-patrol-the-spin-master-story-with-ronnen-harary/
1•mooreds•27s ago•0 comments

Stripe, Advent offer to buy PayPal for more than $53B

https://www.reuters.com/business/finance/stripe-advent-offer-buy-paypal-more-than-53-billion-sour...
1•rvz•3m ago•0 comments

Atto Primo Oh God Opera Song

https://open.spotify.com/album/7DTggs1Cj2YcOmuJUWjjM4
1•mjbachhav•3m ago•0 comments

Show HN: GWZ – Git Workspace Zone (multi-repo that feels like plain Git)

2•owebeeone•7m ago•0 comments

The great flattening – article on Vorflux (launched by Rippling co-founder)

https://twitter.com/myprasanna/status/2077065557204222238
1•vardhanw•8m ago•1 comments

Sunburn Calculator

https://sunburntimer.com/
1•ckcheng•8m ago•0 comments

Make any winning ad yours

https://trykopykat.com/
1•justinbuilds•9m ago•1 comments

Our Company Was Worth $6B. We Shared Passwords over Slack

https://www.cerby.com/blog/our-company-was-worth-6-billion.-we-shared-passwords-over-slack
1•mooreds•9m ago•0 comments

Mr. Putin, where is the gas?

https://kyivindependent.com/mr-putin-where-is-the-gas/
1•dotcoma•16m ago•0 comments

Cell Just Changed Biology

https://www.youtube.com/watch?v=g9B3gBhcwqM
1•soupspaces•17m ago•0 comments

Data Showing Palantir's Positive Impact on NHS Riddled with Errors

https://novaramedia.com/2026/07/13/data-showing-palantirs-positive-impact-on-nhs-riddled-with-err...
2•notRobot•17m ago•1 comments

Mako: A Self-Evolving Agentic Operating System for Autonomous Web Exploitation

https://arxiv.org/abs/2607.11288
1•praneethn•18m ago•0 comments

Google Images is getting a visual refresh as it turns 25

https://www.neowin.net/news/google-images-is-getting-a-visual-refresh-as-it-turns-25/
1•bundie•21m ago•1 comments

CoreWeave considers derivatives to hedge against falling memory prices

https://finance.yahoo.com/markets/options/articles/exclusive-ai-cloud-company-coreweave-235016062...
1•mapping365•22m ago•0 comments

Flap Display//SF Ferries

https://www.chloeyan.me/ferry
1•audreyfei•28m ago•0 comments

I thought I had a good homelab

https://humanparadox.org/i-thought-i-had-a-good-homelab/
1•colingauvin•28m ago•0 comments

Can't English be considered an indigenous Indian language, asks Supreme Court

https://www.thehindu.com/news/national/cant-english-be-considered-an-indigenous-indian-language-a...
2•thisislife2•28m ago•1 comments

Show HN: Timeline Studio – Open-source AI video editing

https://video-editor.ai-creator.top/
1•martindelophy•29m ago•0 comments

New $500M Artillery Shell Plant Failed to Produce Any 155mm Parts

https://www.twz.com/land/new-500m-artillery-shell-plant-failed-to-produce-any-155mm-parts
2•makerdiety•29m ago•0 comments

Show HN: PasteSheet – Turn a Google Sheet into a REST API and MCP Server

https://pastesheet.com
1•jaocero•32m ago•0 comments

FIFA World Cup 2026 · Data Portraits

https://wc26.bogachev.fr/
1•duck•35m ago•0 comments

The cost of AI-assisted development: cognitive fatigue

https://warpedvisions.org/blog/2025/hitting-the-wall-at-ai-speed/
1•o4c•38m ago•1 comments

6× faster binary search: from compiled code to mechanical sympathy

https://pythonspeed.com/articles/branchless-binary-search/
1•vinhnx•38m ago•0 comments

Jurassic Park computers in excruciating detail

https://fabiensanglard.net/jurrasic_park_computers/index.html
6•vinhnx•38m ago•0 comments

Australia creates world-first Office of AI

https://www.minister.industry.gov.au/t-ayres/media/ai-australias-interests
1•mrTeale•39m ago•0 comments

AI Agents: Hype vs. Reality (2024)

https://www.kadoa.com/blog/ai-agents-hype-vs-reality
1•vinhnx•40m ago•0 comments

GPT-5.6 Sol, Terra, Luna compare on intelligence vs. cost

https://artificialanalysis.ai/articles/gpt-5-6-intelligence-vs-cost-across-sol-terra-luna
3•theanonymousone•42m ago•0 comments

Weird password rules for website to register

1•guptadeepak•48m ago•1 comments

Code for the people: The human story of the open web

https://codeforthepeople.com/
1•wallflower•52m ago•0 comments

The math behind PrismML's 27B-parameter model in 4GB of RAM

https://thebluenarwhal.com/27-billion-parameters-on-an-iphone-why-on-device-ai-may-be-apples-next...
1•newyearsnight•52m ago•0 comments