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!

Computing with Time Travel (2015)

https://www.sciencedaily.com/releases/2015/12/151209091224.htm
1•bryanrasmussen•46s ago•0 comments

How hard is it to check for whitespace?

https://serce.me/posts/2026-10-30-how-hard-is-it-to-check-for-whitespace
1•SerCe•53s ago•0 comments

QwenPU: An LLM running inside another LLM's weights

https://huggingface.co/divagr1925/QwenPU
1•joshcsimmons•5m ago•0 comments

Fruth – A semantic state inference engine for AI

https://github.com/fl0ri0/fruth
1•fl0ri0•6m ago•1 comments

Student

1•nagdista•11m ago•0 comments

Avoid Public Functions Calling Other Public Functions

https://matklad.github.io/2026/10/29/pub-calls-pub.html
1•signa11•15m ago•0 comments

A tiny Pacific country rolls out universal basic income

https://www.economist.com/asia/2026/10/29/a-tiny-pacific-country-rolls-out-universal-basic-income
3•motionlessveloc•15m ago•1 comments

Introducing Kwi, a new KDE terminal emulator

https://blogs.kde.org/2026/11/01/introducing-kwi/
1•signa11•16m ago•0 comments

Preventing the Collapse of Civilization (2019) [video]

https://www.youtube.com/watch?v=ZSRHeXYDLko
1•ivanjermakov•19m ago•0 comments

Can my fine-tuned model pass Pangram?

1•meyerdav•20m ago•0 comments

Show HN: HackerTube by Andrej Karpathy

https://hackertube.org/
1•paaloeye•20m ago•0 comments

Securing Internet-Critical Software: How We Could Have Backdoored Bash

https://www.hacktron.ai/blog/hacking-gnu-savannah
2•kmm•26m ago•0 comments

Show HN: Rust crawler for SEO and content audits, with optional LLM review

https://crawler.siteone.io/
1•janreges•28m ago•0 comments

Magic vs. Wonder: memories of a distant future

1•nicfio•29m ago•0 comments

What factors shapes the future of UX learning?

https://docs.google.com/forms/d/e/1FAIpQLSfUrRL6qYGP_PlgqNdXRX_9dR92umWQAuetaGru1j02YG28rA/viewform
1•uxrabhi•31m ago•0 comments

Show HN: Safely connect GrokBot to your PC/VM: chosen folders and Claude/Codex

https://github.com/janreges/safe-grokbot-bridge
1•janreges•33m ago•0 comments

GTM Engineer Salary in 2026

https://gtmjobs.xyz/gtm-engineer-salary
2•meetvolley•37m ago•0 comments

Large-scale battery storage systems check their charge every 60 seconds, causing

https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in...
2•fanf2•38m ago•0 comments

Photographer captures images of hundreds of satellites

https://www.stuff.co.nz/culture/361053243/kiwi-photographer-captures-images-hundreds-satellites-n...
3•hermitcrab•43m ago•0 comments

You can't create a different life while continuing to make the same choices

https://randomfuckingknowledge.substack.com/p/the-four-choices-that-change-how
1•TheCreativePrin•43m ago•0 comments

Europe's Fossil-Fuel Problem Has an Electric Solution

https://www.bloomberg.com/news/newsletters/2026-10-31/europe-s-fossil-fuel-problem-has-an-electri...
2•simonebrunozzi•45m ago•0 comments

North Korea Responsible for $6B+ Binance Attack

https://www.fbi.gov/investigate/cyber/alerts/2026/north-korea-responsible-for-6-billion-binance-a...
2•Wasserpuncher•50m ago•0 comments

IEEE Wipes Out 1,417 Papers over Sold Authorship

https://www.nature.com/articles/d41586-026-03455-8
2•haebom•50m ago•0 comments

DeepSeek Harness Superagent Prototype

https://github.com/deepseek-ai/dsh-superagent-prototype
2•orion_•51m ago•0 comments

Show HN: Portr – Expose local HTTP, TCP or WS connections to the public internet

https://github.com/amalshaji/portr
1•pixxxel•54m ago•0 comments

Pale Blue Dot (Book)

https://en.wikipedia.org/wiki/Pale_Blue_Dot_(book)
1•chistev•54m ago•1 comments

Towards Digital Garden

https://jaydip.me/notes
1•jdsane•57m ago•0 comments

Shops looted as German cost of living protests turn violent

https://www.bbc.com/news/articles/cqj34gnd3n30o
1•Betelbuddy•58m ago•0 comments

FreeGent: Free Agentic AI for Everyone

https://freegent.ai
2•anttttti•1h ago•0 comments

How to Unleash GStreamer for Low Latency Streaming with Red5?

https://www.red5.net/blog/gstreamer-for-low-latency-streaming/
1•mondainx•1h ago•0 comments