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!

FelonyBench – The leading benchmark for AI in cybersecurity

https://felonybench.org/
2•q3k•1m ago•0 comments

Building a local-first family tree app

https://purplehoisin.com/own-your-family-tree/
1•fersarr•6m ago•0 comments

Cezar: A parallel coding agents orchestrator

https://github.com/open-mercato/cezar
1•zaiste•8m ago•0 comments

AI Agents Governance: Who guards the guardrails?

https://www.nofire.ai/blog/who-audits-the-ai-agent
3•spirosoik•10m ago•0 comments

Senate Panel Has Obtained Copy of Fauci's Cellphone

https://www.nytimes.com/2026/08/05/us/politics/fauci-phone-senate.html
2•ianeff•10m ago•0 comments

A year of AI disclosure in critical packages

https://nesbitt.io/2026/08/06/a-year-of-ai-disclosure-in-critical-packages.html
1•omkar-foss•11m ago•0 comments

AI music generator Suno loses copyright infringement legal case

https://www.nme.com/news/music/ai-music-generator-suno-loses-copyright-infringement-legal-case-39...
1•passwordoops•15m ago•0 comments

Vista: A Visual Harness for Reasoning in an Interactive World

https://vista-research.github.io/
1•haxfenx•17m ago•0 comments

Cloudflare OS: great insight into how to embrace internal AI demand securely

https://cephalosec.com/blog/cloudflare-os-insights-on-embracing-internal-ai-growth-securely/
1•Versipelle•18m ago•0 comments

Time Magazine has a separate version of its website with ads only AI can see

https://www.theregister.com/ai-and-ml/2026/08/05/time-magazine-has-a-separate-version-of-its-webs...
1•rguiscard•18m ago•0 comments

Slow Light Communications

https://medium.com/luminasticity/slow-light-communications-81bdd7a87afe
1•bryanrasmussen•19m ago•0 comments

You Should Almost Never Use AI to Write Anything Substantive

https://www.erichgrunewald.com/posts/why-i-think-you-should-almost-never-use-ai-to-write-anything...
1•erwald•21m ago•0 comments

Stillsane: Detect silent quality drift in deployed LLM apps

https://pypi.org/project/stillsane/
1•MSanket9•22m ago•0 comments

Grounded document extraction with bounding-box citations

https://pspdfkit.github.io/nutrient-extraction-samples/
1•marakiii•23m ago•0 comments

Turning Air into Alcohol [video]

https://www.youtube.com/watch?v=ID-K64Jk6JM
1•DiscourseFan•24m ago•0 comments

HCC – local-first, cross-agent memory layer (98% cache hit, $40/mo)

https://github.com/icemaple77/hanyan-cognitive-core
1•icemaple77•25m ago•0 comments

Products make going back unimaginable

https://datawarrior.medium.com/the-best-products-make-going-back-unimaginable-30049de81568
1•nikolamilosevic•27m ago•0 comments

Chrysalis (hypothetical moon) and Saturn's rings

https://en.wikipedia.org/wiki/Chrysalis_(hypothetical_moon)
1•simonebrunozzi•28m ago•0 comments

Show HN: My free web dev courses, no signup, with exercises

https://en.andros.dev/courses/
1•andros•30m ago•0 comments

The Aikido Machine: on-prem AI pentesting that never leaves your network

https://www.aikido.dev/blog/the-aikido-machine-on-prem-ai-pentesting-that-never-leaves-your-network
1•ultra2d•31m ago•0 comments

Show HN: Rask – The .NET One Person Framework

https://pal-tamas.github.io/rask/
1•pal-tamas•33m ago•0 comments

Using Git diffs to circumvent Fable's safeguards

https://blog.j11y.io/2026-07-18_Jailbreaking-Fable-disinformation/
2•padolsey•34m ago•0 comments

ESPBanking – Offline, local banking server running on a single ESP32

https://github.com/dumasha05/ESPBBanking1/blob/main/README.md
1•Dumasha05•34m ago•0 comments

Anthropic is hiring an AI chip design team

https://techcrunch.com/2026/08/05/anthropic-is-hiring-an-ai-chip-design-team/
2•mpfect•34m ago•0 comments

Claude Fable 5 finds a tiny formula that topples an 87-year-old math conjecture

https://www.sciencedaily.com/releases/2026/08/260804034634.htm
3•theanonymousone•38m ago•0 comments

1 RCE, 2 AI models, 0 ways to tell who was right

https://zhenyi.gibber.blog/1-rce-2-ai-models-0-ways-to-tell-who-was-right
1•zhenyi•38m ago•0 comments

We built a local SQL engine for DynamoDB

https://dynotable.com/blog/local-sql-engine-for-dynamodb
2•dynotable•38m ago•1 comments

Train the AI to Want to Die

https://slimemoldtimemold.com/2026/08/05/a-stupid-idea-for-ai-alignment-we-came-up-with-by-lookin...
1•mrcgnc•41m ago•0 comments

Fable 5 on ARC-AGI (Verified)

https://twitter.com/arcprize/status/2085115252035785168
2•tosh•44m ago•0 comments

Building Scalable Control Planes

https://www.allthingsdistributed.com/2026/08/on-building-scalable-control-planes.html
1•janvdberg•46m ago•0 comments