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•1y ago

Comments

zljdanceholic•1y 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!

Preserved Fish

https://en.wikipedia.org/wiki/Preserved_Fish
1•philip1209•2m ago•0 comments

US Military personnel are reportedly being targeted using location data

https://www.reuters.com/business/media-telecom/pentagon-says-us-military-personnel-are-reportedly...
2•geox•3m ago•0 comments

Canopy Guard – Free audit tool: 47 signals across SEO, AEO, GEO

https://www.thecanopyguard.com/
1•adammcclarin•3m ago•0 comments

Cloudflare's data platform and the AI agent on top of it

https://blog.cloudflare.com/our-unified-data-platform/
1•jgrahamc•4m ago•0 comments

SIE: Unified Inference Engine for Embeddings, Reranking, and Extraction

https://github.com/superlinked/sie
1•modinfo•5m ago•0 comments

Project Lightwell: Securing the open source supply chain

https://www.redhat.com/en/lightwell
2•my2c•6m ago•0 comments

Google Hates You

https://www.sfgate.com/tech/article/new-google-ai-22279112.php
4•speckx•9m ago•1 comments

Just Use Postgres for Durable Workflows

https://www.dbos.dev/blog/postgres-is-all-you-need-for-durable-execution
3•KraftyOne•9m ago•0 comments

Hank Green: How to Fix the Internet

https://time.com/article/2026/05/07/how-to-fix-the-internet/
2•cpeterso•10m ago•0 comments

Qwen vs. Proust: Injecting novels into a local model's prompt

https://robertkarl.net/blog/2026/May/28/qwen-vs-proust-injecting-entire-novels-into-a-local-model...
2•robertkarl•13m ago•0 comments

Show HN: AI IDE that converts websites and designs into code

https://velork.com
1•aliadelelroby•13m ago•1 comments

The A16Z FDE Fellowship

https://www.a16z.news/p/introducing-the-a16z-fde-fellowship
1•Zhenya•13m ago•0 comments

DNS: A Replacement for Finger

https://blawg.nochan.net/b/Internet-Crap/20260527-DNS-A-Replacement-For-Finger/
2•Bender•16m ago•0 comments

Kenosis – Quantize ONNX models without breaking kernel fusion

https://github.com/CoreEpoch/kenosis
1•CoreEpoch•17m ago•1 comments

What it's like to have your insulin pump die while you're on vacation

https://blog.lauramichet.com/what-its-like-to-have-the-machine-that-keeps-you-alive-die-while-you...
2•speckx•17m ago•0 comments

Build Personal Web Applications

https://blog.roastidio.us/posts/personal_web_application/
2•derekzhouzhen•17m ago•1 comments

Show HN: A CSP header scanner that explains what's unsafe

https://cspradar.com/tools/csp-scanner
1•Lasek•19m ago•0 comments

How do you catch AI agent regressions after prompt or model changes?

1•1taimoorkhan0•20m ago•0 comments

Show HN: LINQ CLI – an iMessage API you can use from the command line

https://linqapp.com/cli
7•patsully88•21m ago•2 comments

Show HN: Bootstrap a team of coding agents from a template, OSS

https://github.com/awebai/aweb-team-coord-worktrees
2•juanre•21m ago•0 comments

Show HN: I built an autonomous cofounder for my side projects

https://www.iterationmachine.com/
2•sarbak•22m ago•0 comments

Incorruptible: Why Good Companies Go Bad and How Great Companies Stay Great

https://www.incorruptible.co
2•tcumulus•22m ago•1 comments

PostHog training on end-users; Indie Alternatives?

3•mrr7337•22m ago•2 comments

libffi: A portable foreign-function interface library

https://github.com/libffi/libffi
3•tosh•23m ago•0 comments

Show HN: Agmsg – let Claude Code and Codex message each other (bash and SQLite)

https://github.com/fujibee/agmsg
3•fujibee•24m ago•0 comments

A CS researcher's unusually high h-index exposes an expansive citation network

https://retractionwatch.com/2026/05/27/h-index-citation-networks-retractions-special-issues/
3•leephillips•26m ago•1 comments

SecOpsium – Security validation for dev teams without a security engineer

https://secopsium.com
2•Wael_Matoussi•27m ago•0 comments

MAME 0.288

https://www.mamedev.org/?p=564
2•chungy•27m ago•0 comments

Our Military Is Built for the Wrong Century

https://www.nytimes.com/2026/05/28/opinion/military-iran-ukraine-russia-war-drones.html
4•Teever•29m ago•0 comments

About LLMs at Zig Days

https://kristoff.it/blog/llms-at-zig-days/
6•kristoff_it•31m ago•1 comments