frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

zljdanceholic•7mo 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!

Good Morning to Those at Work

1•sandworm101•51s ago•0 comments

Extreme Ironing

https://en.wikipedia.org/wiki/Extreme_ironing
1•m4khno•1m ago•0 comments

Reflections on building internal tools after AI changed the workflow

1•kinj28•5m ago•0 comments

Indian rocket launches record-breaking BlueBird 6 smartphone satellite to orbit

https://www.space.com/space-exploration/launches-spacecraft/indian-rocket-launch-bluebird-6-satel...
1•saikatsg•9m ago•0 comments

Download Python Today

https://files.catbox.moe/taze7f.jpg
1•lihaciudaniel2•12m ago•0 comments

Contributing to Debezium: Fixing Logical Replication at Scale

https://engineering.zalando.com/posts/2025/12/contributing-to-debezium.html
1•saikatsg•13m ago•0 comments

Best practices for long-run LED strip installs (20–50M) to avoid flicker?

1•emmasuntech•16m ago•0 comments

Gluetun v3.41.0 Release – The Ranting Section

https://www.youtube.com/watch?v=SSkGpys40ck
1•FeelingGood•17m ago•0 comments

Prompts.chat: the social platform for AI prompts

https://prompts.chat
1•fka•20m ago•0 comments

Cursor UI is built with SolidJS

https://old.reddit.com/r/solidjs/comments/1puoifc/cursor_ui_is_built_with_solidjs/
2•itayadler•20m ago•0 comments

Show HN: FailCore – Execution-Time Safety Runtime for AI Agents

https://github.com/Zi-Ling/failcore
1•IntelliAvatar•22m ago•0 comments

Show HN: Awkward 90s Christmas Studio Portrait

https://picxstudio.com/templates/298-awkward-90s-christmas-studio-portrait
1•Yash16•24m ago•0 comments

Show HN: Measuring the "Mom-induced" insulin resistance this Christmas

https://www.longevity-tools.com/glucose-metabolism-interpreter
1•zsolt224•25m ago•0 comments

Show HN: Browser Based IDE for Love2D

https://github.com/Charmunks/loveweb
4•Charmunk•25m ago•0 comments

Christmas and Kim Jong-suk's birthday

https://www.cartographerstale.com/p/christmas-and-kim-jong-suks-birthday
1•Milhaud•26m ago•0 comments

Star Wars Vader vs. Kenobi, Reimagined

https://www.youtube.com/watch?v=to2SMng4u1k
2•fanf2•45m ago•0 comments

Why 'The Global Market' Is an Irresponsible Phrase

https://oswarld.com/eng/insight/251117_Why-the-global-market-Is-an-Irresponsible-Phrase
4•haebom•46m ago•0 comments

Show HN: Pepterm – view protein structures in your terminal (Rust)

https://crates.io/crates/pepterm
1•ss-13•46m ago•0 comments

Ruby Turns 30 Celebrating the Anniversary with the Release of Ruby 4.0

https://blog.jetbrains.com/ruby/2025/12/ruby-turns-30-a-celebration-of-code-community-and-creativ...
2•pogrebnoy•47m ago•0 comments

Sitemap Valid but "Couldn't Fetch" in GSC

1•rb_sys•50m ago•0 comments

In Search of Scrooge's Door Knocker

https://londonist.com/london/christmas-in-london/where-is-scrooges-door-knocker
2•zeristor•55m ago•0 comments

Ask HN: Did any projects succeed with crowdfunding?

2•asim•55m ago•0 comments

The Measure of All Things – Richard Chwedyk (2001)

https://archive.org/details/Fantasy_Science_Fiction_v100n01_2001-01_N591_DaisyChainsaw
1•gudzpoz•56m ago•0 comments

Anthropic's Christmas Gift to Subscribers

https://support.claude.com/en/articles/13163666-holiday-2025-usage-promotion
3•gverrilla•1h ago•3 comments

Claude Code changed my life

https://spader.zone/xmas/
4•dboon•1h ago•1 comments

Quantum Error Correction Goes FOOM

https://algassert.com/post/2503
2•EvgeniyZh•1h ago•0 comments

CYC: A large-scale investment in knowledge infrastructure (1995) [pdf]

https://dl.acm.org/doi/pdf/10.1145/219717.219745
1•swatson741•1h ago•0 comments

Show HN: Free CLI for cryptographic receipts using Ethereum signatures

https://github.com/805-ai/receipt-cli
1•amann805•1h ago•0 comments

The CRA's Impetus to Openness

https://meshedinsights.com/2025/11/27/cra-openly-shared/
1•Tomte•1h ago•0 comments

Groq and Nvidia Enter Non-Exclusive Inference Technology Licensing Agreement

https://groq.com/newsroom/groq-and-nvidia-enter-non-exclusive-inference-technology-licensing-agre...
4•qwertox•1h ago•1 comments