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!

George R. R. Martin Is "Not in the Mood" to Finish the Winds of Winter

https://www.esquire.com/entertainment/books/a64917333/george-rr-martin-the-winds-of-winter-update...
1•randycupertino•1m ago•1 comments

Yeah: LLM-powered yes/no CLI tool

https://github.com/crawshaw/yeah
2•super_linear•3m ago•0 comments

Fun with CSF firmware (RK3588 GPU firmware)

https://icecream95.gitlab.io/fun-with-csf-firmware.html
1•M95D•5m ago•0 comments

Terminal-based telemetry plugin for Claude Code

https://hook-hero-web.vercel.app
1•happinesszhang•7m ago•1 comments

Manufacturing Legitimacy in the AI era ($8M fraud)

https://om.co/2026/03/21/manufacturing-legitimacy-in-the-ai-era/
1•rmason•7m ago•0 comments

Show HN: Signet-eval offers deterministic policy enforcement for Claude Code

https://jmcentire.github.io/signet-eval/
1•jmcentire2025•8m ago•0 comments

Show HN: Pi and Ghostty Running on Cloudflare Workers

https://github.com/qaml-ai/pi-worker/tree/main/examples/terminal-agent
1•vercantez•10m ago•0 comments

Acme device attestation, smallstep and pkcs11: attezt

https://linderud.dev/blog/acme-device-attestation-smallstep-and-pkcs11-attezt/
1•Foxboron•11m ago•0 comments

AI wants your soul. I just want your long link

https://tiras.pro
1•hp2090•20m ago•0 comments

Death of the IDE?

https://addyo.substack.com/p/death-of-the-ide
3•ingve•21m ago•0 comments

Halide co-founder is suing former partner for bringing source code to Apple

https://www.theverge.com/business/898687/halide-lawsuit-co-founder-apple
1•rorylawless•21m ago•0 comments

Show HN: Context.dev – One API to scrape, enrich, and understand the web

https://www.context.dev
2•ICodeSometimes•22m ago•0 comments

Aunt got scammed and sent $50k+

https://veritrue.ai/
1•cheroll•26m ago•1 comments

I made this app 'Mind Influence Lab' for experimenting consciousness hypothesis

1•Wickeddarko•26m ago•0 comments

To tilt Hungarian election, Russians proposed staging assassination attempt

https://www.washingtonpost.com/world/2026/03/21/hungary-election-interference-russia-orban/
4•vrganj•28m ago•0 comments

The Tajik Files: Part II, the Golden Asset

https://isitpropaganda.substack.com/p/the-tajik-files-part-ii-the-golden
1•jerrybmarchant•28m ago•0 comments

An Aural Companion for Decades, CBS News Radio Crackles to a Close

https://www.nytimes.com/2026/03/21/business/media/cbs-news-radio-appraisal.html
2•tintinnabula•29m ago•0 comments

World’s first self-balancing electric motorcycle rolls into production

https://newatlas.com/motorcycles/omoway-omo-x/
2•breve•30m ago•0 comments

Who's Writing the Spec?

https://dekodiert.de/en/articles/wer-spezifiziert
3•sdoering•32m ago•0 comments

7ms E2E graph-RAG retrieval Neo4j Golang rewrite. Reddit called perf "insane"

https://www.reddit.com/r/Rag/s/6O8vTeQufK
3•orneryd•35m ago•0 comments

Blitz – open-source App Store Connect client agents can control

https://github.com/blitzdotdev/blitz-mac
4•minjunes•36m ago•1 comments

DOGE goes nuclear: How Trump invited SV into America's nuclear power regulator

https://www.propublica.org/article/trump-nuclear-power-nrc-safety-doge-vought
8•epistasis•36m ago•0 comments

Show HN: An event loop for asyncio written in Rust

https://github.com/RustedBytes/rsloop
2•yehors•36m ago•0 comments

The Last Testaments of Richard II and Henry IV

https://www.historytoday.com/archive/feature/last-testaments-richard-ii-and-henry-iv
2•Petiver•36m ago•0 comments

WikiBonsai: A Legible Knowledge Layer

https://wibomd.substack.com/p/wikibonsai-a-legible-knowledge-layer
2•manunamz•38m ago•0 comments

Show HN: Simple Terminal Voice Recorder

1•chistev•38m ago•0 comments

ESP-IDF v6.0

https://developer.espressif.com/blog/2026/03/idf-v6-0-release/
2•qpe0•40m ago•0 comments

Geo-Strategy #8: The Iran Trap [video]

https://www.youtube.com/watch?v=7y_hbz6loEo
2•marvinborner•40m ago•0 comments

Show HN: Quarkus Extension for LittleHorse

https://github.com/littlehorse-enterprises/lh-quarkus
1•coltmcnealy•43m ago•0 comments

Show HN: The Two by Two Truth Diagram

https://kmrjohnson55.github.io/truth-diagram/
2•8crazyideas•46m ago•0 comments