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!

Excel Adds Nested Arrays

https://techcommunity.microsoft.com/blog/microsoft365insiderblog/put-multiple-values-in-one-cell-...
1•azhenley•44s ago•0 comments

Near-Total Liquid Heat Capture Keeps AI Racks Cool

https://spectrum.ieee.org/fanless-liquid-cooled-ai-servers-coolit
1•rbanffy•1m ago•0 comments

Show HN: Critic – Review code with the agent that wrote it

https://www.critic.run/
1•snyy•1m ago•0 comments

Patents on laser designation and machine-aided targeting

https://signal-docket.pages.dev/
1•measurablefunc•3m ago•0 comments

Funny VideosHow to Start a Faceless YouTube Channel with AI: A Complete Guide

https://coursiv.io/blog/how-to-start-a-faceless-youtube-channel-with-ai
1•Asifulla•3m ago•0 comments

Tidewater Island Fishing Game

https://dgreenheck.github.io/tidewater/
1•memalign•3m ago•0 comments

The Rise of Audio AR

https://www.dbreunig.com/2024/04/10/the_rise_of_audio_ar.html
1•dbreunig•5m ago•0 comments

One URL, Three Different Tricks

https://isc.sans.edu/diary/33366
1•speckx•6m ago•0 comments

Startups I am curious, what ERP system do you guys use?

https://agaro.ai/
1•yusufghyasi•6m ago•0 comments

The Qodo Agentic Toolbox: A CLI-powered Quality counterpart for coding agents

https://docs.qodo.ai/agentic-toolbox
1•aanthonymax•6m ago•0 comments

The grey box of post-quantum cryptography standards

https://ravital.github.io/blog/2026/09/23/pqc
1•nomnoms•8m ago•0 comments

Nigel Richards – The best Scrabble player [video]

https://www.youtube.com/watch?v=zfH2Jwuf3sM
1•chirau•8m ago•0 comments

Middle powers are rethinking espionage

https://www.economist.com/international/2026/09/22/how-middle-powers-are-rethinking-espionage
1•harry_nutsachs•10m ago•0 comments

A Million Agents Is a Distributed System Problem

https://www.instacloud.com/blogs/a-million-agents-is-a-distributed-systems-problem
1•tonychang430•11m ago•0 comments

The Pitești Experiment

https://undevaincomunism.com/the-pitesti-experiment-darkest-chapter-of-reeducation-torture-and-be...
1•jruohonen•11m ago•0 comments

Jensen Huang vs. the A.I. Doomers [the Ezra Klein Show]

https://www.nytimes.com/2026/09/23/opinion/ezra-klein-podcast-jensen-huang.html
1•paulpauper•12m ago•0 comments

From the Voice of Dickie Jones

https://blog.nathanlangley.dev/posts/dickie-jones.html
1•ninjahawk1•13m ago•1 comments

Lifelogging with Large Language Models

https://jaan.io/lifelogging-with-large-language-models
1•paulpauper•13m ago•0 comments

Mysteries of AI Generalization

https://www.astralcodexten.com/p/mysteries-of-ai-generalization
1•paulpauper•13m ago•0 comments

The Power of AI: Mass Collaboration

https://www.cppdepend.com/blog/ai-real-power-mass-collaboration/
2•cppfirst•14m ago•0 comments

Show HN: DeutschDNA – German Tutor Skill for Claude Code and Codex

https://github.com/ahmtsahin/deutsch-dna
1•impala64•14m ago•0 comments

Show HN: Busbar self-hosted execution boundary for Agentic Apps

https://github.com/GetBusbar/busbar
1•mangatgoyal•14m ago•0 comments

Show HN: Whiteboard (YC W26) – An open-source IDE for thoughtful software design

https://github.com/devdotfast/whiteboard
12•sidharthkmenon•15m ago•0 comments

Show HN: Devc – an alternate CLI for launching devcontainers

https://github.com/rameshvarun/devc
1•varunramesh•20m ago•0 comments

Open AI in the Wild: Adoption and Adaptation of Open Models on R/LocalLLaMA

https://dl.acm.org/doi/abs/10.1145/3805689.3812421
1•theanonymousone•21m ago•0 comments

Return-to-office policy in 2026: 8 of 75 top UK employers require 5 office days

https://www.wfhjobs.co.uk/wfh-jobs-research/rto-policy-facts-and-statistics
2•FreddieSO•21m ago•1 comments

Paper2agent Turns Static Papers into Live AI Tools

https://spectrum.ieee.org/paper2agent-ai-agents-research-papers
2•rbanffy•21m ago•0 comments

35 years ago I did it all myself

https://twitter.com/jasonfried/status/2103170272467767753
2•tosh•21m ago•0 comments

For Computer Use, the harness matters as much as the model

https://www.stagehand.dev/evals
15•MiguelG719•23m ago•6 comments

Meta employees don't like to be filmed with there own glasses [video]

https://www.youtube.com/shorts/6Abwd13odL4
2•pixvi•23m ago•0 comments