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!

AI Authentication and Authorization

https://fusionauth.io/articles/ai/ai-authentication-authorization
1•mooreds•59s ago•0 comments

Show HN: Understand GitHub Trending with AI

https://github.com/HarlonWang/TrendingAI
1•81813780•1m ago•0 comments

PaywallPro

https://www.paywallpro.app/
1•candyyao•3m ago•0 comments

Ed Gutenburg: The First Autonomous Investigative Reporter

https://alec.is/posts/worlds-first-fully-autonomous-investigative-reporter-ai-agent/
1•arm32•3m ago•1 comments

Show HN: Giggles – A batteries-included React framework for TUIs

https://github.com/zion-off/giggles
2•ajz317•6m ago•0 comments

Curl documentation bans the word 'very'

https://mastodon.social/@bagder/116161776616642292
2•keyboardJones•6m ago•0 comments

Building an Open-Source Verilog Simulator with AI: 580K Lines in 43 Days

https://normalcomputing.com/blog/building-an-open-source-verilog-simulator-with-ai-580k-lines-in-...
1•matt_d•7m ago•0 comments

Iran's Cryptic Shortwave Messages [video]

https://www.youtube.com/watch?v=ErmbTpxAM7Q
1•bane•8m ago•0 comments

Entry-level PC market to 'disappear' by 2028 – memory prices strain PC market

https://www.tomshardware.com/tech-industry/rising-memory-prices-pile-more-strain-on-consumer-pc-m...
3•ivewonyoung•10m ago•0 comments

How to Recover Your Stolen Crypto After a Scam–Guidance from Intelligence Wizard

1•Petersrobert•10m ago•0 comments

Show HN: Autonoma – Python secret fixer that refuses unsafe fixes

https://github.com/VihaanInnovations/autonoma
1•v_CodeSentinal•11m ago•0 comments

The Excommunicated Devs Making Games with AI

https://www.tyleo.com/blog/the-excommunicated-devs-making-games-with-ai
3•tyleo•16m ago•0 comments

Ask HN: What Online LLM / Chat do you use?

3•ddxv•20m ago•0 comments

CKAN – an open-source DMS (data management system)

https://ckan.org/
3•gjvc•24m ago•1 comments

My (Hypothetical) SRECon26 Keynote

https://charity.wtf/2026/03/03/my-hypothetical-srecon26-keynote-xpost/
2•donutshop•26m ago•0 comments

Prompt Vault – Save and organize your AI prompts ($9 Pro)

https://prompt-vault-sage.vercel.app
2•VyperandUltron•27m ago•0 comments

Show HN: An Auditable Decision Engine for AI Systems

https://maelstrom.ghostlogic.tech
2•adamscottthomas•29m ago•0 comments

How to Recover Your Stolen Crypto After a Scam–Guidance from Intelligence Wizard

2•Petersrobert•33m ago•0 comments

Do AI Agents Make Money in 2026? Or Is It Just Mac Minis and Vibes?

https://www.siliconsnark.com/do-ai-agents-actually-make-money-in-2026-or-is-it-just-mac-minis-and...
4•SaaSasaurus•33m ago•0 comments

Underground Salt Caverns Are Preserving Our History

https://eos.org/features/salt-of-the-earth-vast-underground-salt-caverns-are-preserving-our-histo...
2•sohkamyung•33m ago•0 comments

One-Stop Wan AI Video and Image Generator Platform

https://towan.net/
2•seagnson•34m ago•1 comments

Show HN: Ask Mob

https://mob.army/
2•cc-d•42m ago•0 comments

Show HN: A Kotlin Multiplatform app that works on watch, CLI, browser extension

https://arnav.tech/architecting-twofac-my-journey-into-kotlin-multiplatform-module-structure
2•championswimmer•42m ago•0 comments

NY bill would prohibit AI chatbots from giving legal advice

https://twitter.com/RobertFreundLaw/status/2028550955386704285
5•timr•44m ago•0 comments

Show HN: Generate random, valid US residential addresses for testing

https://meiguodz.com
3•roookiecookie•46m ago•0 comments

Unbound Video AI is the most unrestricted AI video tool I've tried in 2026

https://unbound.video
3•gabrieln•47m ago•1 comments

A timeline of cyber attacks:home users, contractors, and SMBs are now targets

3•EricAUS•50m ago•0 comments

Iran unleashes Shahed drones aimed at targets across Middle East

https://www.theguardian.com/world/2026/mar/02/iran-unleashes-hundreds-of-drones-aimed-at-targets-...
15•0in•51m ago•6 comments

Shutting down, open sourced private AI document server

https://github.com/queryhat/super-hat
4•chhetri978•52m ago•4 comments

Zuckerberg's internal emails rendered as Facebook Messenger

https://zuckmail.vercel.app/
45•not-chatgpt•54m ago•5 comments