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: Made a million Kakuro puzzles and a web app

https://halifax-kakuro.com/puzzle/
1•selinger•5m ago•0 comments

Show HN: laiaric-open – Fast, open-weight text-to-JSON model

https://github.com/raycollabs/laiaric
1•xeditai•6m ago•0 comments

Openstep-QEMU

https://github.com/ostrich/openstep-qemu
1•wmlive•6m ago•1 comments

The obsessive, desperate people who

http://www.spacewhales.com
1•smolder•12m ago•1 comments

Cory Doctorow: Stop hitting yourself

https://pluralistic.net/2026/11/28/power-player/
1•catab•12m ago•0 comments

Fast State-Machine Replication for Byzantine Systems and Blockchain

https://escholarship.org/uc/item/1mr7w8rs
2•otrack•22m ago•0 comments

Frecency

https://en.wikipedia.org/wiki/Frecency
1•_doctor_love•27m ago•0 comments

What time is it in Assembly Space? A comment on Cronin and Walker

https://arxiv.org/abs/2611.31339
1•titusblair•27m ago•0 comments

The Switchboard Game: a real Western Electric 551 switchboard wired to a game

https://github.com/marksidell/switchboard-game
2•titusblair•27m ago•0 comments

Polynomials and Planets

https://www.johndcook.com/blog/2026/11/25/polynomials-and-planets/
1•titusblair•28m ago•0 comments

The Underestimated Foundation of LLMs

https://medium.com/@gen.tang86/the-underestimated-foundation-of-llms-rethinking-tokenizers-81d6e5...
1•tgbaggio•29m ago•0 comments

Training Data to Training Experiences

https://github.com/AMallur/WorldFoundry
1•amallur•30m ago•0 comments

Airgap MCP on Mcprush

https://mcprush.com/dhruvil-codes/airgap-mcp
1•bydhruvil•31m ago•0 comments

Guitar Hero but for Piano

https://musictokeys.com/
2•mw67•32m ago•0 comments

Browser Security Research [pdf]

https://github.com/a-kemeklis/browser-fuzzing-2024/blob/main/researchpaper.pdf
1•a-kemeklis•35m ago•1 comments

MiniTorch: A DIY teaching library for machine learning engineers

https://minitorch.github.io/
1•auraham•44m ago•0 comments

Finish engineering – the half AI doesn't make cheap

https://roderick.dev/writing/2026-11-28-finish-engineering/
3•tomrod•55m ago•0 comments

Daisy – Rewrites Windows programs, old 32-bit Mac apps into 64-bit Mac apps

https://github.com/nullmoth/daisy
3•crummy•57m ago•1 comments

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf]

http://www.johngustafson.net/pdfs/BeatingFloatingPoint.pdf
16•xenophonf•58m ago•2 comments

I came to write THAT paper with Leslie Lamport

https://lawrencecpaulson.github.io/2026/08/21/Lamport.html
2•todsacerdoti•1h ago•0 comments

Schneier: Recent outages have economic causes

https://www.schneier.com/blog/archives/2026/11/recent-outages-have-economic-causes.html
13•Skyfall106•1h ago•1 comments

The day open source died: a story about Minecraft, Bukkit, and the GPL

https://jwheel.org/blog/2020/04/open-source-minecraft-bukkit-gpl/
1•Brajeshwar•1h ago•1 comments

James Russell, the physicist behind CD and DVD technology, has died at 95

https://www.techspot.com/news/114737-james-russell-whose-inventions-laid-groundwork-cds-dvds.html
3•Brajeshwar•1h ago•0 comments

I mapped all 4 places to put enterprise context in Databricks Genie

https://pub.towardsai.net/giving-your-ai-coworker-enterprise-context-with-databricks-genie-a3bc81...
2•paikraypraneeth•1h ago•0 comments

Show HN: Appstore for your AI (that also checks for malware)

https://calyban.com/
2•calyban•1h ago•1 comments

DeepMind chief says recent leap in AI capabilities is from self-improvement

https://www.ft.com/content/f39caa56-dcac-4a01-83d2-64979e5709b1
7•msall•1h ago•0 comments

Feds shut $6B Indiana lender in biggest bank failure in over two years

https://www.cnn.com/2026/11/27/business/united-fidelity-bank-fdic
9•panny•1h ago•0 comments

AAA Culture

https://olshansky.info/tix/2026-11-19-triple-a-culture
2•Olshansky•1h ago•0 comments

Show HN: next-fast-i18n - 0-dep i18n for Next.js

https://github.com/Illyism/next-fast-i18n
1•illyism•1h ago•0 comments

Linger – Open-source, local, personal agent

https://github.com/simplexai-labs/linger
2•cobychapple•1h ago•0 comments