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!

Show HN: A simple Markdown note app with templates and PDF support

https://www.panto.app
1•peterwoodman•29s ago•0 comments

Scientists discover 53 powerful quasars shooting out jets

https://www.space.com/astronomy/black-holes/scientists-discover-53-powerful-quasars-shooting-out-...
1•Brajeshwar•48s ago•0 comments

Garmin InReach Mini 3 Plus

https://www.garmin.com/en-US/p/1756582/
1•carabiner•53s ago•0 comments

Discovering Underlying Analytic Structure in Standard Model Constants Using AI

https://www.mdpi.com/2571-712X/8/4/95
1•mzl•1m ago•0 comments

Lego's First Retail 3D Printed Element Marks Nine-Year Tech Leap

https://modernengineeringmarvels.com/2025/12/01/legos-first-retail-3d-printed-element-marks-nine-...
1•Brajeshwar•1m ago•0 comments

Sharks and Rays Gain Protections from Wildlife Trade

https://www.nytimes.com/2025/12/02/science/wildlife-trade-cites-sharks-rays.html
1•fleahunter•3m ago•0 comments

Chat Control 2.0 – EU Messages Scanning Despite Evidence of Privacy Risks

https://reclaimthenet.org/eu-chat-control-law-permanent-privacy-risks-error-rates-lack-evidence
2•pawurb•4m ago•0 comments

Relational AI vs. Constitutional AI – Which Approach Works?

1•buttersmoothAI•4m ago•0 comments

Innovation, Timing and Leadership Whether You're an Entrepreneur or Intrapreneur

https://talesfromtheskylounge.com/2025/10/22/tftsl-ep38-louis-gump/
1•mooreds•5m ago•0 comments

Why does ChatGPT think mammoths were alive in December?

https://ramblingafter.substack.com/p/why-does-chatgpt-think-mammoths-were
2•wasabi991011•5m ago•0 comments

Show HN: Ainisa – No-Code AI Agents for WhatsApp/Telegram (BYOK)

https://ainisa.com/
1•javid90•7m ago•0 comments

The race to create a perfect lie detector, and the dangers of succeeding

https://www.theguardian.com/technology/2019/sep/05/the-race-to-create-a-perfect-lie-detector-and-...
1•fanf2•8m ago•0 comments

Dells donate $6.25B to encourage families to claim 'Trump Accounts'

https://apnews.com/article/michael-dell-susan-trump-accounts-stock-market-poverty-inequality-7e26...
3•Y_Y•8m ago•0 comments

The era of AI slop cleanup has begun

https://www.reddit.com/r/ExperiencedDevs/s/3IFx9z462I
3•satvikpendem•9m ago•0 comments

Context Plumbing (Interconnected)

https://interconnected.org/home/2025/11/28/plumbing
2•gmays•10m ago•0 comments

Lost generation of news consumers – Survey shows how teens dislike news media

https://apnews.com/article/news-media-journalism-young-people-attitudes-f94bec50fc266d42d6ae369e7...
1•thm•10m ago•0 comments

An AI model trained on prison phone calls now looks for planned crimes

https://www.technologyreview.com/2025/12/01/1128591/an-ai-model-trained-on-prison-phone-calls-is-...
1•stopbulying•11m ago•2 comments

Russia's War Drones Still Using Starlink Despite Pentagon Crackdown

https://united24media.com/latest-news/russias-war-drones-still-using-starlink-despite-pentagon-cr...
3•chfritz•12m ago•0 comments

Star Wars: Darth Vader Learns the Truth about Luke Skywalker

https://www.youtube.com/watch?v=5zZP1uzp_YQ
1•keepamovin•12m ago•0 comments

The Anti-Planner

https://www.anti-planner.com
1•mooreds•14m ago•0 comments

Show HN: MPLP – Why Prompt Engineering Is over (Protocol Engineering Begins)

https://github.com/Coregentis/MPLP-Protocol
1•CoregentisAI•17m ago•1 comments

Reduction of residence time of air in the Arctic since the 1980s

https://essopenarchive.org/doi/full/10.22541/essoar.176460481.13361088/v1
1•bikenaga•19m ago•1 comments

How to get where you need to be when you don't know where you're going

https://www.ystrickler.com/how-to-get-where-you-need-to-be-when-you-dont-know-where-youre-going/
1•surprisetalk•20m ago•0 comments

What's Possible in Brain Circuit Mapping in 5 Years [video]

https://www.youtube.com/watch?v=Ss1twIeMrOY
2•surprisetalk•20m ago•0 comments

Detecting AV1-encoded videos with Python

https://alexwlchan.net/2025/detecting-av1-videos/
1•surprisetalk•21m ago•0 comments

Show HN: I wrote a book for software engineers, based on 11 years at Uber

https://rfonti.gumroad.com/l/playbook
3•ten-fold•23m ago•1 comments

macOS Tahoe Adoption Rate

https://old.reddit.com/r/MacOS/comments/1pc3pds/macos_tahoe_adoption_rate/
2•surprisetalk•24m ago•0 comments

Some models of reality are bolder than others

https://cjauvin.github.io/posts/metaphysical-boldness/
2•cjauvin•26m ago•0 comments

Show HN: I Built an Agentic AI That Creates Hosted File Converters

https://conversiontools.io/ai-converter-studio
1•drdmitry•27m ago•0 comments

Canonical Announces Ubuntu Pro for WSL

https://canonical.com/blog/canonical-announces-ubuntu-pro-for-wsl
3•2bluesc•27m ago•0 comments