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!

Show HN: Sandbox-proxy – A forward proxy that injects credentials to sandboxes

https://github.com/yagop/sandbox
1•yagop•52s ago•0 comments

Why AI Will Never Achieve Consciousness

https://roburie.substack.com/p/why-ai-doesnt-think-cannot-reason
1•megamike•1m ago•0 comments

Chip Industry Urges US to Avoid Moves That Distort Memory Market

https://www.bloomberg.com/news/articles/2026-07-02/chip-industry-urges-us-to-avoid-moves-that-dis...
1•giuliomagnifico•2m ago•0 comments

Tokdash – track tokens, quotas, resets and AI usage locally

https://github.com/JingbiaoMei/Tokdash
1•howardme1•4m ago•0 comments

Organization as a Graph [video]

https://www.wearedevelopers.com/en/videos/2051/your-organization-as-a-graph
1•dunyakirkali•5m ago•0 comments

Critical Evidence from Early Evolution of House Dust Mites [pdf]

https://academic.oup.com/sysbio/article-abstract/62/3/411/1652447?redirectedFrom=fulltext
1•thunderbong•6m ago•0 comments

It's not me, it's the compiler

https://parsa.wtf/cast/
2•jonathandeamer•6m ago•0 comments

Olive – Lisp VSCode Extension (Alternative to Alive)

https://github.com/kchanqvq/olive
1•AlexeyBrin•11m ago•0 comments

Meta's Inevitable Cloud

https://spyglass.org/meta-cloud/
1•RickJWagner•12m ago•0 comments

Notes for June 28 – July 4

https://taoofmac.com/space/notes/2026/07/04/1230
1•rcarmo•17m ago•0 comments

It's Hard to Eval Is a Product Smell

https://hamel.dev/blog/posts/eval-smell/
2•_pdp_•17m ago•0 comments

"How do you plan to dismantle the servers of your rival AIs?" [video]

https://www.youtube.com/watch?v=aicfLYrRuUw
1•deadprogram•18m ago•0 comments

Show HN: A free, no-ad, no-account, no-server iOS calorie budgeting/diet app

https://apps.apple.com/gb/app/budgie-diet/id6670401868
3•PurestGuava•18m ago•0 comments

The Reports of Jim Carrey's Death Are a Failure Mode

https://tane.dev/2026/07/the-reports-of-jim-carreys-death-are-a-failure-mode/
1•taubek•18m ago•0 comments

Did the founders of the United States intend to create a Christian nation?

https://theconversation.com/the-us-founders-other-revolutionary-choice-separating-religion-and-go...
1•chmaynard•20m ago•0 comments

Startup Targets Datacenters with 3D-Printed Nuclear Reactor Module

https://www.theregister.com/systems/2026/07/03/startup-targets-datacenters-with-3d-printed-nuclea...
1•_pdp_•22m ago•0 comments

Polymarket-SDK-cpp – C++23 SDK for Polymarket prediction markets

https://github.com/Wammero/polymarket-sdk-cpp
1•Wammerq•25m ago•0 comments

Nexus System Manager

https://github.com/rilindbytyqi300/NexusSystemManager
1•rilindbytyqi1•25m ago•0 comments

Developer Verification – LineageOS

https://lineageos.org/Developer-Verification/
1•kevincox•28m ago•0 comments

Hot weather and low sunshine linked to mental health-related healthcare use

https://www.uea.ac.uk/about/news/article/everyday-weather-can-increase-demand-for-mental-health-s...
1•giuliomagnifico•35m ago•0 comments

Is a 'Frictionless' Society a Trap?

https://www.nytimes.com/2026/07/02/magazine/frictionless-productivity-marketing-tech.html
1•1vuio0pswjnm7•36m ago•0 comments

Free SaaS Landing Page Template – React, Vue, HTML for Claude Code and Cursor

https://github.com/hannah-wright/saas-landing-page-template
1•DreyGreatness•37m ago•0 comments

Microsoft Disclosure Provides Rare Glimpse of Tax Haven Tactics

https://www.nytimes.com/2026/07/03/technology/microsoft-europe-disclosure-tax-havens.html
1•1vuio0pswjnm7•39m ago•0 comments

Show HN: ProxyBoy. A Windows HTTP/HTTPS debugging proxy with an AI assistant

https://github.com/pjperez/proxyboy
1•InfraScaler•40m ago•0 comments

Show HN: FluxDown – Free, open-source IDM alternative in Rust and Flutter

https://github.com/zerx-lab/FluxDown
1•zero-lab•41m ago•0 comments

Running Engineering Teams Series

https://yusufaytas.com/series/running-engineering-teams
4•yusufaytas•42m ago•1 comments

Feynman's Garden

https://www.marginalia.nu/log/a_108_feynman_revisited/
1•jimsojim•42m ago•0 comments

Sharded Inference of a 229B-Parameter Moe over the Internet at Interactive Speed

https://twitter.com/c0mputeAI/status/2073150789640421537
1•MrBuddyCasino•53m ago•0 comments

Satoyama

https://en.wikipedia.org/wiki/Satoyama
1•ETH_start•55m ago•0 comments

Teaching AI to Run with the Turbines

https://www.technologyreview.com/2026/07/02/1138433/teaching-ai-to-run-with-the-turbines/
1•joozio•56m ago•0 comments