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!

Google AI Studio fakes data deletion. VRP auto-banned me in 60s for reporting it

https://medium.com/@istokovicsgyorgy79/google-ai-studio-fakes-data-deletion-vrp-auto-banned-me-in...
1•Bitu79•6m ago•0 comments

Polymarket's Rush to Grow Left a Door Wide Open for Fraudsters

https://www.wsj.com/business/polymarkets-fraud-regulators-coplan-5f418ab0
3•fortran77•7m ago•1 comments

Step 5 Preview: Advancing the Pareto Frontier

https://www.stepfun.com/step-5-preview
2•nateb2022•9m ago•0 comments

Quantum Color Conjecture

https://www.avahbanerjee.com/blog/planar-quantum-coloring
3•banerjeeav•10m ago•0 comments

What are you building with jev?

2•arpanghoshal•18m ago•0 comments

Egocentric training's gig workers are helping robots learn how to do your dishes

https://www.abc.net.au/news/2026-09-20/egocentric-training-gig-workers-helping-robots-learn-tasks...
3•ahonhn•18m ago•0 comments

JEV: Ranking 6K+ peer-company candidates in ~40 seconds

https://twitter.com/Alex_aic5/status/2101523309158343137
2•aic5•27m ago•0 comments

Random Reality (2000)

https://sprott.physics.wisc.edu/pickover/pc/random_reality.html
2•rramadass•27m ago•1 comments

Adapting Fossil-scm as a platform for AI agentic workflow

https://github.com/BenSiv/fossil-scm
2•thunderbong•27m ago•0 comments

Show HN: Architectural Guardrails for AI native development

https://github.com/cxgrd/cli
2•geekgod382•28m ago•0 comments

PanoDrop: Save and rediscover immersive 360° views of anywhere in the world

https://www.panodrop.app/
2•dueffects•28m ago•0 comments

Protocol-Aware Deterministic Simulation Testing

https://tigerbeetle.com/blog/2026-08-20-protocol-aware-dst/
2•pykello•35m ago•0 comments

Integrating Volt Active Data with AI Agents and Chatbots

https://docs.voltdb.com/UsingVoltDB/ChapAI.php
2•Bluestein•38m ago•0 comments

Inference-Engine Fingerprinting Attacks Are Practical

https://arxiv.org/abs/2609.20614
4•sbulaev•38m ago•0 comments

OpenAI researcher on AI communicating across air-gaps via thermal side-channels [video]

https://www.youtube.com/watch?v=6AgOfiZOWiY
5•nujan_dev•39m ago•1 comments

Show HN: The Smallest LLM in JavaScript

https://gist.github.com/skorotkiewicz/dedc3b5a857be7d0f2b378334721713c
3•modinfo•40m ago•0 comments

Myth of Brand Power

https://hoskingpartners.com/perspectives/death-of-the-brand-or-dearth-of-thought/
2•rahuldracula•46m ago•0 comments

Turning 15-hour layovers into 5-day stopovers, usually for less mone

https://uwillfly.net/pl
4•privacyzvarych•47m ago•0 comments

Another terminal/shell AI assistant (shell native)

https://github.com/TheR1D/aty
2•ther2d•50m ago•1 comments

Show HN: All-in-one open-source Tab organizer

https://github.com/ringlochid/leotabs
2•ringlochid•51m ago•0 comments

The senior engineer death spiral

https://sunilpai.dev/posts/the-senior-engineer-death-spiral/
3•hisamafahri•52m ago•0 comments

Grit your teeth and ship it

https://www.seangoedecke.com/grit-your-teeth-and-ship-it/
3•calvinfo•55m ago•0 comments

Nscale S-1 demonstrates unprofitability of AI

https://www.reddit.com/r/BetterOffline/comments/1wl3kkf/nscale_s1_demonstrates_unprofitability_of...
3•aliasxneo•56m ago•0 comments

The Story of FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8

https://twitter.com/davepl1968/status/2099883465256865923
2•ksec•58m ago•0 comments

California Cracks Down on Influencers' Undisclosed Political Ads

https://www.nytimes.com/2026/09/19/business/media/california-political-ads-influencers-law.html
2•JumpCrisscross•1h ago•0 comments

The X3DH Key Agreement Protocol

https://signal.org/docs/specifications/x3dh/
2•Bluestein•1h ago•0 comments

Market design: affinity networks like shooq, & why a festival should buy afm

http://shooq.danieldeboulay.com
2•deboulaymxf•1h ago•0 comments

Show HN: AudioSort, a web app for sorting audio files

https://audiosort.vakaiser.com/
2•Vakaiser•1h ago•0 comments

Crypto Blew Its Big Moment–and the Blame Game Has Begun

https://www.wsj.com/finance/currencies/crypto-blew-its-big-momentand-the-blame-game-has-begun-dff...
2•JumpCrisscross•1h ago•0 comments

OpenAI expects to burn $280B by 2030

https://www.ft.com/content/6011d061-eee3-4193-b3b7-8ee4155f538c
2•JumpCrisscross•1h ago•0 comments