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!

Mystery triggers earthquake sensors causing false alert (M5.9) in Bay Area

https://www.sfgate.com/bayarea/article/mysterious-trigger-earthquake-sensors-calif-21225679.php
1•boringg•18s ago•0 comments

React2Shell free hands-on lab: learn to exploit and detect

https://tryhackme.com/room/react2shellcve202555182
1•realtryhackme•1m ago•0 comments

A $20 drug in Europe requires a prescription and $800 in the U.S.

https://www.statnews.com/2025/10/31/why-miebo-costs-40-times-more-than-its-european-version/
1•geox•4m ago•0 comments

Leaving Intel

https://www.brendangregg.com/blog//2025-12-05/leaving-intel.html
2•speckx•4m ago•0 comments

Perpetual Futures

https://www.bitsaboutmoney.com/archive/perpetual-futures-explained/
1•sirodoht•8m ago•0 comments

Uncertainty Under Ignorance

https://github.com/eb4890/IntegrityUnderIgnorance/blob/main/README.md
1•rando77•15m ago•0 comments

Show HN: A Call of Duty event clipper and compilation maker using Python and AI

https://github.com/karimm-ai/NiceShot_AI
1•niceshot-ai•16m ago•0 comments

Predicting the Past: AI for Ancient Texts

https://predictingthepast.com/
1•tesserato•17m ago•0 comments

Ask HN: Bullied by Indian compliance automation platform

2•bitlad•18m ago•0 comments

Ask HN: How is you and your team are using AI?

1•IdontKnowRust•19m ago•0 comments

The Anatomy of a Triton Attention Kernel

https://arxiv.org/abs/2511.11581
2•PaulHoule•21m ago•0 comments

The missing standard library for multithreading in JavaScript

https://github.com/W4G1/multithreading
5•W4G1•22m ago•0 comments

Unity 6.3 LTS is now available

https://unity.com/blog/unity-6-3-lts-is-now-available
1•binarynate•22m ago•0 comments

Show HN: Vibe Code WP Plugins

https://steem.dev/
1•fasthightimess•23m ago•0 comments

GLP-1 Drugs, Psilocybin Mushrooms, and the Case for Sublingual Psilocin

https://psychedelicstoday.com/2025/08/05/glp-1-drugs-psilocybin-mushrooms-and-the-case-for-sublin...
1•toomuchtodo•24m ago•0 comments

Give Back to Blender – Fundraiser for 2026

https://www.blender.org/news/give-back-to-blender-fundraiser-for-2026/
1•throwaway2027•25m ago•0 comments

OpenAI must hand over 20M ChatGPT logs in New York Times lawsuit

https://www.windowscentral.com/artificial-intelligence/openai-chatgpt/judge-forces-openai-to-prod...
6•samspenc•28m ago•0 comments

Radicalized Anti-AI Activist Should Be a Wake Up Call for Doomer Rhetoric

https://www.techdirt.com/2025/12/05/radicalized-anti-ai-activist-should-be-a-wake-up-call-for-doo...
3•artninja1988•31m ago•0 comments

DRAM Price fixing scandal (2002)

https://en.wikipedia.org/wiki/DRAM_price_fixing_scandal
3•Flux159•34m ago•1 comments

I want a better build executor

https://jyn.dev/i-want-a-better-build-executor/
1•todsacerdoti•36m ago•0 comments

Building a Community Focused Data Layer for a State's Tech Ecosystem

https://michigan-pulse.com/
1•sieep•36m ago•0 comments

The truth about mass migration [video]

https://www.youtube.com/watch?v=QoFLHx-t-Yk
1•pinkmuffinere•37m ago•0 comments

The Path to Mojo 1.0

https://www.modular.com/blog/the-path-to-mojo-1-0
2•mdunnoconnor•39m ago•0 comments

Chess LLM Benchmark: Evaluating LLMs' ability to play chess

https://github.com/lightnesscaster/Chess-LLM-Benchmark
2•dwohnitmok•42m ago•0 comments

KDE Backups and Permissions

https://taonaw.com/2025/12/04/kde-backups-and-permissions.html
1•abnercoimbre•46m ago•0 comments

Launch a Docs MCP Server for Your Users in One Click

https://www.kapa.ai/blog/build-an-mcp-server-with-kapa-ai
1•mooreds•47m ago•0 comments

AI Agents Do Weird Things (and what to do about it)

https://www.dbos.dev/blog/ai-agents-do-weird-stuff-and-how-to-fix-it
1•KraftyOne•47m ago•0 comments

Show HN: Bible Note Journal – AI transcription and study tools for sermons (iOS)

https://www.biblenotejournal.com/
3•tfreebern2•48m ago•1 comments

Judge Signals Win for Software Freedom Conservancy in Vizio GPL Case

https://fossforce.com/2025/12/judge-signals-win-for-software-freedom-conservancy-in-vizio-gpl-case/
37•speckx•49m ago•2 comments

NVIDIA CUDA Tile programming model

https://developer.nvidia.com/blog/focus-on-your-algorithm-nvidia-cuda-tile-handles-the-hardware/
3•tanelpoder•49m ago•0 comments