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

Comments

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

Robotic Land Drone holds positions in Ukraine frontline for 45 days

https://www.youtube.com/watch?v=JMTSH1U44cw
1•lifeisstillgood•4m ago•0 comments

The Missing Piece of AI Discourse Is Trust

https://philipptanlak.com/the-missing-piece-of-ai-discourse-is-trust/
1•philippta•5m ago•0 comments

Modula-2

https://en.wikipedia.org/wiki/Modula-2
1•tosh•8m ago•0 comments

US Customs destroy a rare floppy disk containing demo version of Tsukihime

https://www.timeextension.com/news/2026/02/literally-crying-right-now-50-copies-of-this-adult-onl...
1•FMecha•9m ago•0 comments

ErsatzTV Has Been Archived

https://github.com/ErsatzTV/ErsatzTV/issues/2839
1•kassner•9m ago•0 comments

The Ml.energy Leaderboard

https://ml.energy/leaderboard/
1•kgolubic•11m ago•0 comments

Jeffrey Epstein saw promise in Bitcoin – and its far-right supporters

https://www.theverge.com/tech/885252/jeffrey-epstein-bitcoin-cryptocurrency-connections
1•robtherobber•14m ago•0 comments

Surface-Stable Fractal Dithering

https://runevision.com/tech/dither3d/
1•fanf2•15m ago•0 comments

Show HN: I Turned My CV into a Space Invaders Game (Rust and WASM)

https://breezko.dev
1•breezk0•16m ago•0 comments

Show HN: JobSeek Expat – a CLI tool to scrape English speaking jobs on LinkedIn

https://github.com/electricalgorithm/jobseek-expat
2•gyokhan•20m ago•0 comments

Accuracy vs. Speed in Local LLMs: Finding Your Sweet Spot

https://grigio.org/accuracy-vs-speed-in-local-llms-finding-your-sweet-spot/
1•grigio•22m ago•0 comments

Silent March (2021)

https://tobiaskucera.art/en/tichy-brezen/
1•theobias•23m ago•0 comments

Nano Banana 2 AI Image Generator – Pro Quality, Flash Speed

https://veevid.ai/nano-banana-2
1•jacksteven•23m ago•0 comments

Czinger 21C review: flat out in America's £1.6M, 3D-printed hypercar

https://www.topgear.com/car-reviews/czinger/21c/first-drive
1•teleforce•25m ago•0 comments

Ask HN: Is Electronic Data Interchange still used in e-commerce?

1•shivajikobardan•26m ago•1 comments

Orbit – Diagnose why your robot policy fails and what data to collect next

https://github.com/Rahillasne/Orbit
1•rahillasne•27m ago•1 comments

Iran is in near-total internet blackout

https://mastodon.social/@netblocks/116147264437940657
5•us321•29m ago•0 comments

Ask HN: Is This Start of the End?

3•FrankSaaSDev•30m ago•0 comments

Show HN: Brandomica – Check if a brand name is safe to launch 1n one search

https://www.brandomica.com
1•brandomica•30m ago•0 comments

Django-Bolt: High-Performance Typed API Framework for Django

https://github.com/dj-bolt/django-bolt
1•0x1997•33m ago•0 comments

Show HN: A seedable stream shuffler modeled as a roundabout network (Python)

https://pypi.org/project/roundamix/
1•velocitatem•36m ago•0 comments

The Generative AI Policy Landscape in Open Source

https://redmonk.com/kholterhoff/2026/02/26/generative-ai-policy-landscape-in-open-source/
1•nkko•37m ago•0 comments

Daily maths game taking over Wordle

https://the67numbergame.github.io/
1•_snory•41m ago•0 comments

Israel Is Attacking Iran

8•alsufinow•41m ago•0 comments

Show HN: A 24kb standalone visual JSON editor for non-technical users

https://github.com/celerex/json-editor
2•its-a-new-world•42m ago•1 comments

We Audited the Security of 7 Open-Source AI Agents – Here Is What We Found

https://twitter.com/grithai/status/2027410244352028683
1•edf13•42m ago•0 comments

The Man Who Sold The World

https://www.youtube.com/watch?v=u3MX-rUtS6M&list=RDu3MX-rUtS6M
1•helloplanets•43m ago•0 comments

Yes, and

https://htmx.org/essays/yes-and/
1•todsacerdoti•45m ago•0 comments

The Self-Driving Codebase

https://background-agents.com/
1•vinhnx•45m ago•0 comments

Scrapling: An adaptive web scraping framework that handles everything

https://github.com/D4Vinci/Scrapling
1•Paddyz•52m ago•0 comments