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

Comments

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

Country Quiz

https://rupertlinacre.com/country_quiz/
1•RobinL•43s ago•0 comments

Never mind Band-Aids, Neanderthals had antiseptic birch tar

https://arstechnica.com/science/2026/03/never-mind-band-aids-neanderthals-had-antiseptic-birch-tar/
1•lentoutcry•45s ago•0 comments

Coinnect – Free open-source GPS for remittances (25 providers)

https://coinnect.bot
1•miguelvalenciav•1m ago•0 comments

E-Bike for the Mind

https://www.djmurphy.net/blog/e-bike-for-the-mind/
1•sollewitt•1m ago•0 comments

A man who cycled around the world for four years

https://www.theguardian.com/lifeandstyle/2026/feb/12/i-lived-the-life-ive-always-dreamed-of-the-m...
1•mykowebhn•1m ago•0 comments

What Does Your Plagiarism Percentage Mean?

https://plagiarismremover.ai/blog-post/what-is-acceptable-plagiarism-percentage
2•Plagicure•4m ago•0 comments

Show HN: NoBG – Edge AI background remover

https://nobg.radenlabs.app/
1•radenmuaz•5m ago•0 comments

Maximally Minimal View Types

https://smallcultfollowing.com/babysteps/blog/2026/03/21/view-types-max-min/
1•yurivish•6m ago•0 comments

The Mojtaba mystery: CIA searches for signs of Iran's new leader

https://www.axios.com/2026/03/21/mojtaba-khamenei-iran-leader-where
1•Brajeshwar•9m ago•0 comments

Optimal Elevator Placement

https://jslandy.com/elevators/
1•efavdb•10m ago•0 comments

Improving AI-generated tests using mutation testing

https://blog.senko.net/improving-ai-generated-tests-using-mutation-testing
1•senko•13m ago•0 comments

MAUI Is Coming to Linux

https://avaloniaui.net/blog/maui-avalonia-preview-1
1•DeathArrow•13m ago•0 comments

Oil prices to rise further on Monday as Mideast war escalates

https://www.reuters.com/business/energy/oil-prices-rise-further-monday-mideast-war-escalates-2026...
2•tartoran•13m ago•0 comments

A visual guide to DNA sequencing

https://press.asimov.com/articles/dna-sequencing
2•fanf2•14m ago•0 comments

Compiling C to a custom architecture: my experience

https://github.com/ChristosMaragkos/Sharpie
1•NeverBugFree•15m ago•1 comments

Are API providers serving us lobotomized models or just burning VC cash

https://twitter.com/CDerinbogaz/status/2035733613216436517
1•textcortex•17m ago•0 comments

Pinball in My House, 2026: Alice Goes to Wonderland

https://nicole.express/2026/nicole-in-blunderland.html
3•jandeboevrie•20m ago•0 comments

3Blue1Brown — This picture broke my brain [video]

https://www.youtube.com/watch?v=ldxFjLJ3rVY
1•bryan0•21m ago•0 comments

Show HN: BidWix – I built a sealed-bid tool where honesty is your best move

https://bidwix.com/
1•audiosampling•22m ago•1 comments

Two Studies in Compiler Optimisations

https://www.hmpcabral.com/2026/03/20/two-studies-in-compiler-optimisations/
1•hmpc•22m ago•0 comments

AI hallucinations haunt users more than job losses

https://www.ft.com/content/e074d3a9-7fd8-447d-ac0a-e0de756ac5c5
2•cs702•22m ago•0 comments

I'm rebuilding Markdown editing in VS Code (would love feedback)

1•kamransethi•22m ago•0 comments

Tinyspec – A spec for tinygrad (ML compiler)

https://github.com/tinygrad/tinyspec
1•ronfriedhaber•23m ago•0 comments

Atlassian Says It Had Right to Fire Engineer for Suggesting CEO Is 'Rich Jerk'

https://www.bloomberg.com/news/articles/2026-03-16/atlassian-defends-firing-worker-who-suggested-...
28•FiddlerClamp•23m ago•6 comments

TINA: Circuit simulator for analog, digital, MCU and RF circuits

https://www.tina.com/
1•teleforce•23m ago•0 comments

You Are Not Your Job

https://jry.io/writing/you-are-not-your-job/
4•jryio•26m ago•0 comments

A $25B Moonshot: Tesla Prepares to Launch Terafab in Four Days

https://www.forbes.com/sites/jonmarkman/2026/03/17/a-25-billion-moonshot-tesla-prepares-to-launch...
1•surprisetalk•29m ago•0 comments

Spyware once used by governments is now spreading to cybercriminals

https://www.axios.com/2026/03/21/iphone-spyware-is-everyones-problem-now
2•Brajeshwar•30m ago•0 comments

Common Package Specification

https://cps-org.github.io/cps/
1•kergonath•33m ago•0 comments

An AI trainer for difficult conversations and social skills

https://nerveless.app
1•bugigas•35m ago•0 comments