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!

Self-Hosting Agent-Built Apps on a Mac Mini: My Personal Software Journey

https://metedata.substack.com/p/016-my-personal-software-journey
1•young_mete•37s ago•0 comments

Show HN: Formae 0.88.0 Released

https://docs.formae.io/documentation/reference/release-notes
1•discountelf•38s ago•0 comments

Sandboxing Claude CLI with Tart on Apple Silicon

https://www.mrafayaleem.com/blog/sandboxing-claude-cli-with-tart-on-apple-silicon
1•iamspoilt•1m ago•0 comments

Postgres rewritten in Rust v0.2, now faster than Postgres and ClickHouse

https://pgrust.com/
1•booksock•2m ago•0 comments

Copyright Was Never Your Friend

https://mkultra.monster/copyright/2026/07/23/copyright-bad/
1•surprisetalk•2m ago•0 comments

Show HN: Tinbase – OSS Supabase-compatible back end in TypeScript

https://www.tinbase.dev/
1•sanketsahu•3m ago•0 comments

Who's suing AI, and who's signing

https://pressgazette.co.uk/platforms/news-publisher-ai-deals-lawsuits-openai-google/
2•thm•3m ago•0 comments

Email in the Tranco Top-1M: 10 years of DNS measurements

https://labs.ripe.net/author/artem-berezin/two-providers-a-stubborn-plateau-and-a-very-long-tail-...
1•ArtemBerzin•3m ago•0 comments

Meta's AI spending reduces quarterly free cash flow by 91%

https://www.reuters.com/business/retail-consumer/metas-ai-splurge-lays-bare-its-compute-conundrum...
2•johnbarron•4m ago•0 comments

I measured what SmartScreen costs an indie developer. It's about 4x

https://senticmoney.com/blog/smartscreen-cost-indie-developer
1•fdcampbell•4m ago•1 comments

AI coding agents should optimize for less owned code

https://www.openenergytransition.org/posts/ai-coding-agents-should-optimize-for-less-owned-code
1•lyoncy•5m ago•0 comments

Octane JavaScript

https://octanejs.dev
1•haburka•6m ago•0 comments

Mandelbrot-2: C++ visualizer with perturbation theory up to 1e-308

https://github.com/Divetoxx/Mandelbrot-2
1•Divetoxx•7m ago•0 comments

SpaceX Looks to Compete with the Carriers

https://www.semafor.com/article/07/29/2026/spacex-looks-to-compete-with-the-carriers
1•TMWNN•7m ago•0 comments

Openinterpreter: Terminal coding agent built for low-cost models

https://www.openinterpreter.com
1•nateb2022•8m ago•0 comments

I built a free deepfake detector that works directly from social media URLs

https://kweliai.com/
1•ProlificVA•9m ago•0 comments

Taking Extreme Measures to Avoid New Car Technology

https://www.wsj.com/lifestyle/cars/driver-assistance-technology-dashboard-ead96bd2
1•ike_usawa•9m ago•0 comments

Go LLM SDK for streaming, tool-calling AI backends (plus frontend React lib)

https://github.com/grafana/ai-sdk
6•matryer•9m ago•0 comments

Leadership Lessons from the Odyssey

https://danielmangum.com/posts/odyssey-leadership-lessons/
1•hasheddan•9m ago•0 comments

AI and the Enshittification Era W Cory Doctorow – Weekly Show with Jon Stewart [video]

https://www.youtube.com/watch?v=-dAIJRjb-Bw
1•nekusar•9m ago•0 comments

Æsh, Another Extensible SHell

http://aeshell.github.io/
1•ankitg12•10m ago•0 comments

HSIP – a self-hosted identity and audit trail for AI agents

https://github.com/rewired89/HSIP-1PHASE
1•Rewired89•12m ago•0 comments

Blankie – Ambient sounds for your flow state

https://blankie.rest/
1•ai2027•12m ago•0 comments

Copatch- The shared workspace for teams building with AI coding agents

https://copatch.ai/
1•malrokhayes•13m ago•0 comments

Radar – (Signal clone) Chats and sats in one place

https://radar.chat/
1•janandonly•15m ago•0 comments

Show HN: Get an email when your favorite actor/director releases something new

https://www.premierepal.com/
1•samteeeee•18m ago•0 comments

AgentTrace: A Structured Logging Framework for Agent System Observability

https://arxiv.org/abs/2602.10133
1•ankitg12•18m ago•0 comments

Malloy semantic modeling lang gets 'Credible' backing to build out AI context

https://venturebeat.com/data/57-of-enterprises-traced-a-wrong-ai-answer-to-missing-business-conte...
1•richij•19m ago•0 comments

GCC steering committee announces AI policy

https://lwn.net/Articles/1086041/
4•arto•19m ago•1 comments

Are We Stuck with Lean?

https://mathoverflow.net/questions/513742/are-we-stuck-with-lean
2•jjgreen•20m ago•0 comments