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!

HarisLab: Free online tools for developers and students – fast, ad-free

https://harislab.tech/
1•Haris18•3m ago•0 comments

Show HN: SlimStorage – Self-hosted back end key/values, events store

https://github.com/kibotu/SlimStorage
1•Cloudgazer3d•4m ago•0 comments

Show HN: A zero-to-hero, spaced-repetition guide to WebGL2 and GLSL

https://github.com/GregStanton/webgl2-glsl-primer
1•HigherMathHelp•4m ago•1 comments

America's Betting Craze Has Spread to Its News Networks

https://www.newyorker.com/news/the-lede/americas-betting-craze-has-spread-to-its-news-networks
3•FinnLobsien•5m ago•1 comments

Photographing Professional Hockey with the Sigma 135mm f/1.4 Art

https://petapixel.com/2025/12/06/photographing-professional-hockey-with-the-sigma-135mm-f-1-4-art/
1•PaulHoule•5m ago•0 comments

Instacart reaches into your pocket and lops a third off your dollars

https://pluralistic.net/2025/12/11/nothing-personal/
3•hn_acker•6m ago•1 comments

Show HN: Caliper – iOS App Size Analyzer

https://github.com/kibotu/caliper
1•Cloudgazer3d•6m ago•0 comments

Make a free picture book service

https://c2story.com
1•jeyzolo•7m ago•1 comments

AI-Mediated Decisions and the Emerging Evidentiary Control Gap

https://zenodo.org/records/17914417
1•businessmate•10m ago•1 comments

Rescale your Hetzner VPS and save money

https://j11g.com/2025/12/12/rescale-your-hetzner-vps-and-save-money/
1•speckx•10m ago•0 comments

Senator endorses discredited book that claims chemical treats autism, cancer

https://www.propublica.org/article/ron-johnson-wisconsin-chlorine-dioxide-pierre-kory-endorsement
3•duxup•11m ago•0 comments

Robotaxis offer a path toward smarter and fairer urban mobility

https://bigthink.com/books/robotaxis-urban-mobility/
1•Brajeshwar•12m ago•1 comments

Researchers uncover clues to mysterious origin of famous Hjortspring boat

https://www.cnn.com/2025/12/11/science/hjortspring-plank-boat-origin
1•Brajeshwar•13m ago•0 comments

The Death of the Scientist

https://www.noemamag.com/the-death-of-the-scientist/
3•Brajeshwar•13m ago•0 comments

The FDA Rarely Forces Manufacturers to Recall Dangerous Medical Devices

https://www.propublica.org/article/fda-defective-device-recalls-gao-report
2•hn_acker•13m ago•1 comments

Secondary school maths showing that AI systems don't think

https://www.raspberrypi.org/blog/secondary-school-maths-showing-that-ai-systems-dont-think/
2•zdw•15m ago•0 comments

Our History – DigiPen

https://www.digipen.edu/about/our-history
1•debo_•17m ago•0 comments

China leads research in 90% of technologies

https://www.nature.com/articles/d41586-025-04048-7
5•SirHumphrey•18m ago•0 comments

One Hundred Thousand Billion Poems

https://www.bevrowe.info/Internet/Queneau/Queneau.html
1•nickwrb•18m ago•0 comments

Show HN: Bookmarker – Save links, organize your knowledge

https://www.bookmarker.cc/
1•kaizenb•18m ago•0 comments

Is Entertainment Discovery Fundamentally Broken?

2•nicola_alessi•20m ago•2 comments

Show HN: Help validate startup ideas with synthetic customer interviews

https://market-echo.vercel.app/
3•emarboeuf•23m ago•1 comments

The EPA Was Considering a Lead Cleanup in Omaha. Then Trump Shifted Guidance

https://www.propublica.org/article/omaha-nebraska-lead-superfund-epa-trump
4•hn_acker•24m ago•1 comments

Are we ready to age longer? Study says no

https://longevity.technology/news/are-we-ready-to-age-longer-study-says-no/
1•Bender•24m ago•0 comments

Show HN: AI system 60x faster than ChatGPT – built by combat vet with no degree

3•thebrokenway•24m ago•2 comments

The Windows 1.0 Reunion

https://www.geekwire.com/2025/inside-the-windows-1-0-reunion-how-a-scrappy-team-shipped-the-produ...
2•aldto•24m ago•0 comments

Non-surgical brain-computer interface startup lands new funding

https://longevity.technology/news/non-surgical-brain-computer-interface-startup-lands-new-funding/
1•Bender•24m ago•0 comments

This is How I Grieve

https://twitter.com/CCPISASSH0E/status/1999219953774322051
1•keepamovin•24m ago•1 comments

String Theory Inspires a Brilliant, Baffling New Math Proof

https://www.quantamagazine.org/string-theory-inspires-a-brilliant-baffling-new-math-proof-20251212/
2•ArmageddonIt•25m ago•0 comments

Moving from Lightroom to Apple Photos

https://www.gyford.com/phil/writing/2025/12/12/lightroom-apple-photos/
2•speckx•25m ago•0 comments