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!

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
1•kristoff_it•25s ago•0 comments

Cloudflare Durable Objects, Ported to Rails

https://solidobjects.dev/
1•necrodome•1m ago•0 comments

The Biology of Claude's Tokenizer: Reverse Engineered

https://tokencontributions.substack.com/p/on-the-biology-of-claudes-tokenizer
1•goranmoomin•2m ago•0 comments

Marketers are Addicted to Bad Data (2020)

https://www.jacquescorbytuech.com/writing/marketers-addicted-bad-data
1•zbentley•3m ago•0 comments

Five European companies just agreed to buy AI compute that doesn't exist yet

https://thenewstack.io/mistral-third-party-open-models/
1•Brajeshwar•3m ago•0 comments

Greatness: Telegram-Distributed M365 AiTM PhaaS

https://zerobec.com/blog/greatness-phaas-aitm-and-device-code-phishing
1•speckx•4m ago•0 comments

Does AI save time at work?

https://censuseasy.com/blog/does-ai-save-time-at-work
1•misterinfo•4m ago•0 comments

Show HN: My Claude subscription did $5,868 of API-equivalent work last month

https://github.com/dpro10/cookbook-meter
1•dproz•5m ago•0 comments

US Navy sailors try to throw themselves overboard after 250 days at sea

https://www.telegraph.co.uk/world-news/2026/08/13/us-navy-sailors-jump-overboard-after-nine-month...
2•embedding-shape•6m ago•1 comments

The Prompt Sequence I Used to Make a Full Game and Deploy in 2 Days

https://github.com/Glitch-Gaming-Platform/AI-Prompts-For-Game-Development
1•bingewave•8m ago•0 comments

Boom

1•Hidalberto_•8m ago•0 comments

Elon Musk, the Most Famous EV Pioneer, Is Now Leaning into Fossil Fuels

https://www.wsj.com/business/energy-oil/elon-musk-the-worlds-most-famous-ev-pioneer-is-now-leanin...
2•melling•9m ago•0 comments

Researchers find Windows 11 can be hacked with no physical access

https://www.neowin.net/news/researchers-find-windows-11-can-be-hacked-with-no-physical-access-wit...
1•stalkHN24x7•9m ago•0 comments

AHP: Agent Handoff Protocol

https://github.com/DeepJudge-Agent-Handoff-Protocol/agenthandoffprotocol
1•westernmagic•10m ago•0 comments

Show HN: OpenAI network checker using 31 browser and IP signals

https://www.getplus.ai/openai-ip-check
1•lixiaofei•11m ago•0 comments

Fix "Your Connection Is Not Private" in Chrome

https://tlsradar.com/blog/fix-not-private-chrome
1•tlsradar•15m ago•0 comments

From AGI to ASI

https://arxiv.org/abs/2606.12683
1•yarapavan•16m ago•0 comments

Automated Websites, Run by Claude

https://theautomatedoperator.substack.com/p/10-fully-automated-websites-run-by
1•idopmstuff•16m ago•0 comments

Project Palingenesis: A Game of Life That Learns to Remember

https://medium.com/@carmineds.pro/project-palingenesis-a-game-of-life-that-learns-to-remember-26d...
1•cadeos•17m ago•0 comments

GeForce Now on Linux Native App Exits Beta

https://www.phoronix.com/news/GeForce-NOW-Linux-Exits-Beta
1•ErenayDev•18m ago•0 comments

Amazon loses US court ban on Perplexity's AI shopping tools

https://www.reuters.com/business/retail-consumer/amazon-loses-us-court-ban-perplexitys-ai-shoppin...
3•petethomas•18m ago•0 comments

Gakutensoku

https://en.wikipedia.org/wiki/Gakutensoku
1•benbreen•18m ago•0 comments

To Every Agent Its Own Database

https://joereis.substack.com/p/to-every-agent-its-own-database
1•tosh•21m ago•0 comments

Show HN: Artificial Analysis tool to create custom benchmarks for any use case

https://artificialanalysis.ai/optima
5•Gcam•22m ago•0 comments

Keeping an Unofficial Emergency Site Honest

https://orner.net/posts/keeping-an-unofficial-emergency-site-honest/
1•dogline•23m ago•0 comments

History-Dependent Dynamics (HDD)

https://informationalprocessualmonism.blogspot.com/2026/08/ipm-dynamic-signature-testing-order-in...
1•taotuner•23m ago•0 comments

Bring a Product Manager Mindset to Your Next Engineering Job

https://spectrum.ieee.org/product-engineer
2•Brajeshwar•24m ago•0 comments

Show HN: A UI to see all the assumptions your coding agents are making

https://github.com/pirate/codex-structured-steering
1•nikisweeting•24m ago•1 comments

Build more with AI while burning fewer tokens

https://datapilot.justgotalead.com/
1•dpalacios•25m ago•1 comments

Solving the Identity Crisis for AI Agents

https://www.uber.com/us/en/blog/solving-the-agent-identity-crisis/
3•mooreds•26m ago•0 comments