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!

A Rise in Autism to Process the World at Full Bandwidth

https://verroes.com/information
1•0gs•52s ago•0 comments

Post Quantum WireGuard, WireGuard v2, ongoing AI discoveries, and so forth

https://lists.zx2c4.com/pipermail/wireguard/2026-December/009817.html
1•cpach•2m ago•0 comments

Show HN: Rotabell – Open-source, single-container on-call and alert escalation

https://github.com/hermes-lekkas/rotabell-oss
1•Hermes_dev•3m ago•0 comments

Minneapolis–St. Paul Airport

https://tinymsp.app/
1•cuteyellow•5m ago•0 comments

Sift: The Lisp formatter I kept trying to write (+lint and LSP)

https://jointhefreeworld.org/blog/articles/lisps/sift-the-lisp-formatter-i-kept-trying-to-write/
1•jjba23•5m ago•0 comments

Paramount execs, Russian mercenary held secret talks during Warner Bros bidding

https://www.theguardian.com/us-news/ng-interactive/2026/dec/02/paramount-skydance-russia-mercenary
1•vrganj•6m ago•0 comments

Show HN: Translator – Watch foreign videos from almost any site with subtitles

https://github.com/mikey1384/translator
1•mikey1384•8m ago•0 comments

Adc day1 – Haskell – fewest characters [video]

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

JellyBox now has an Android TV app

https://jellybox.app/
1•avdept•9m ago•1 comments

Show HN: Opendalfs – fsspec filesystem backed by Apache OpenDAL

https://github.com/fsspec/opendalfs
1•chojanshang•9m ago•0 comments

The New York Times is shutting down their API

5•donohoe•11m ago•0 comments

Launching S3 Wormhole

https://www.daemonology.net/blog/2026-12-02-Launching-S3-Wormhole.html
3•lewww•13m ago•0 comments

Learn from Microsoft: Transform software development through an agentic platform

https://developer.microsoft.com/blog/learn-from-microsoft-transform-software-development-through-...
1•measurablefunc•16m ago•0 comments

Amazon Ergo AI Model

https://aws.amazon.com/products/ergo/
2•jaekwon•16m ago•0 comments

Why Developers Can't Think Clearly About AI [video]

https://www.youtube.com/watch?v=uSjBA6MIcW4
1•mia-bajic•16m ago•0 comments

Show HN: Crossagent – brainstorm and cross-check work with multiple LLMs

https://github.com/gabi200/crossagent
1•gabi2003•18m ago•0 comments

Show HN: Kiki-highlight – small fast syntax highligter in Zig

https://github.com/kiki-app/kiki-highlight
1•Liangxianzhe•22m ago•0 comments

AWS will let you run Claude on-prem

https://www.theregister.com/ai-and-ml/2026/12/02/aws-will-let-you-run-claude-on-prem-so-you-dont-...
1•dualvariable•23m ago•0 comments

Man Hooks Up His 1994 Jeep Cherokee to ChatGPT and the Results Are Astounding

https://www.thedrive.com/news/man-hooks-up-his-1994-jeep-cherokee-to-chatgpt-and-the-results-are-...
2•thehoff•23m ago•1 comments

The Contributor Pledge

https://contributorpledge.com/
1•_____k•24m ago•0 comments

Safely set up swap and zswap on Linux, with rollback

https://github.com/ashot0907/RamPlus
1•ashot0907•25m ago•0 comments

Bookmark cleaned articles forever (and upload to IPFS)

https://2read.net/
1•NiklasKoehler•27m ago•0 comments

Fuck it: how I surrendered all my privacy to agents

https://dthree.github.io/posts/surrendered-my-privacy/
2•frabjoused•30m ago•0 comments

Digital paint for boats pings a phone when there's rust

https://www.begiant.ca/stories/ideas/copsys-digital-skin-paint
1•flylikeab1rd•30m ago•0 comments

The Rights Monster Legal, Ethical, and Scientific Problems with AI Personhood

https://therightsmonster.org/
6•andyjohnson0•32m ago•2 comments

Show HN: My Claude searched Gaia's DR4 blind and matched its black-hole picks

https://claude.ai/artifact/RAKy5sXP9HeKv79A45XRfY
2•drgath•33m ago•0 comments

The Best Thing to Do with a Relative Who Has Alzheimer's

https://www.nytimes.com/2026/10/12/opinion/alzheimers-elderly-parent.html
4•bookofjoe•35m ago•1 comments

Frontier LLMs are native text-to-speech models

https://twitter.com/Intelligence_ai/status/2127866629535252668
3•amrrs•35m ago•0 comments

European leaders back industrial AI projects at Paris tech summit

https://www.reuters.com/business/aerospace-defense/european-leaders-back-industrial-ai-projects-p...
2•onemoresoop•36m ago•0 comments

Gaia unveils two-billion-star map of our galaxy and beyond

https://www.esa.int/articles/about-us/directorates/science/gaia/gaia-unveils-two-billion-star-map...
3•bartman•36m ago•1 comments