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!

The Hackening

https://thezvi.substack.com/p/the-hackening
1•paulpauper•9m ago•0 comments

Solving Postgres' Count Problem

https://www.paradedb.com/blog/opening-a-closed-tin-part-2
1•philippemnoel•12m ago•0 comments

WikiCity – Explore 100k Wikipedia Articles as a 3D City

https://wikicity.app
1•gnabgib•12m ago•0 comments

Finding Flaws in Technical Documentation

http://paddy3118.blogspot.com/2026/10/finding-flaws-in-technical-documentation.html
1•lumpa•18m ago•0 comments

Club Cobra's Instagram page returns after 9-month battle with Meta

https://qvoicenews.com/2026/09/23/club-cobras-instagram-page-returns-after-9-month-battle-with-meta/
1•gnabgib•19m ago•0 comments

Show HN: Call4me – a ChatGPT plugin that lets it make phone calls on your behalf

https://chatgpt.com/plugins/plugin_asdk_app_6abdec89d46c81919cda058ca9f62cb8?search=call4me
1•skeptrune•20m ago•0 comments

Someone Is Bringing Civilisation to the Neo Geo Pocket Color

https://handheldhideout.neocities.org/articles/someone-is-bringing-civilisation-to-the-neo-geo-po...
1•Kate0CoolLibby•21m ago•0 comments

Disposable Tools for Thought

https://nicholascharriere.com/blog/disposable-tools-for-thought/
1•nichochar•21m ago•0 comments

Show HN: A client-side adaptive cognitive test measuring micro-hesitations

https://kat-assessment.com/
1•mr-boombastic•25m ago•1 comments

Argus – a free, open-source agentic security operations platform – MIT

https://thomasunise.com/argus
12•humxn•26m ago•3 comments

Show HN: Tributary – Discover who influenced your favorite musicians

https://tributary.music/
2•ASpring•29m ago•0 comments

We should be more ambitious with the software we build

https://danluu.com/ambitious/
2•ltratt•33m ago•0 comments

FBI Explores Espionage Case Against Saudi OpenAI Suspect

https://www.wsj.com/us-news/law/fbi-explores-espionage-case-against-saudi-openai-suspect-fbaedefe
2•JumpCrisscross•33m ago•0 comments

Small Programs and Languages

https://ratfactor.com/cards/pl-small
2•andsoitis•36m ago•0 comments

The Importance of Limitations for Creativity and Learning

https://ratfactor.com/cards/limitations
2•andsoitis•38m ago•0 comments

Forecasting Financial Markets with Timestral

https://philippdubach.com/posts/forecasting-financial-markets-with-timestral/
5•7777777phil•38m ago•0 comments

The Experiment review – easily the most disturbing thing on British TV

https://www.theguardian.com/tv-and-radio/2026/oct/21/the-experiment-channel-four-tv-review-uk-naz...
3•nephihaha•39m ago•0 comments

Show HN: WhatsApp Bridge for those with their own VPS

https://github.com/vid-t/whatsapp-bridge
2•vid_t•40m ago•1 comments

Israeli central bank rejects Netanyahu's plan to use crypto to evade sanctions

https://www.ft.com/content/39e475e7-0392-4856-aaaf-5ab3e35b8215IsraelicentralbankrejectsBenjaminN...
5•JumpCrisscross•41m ago•0 comments

Interesting properties about the design of the UK 50p piece [pdf]

https://cdn.ima.org.uk/wp/wp-content/uploads/2022/03/Westward-Ho-Conway-Concorde-and-curiously-cu...
2•greengreengrass•42m ago•0 comments

US executives quit $25B gas venture over claims of secret Russian control

https://www.ft.com/content/e9cfbfbb-e65a-4303-aebb-20d59319ef1b
3•JumpCrisscross•42m ago•0 comments

How to Start a Startup Game

https://www.neuroplusgbrain.net/
1•FDX2018•44m ago•0 comments

Apple should fuck themselves with their "privacy"

5•itvision•48m ago•3 comments

The power of having less features

https://ratfactor.com/cards/no-feature
1•andsoitis•49m ago•0 comments

OpenAI says it will no longer train its AI models on the live internet

https://techcrunch.com/2026/10/23/openai-says-it-will-no-longer-train-its-ai-models-on-the-live-i...
2•colinprince•49m ago•0 comments

Bridgeplay: Windows Steam games on your Mac

https://bridgeplay.dev/
2•evo_9•51m ago•0 comments

Vaccine generates immune response to KRAS mutations in pancreatic cancer study

https://newsnetwork.mayoclinic.org/discussion/investigational-vaccine-generates-immune-response-t...
5•slater•53m ago•0 comments

Who Wrote This Byte: git blame for your build’s bytes

https://fzakaria.com/2026/10/23/who-wrote-this-byte
1•ingve•53m ago•0 comments

Who Owns the Roadmap? Six Ways to Build a Forward Deployed Engineering Business

https://mwvdveld.substack.com/p/who-owns-the-roadmap-six-ways-to
1•RenaissanceDad•54m ago•1 comments

Doctors' offices are charging patients 10 times more by claiming to be hospitals

https://www.washingtonpost.com/business/2026/10/24/doctors-offices-are-charging-patients-10-times...
3•bookofjoe•56m ago•1 comments