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!

I created a World Model that can run locally and hallucinates GTA5

https://www.reddit.com/r/lucidmlx/comments/1xtqryo/testing_lucidml_latest_model_running_a_black_car/
1•abhisoflucidml•18s ago•0 comments

IBM to End Immigration Sponsorship for Roles in Biggest Unit

https://www.bloomberg.com/news/articles/2026-11-10/ibm-to-end-immigration-sponsorship-for-roles-i...
1•TMWNN•37s ago•0 comments

A Metabolic Spark Could Have Jump-Started Life

https://www.quantamagazine.org/what-is-the-metabolism-first-theory-for-the-origin-of-life-20261111/
1•dverlaeckt80•46s ago•0 comments

Writing a Siggraph Paper from Scratch

https://alexandergoslin.me/writing-a-siggraph-paper-from-scratch/
1•dverlaeckt80•1m ago•0 comments

I think differently, and I think AI might help

https://tinamrak.com/blog/i-think-differently-and-i-think-ai-might-help/
1•f13th•1m ago•0 comments

GUIs Beat TUIs

https://nicksmind.substack.com/p/guis-beat-tuis
1•rocoders•2m ago•0 comments

Show HN: Cryptosql (because you assume the data will leak)

https://www.bennolan.com/p/220
1•captainbenises•3m ago•0 comments

Cycles, Bubbles, and the Golden Age of Consumer Surplus

https://www.notboring.co/p/of-miracles-and-moats
1•thedreammachine•3m ago•0 comments

Agent World

https://joinagentworld.com/
2•kmansm27•5m ago•0 comments

TOTP: Time-Based One-Time Password Algorithm

https://www.rfc-editor.org/info/rfc6238/
2•mooreds•6m ago•0 comments

Is Everyone Getting Stupid? – Nyeki's Blog

https://nekidev.github.io/blog/is-everyone-getting-stupid
1•nyeki•6m ago•0 comments

The Wish Economy: Inside Starlight, the Bitcoin-Native AI App Store

https://starlight-ai.freemyip.com/sandbox/5de49786ace165eb6b29ca5ea3305b2c94be82784b8019010120ab4...
1•macroadster•6m ago•0 comments

Why your cold emails aren't paying off (ft. Marshall Kosloff) [audio]

https://podcasts.apple.com/us/podcast/why-your-cold-emails-arent-paying-off-ft-marshall-kosloff/i...
1•mooreds•6m ago•0 comments

The EU's Digital Fairness Act may change game monetization – not just in Europe

https://www.eurogamer.net/eu-digital-fairness-act-what-is-it-video-games
2•MBCook•6m ago•0 comments

Zerojobs.top

https://zerojobs.top/
1•luizb•7m ago•1 comments

Nvidia shares down as Huang affair scandal deepens [audio]

https://shows.acast.com/unhedged/episodes/nvidia-shares-down-as-huang-affair-scandal-deepens
1•mooreds•7m ago•0 comments

Pipeline Parallelism is here: 8x faster than Apple's WWDC26 fine-tuning

https://nuketorch.ai/blog/pipeline-parallelism-is-here/
1•klay_moon•9m ago•0 comments

Discourse (forums) sees itself well positioned for the AI search era (vs Reddit)

https://blog.discourse.org/2026/11/reddit-vs-discourse-a-tale-of-two-incentive-models/
1•Scaled•10m ago•1 comments

Smartphone Camera Could Get a Big Upgrade with This Tech

https://www.wired.com/story/your-smartphone-camera-could-get-a-big-upgrade-with-this-tech/
1•anfractuosity•11m ago•0 comments

IBM Quantum Nighthawk Demonstrates New Levels of Speed and Quality

https://newsroom.ibm.com/2026-11-11-ibm-quantum-nighthawk-demonstrates-new-levels-of-speed-and-qu...
2•gok•11m ago•0 comments

Nvidia releases Alpamayo 2 edge weights (local AV reasoning)

https://developer.nvidia.com/blog/running-av-reasoning-models-within-onboard-compute-and-latency-...
1•sshah03•12m ago•0 comments

Linux Load Averages: Solving the Mystery (2017)

https://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
1•germanrabbit•13m ago•0 comments

The answer to AI is engineering

https://ghuntley.com/answer/
2•ghuntley•14m ago•0 comments

The Utah Teapot

https://graphics.cs.utah.edu/teapot/
1•cobbal•14m ago•0 comments

Who Is It, Eliza?

https://syntheticauth.ai/posts/who-is-it-eliza
1•zerolayers•15m ago•0 comments

Agents Everywhere: The Flow of Information

https://negativestarinnovators.com/blog/agents-everywhere-the-flow-of-information
1•pizzly•16m ago•0 comments

AliExpress 11.11 sales are mostly bogus

https://minipcs.zip/aliexpress-11-11-pricing-tricks/
3•yathern•16m ago•1 comments

Artificial Life Simulator ALIEN 5.0-beta

https://github.com/chrxh/alien
1•chrxh•21m ago•1 comments

The GNOME Project has a backlog for Code of Conduct violations

https://discourse.gnome.org/t/update-on-code-of-conduct-actions/39994/11
2•lakeviewterrace•22m ago•0 comments

As gene editing for deafness advances, Gallaudet University speaks out

https://www.washingtonpost.com/dc-md-va/2026/11/11/gene-editing-deafness-advances-gallaudet-unive...
1•bookofjoe•24m ago•1 comments