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•9mo ago

Comments

zljdanceholic•9mo 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!

Solidclaw Local credential broker and model proxy for OpenClaw

https://github.com/zerobitflip/solidclaw
1•vampiregrey•20s ago•1 comments

Show HN: Semantic search over Hacker News, built on pgvector

https://ask.rivestack.io/
1•stranger90•2m ago•0 comments

Show HN: Tlsctl – A CLI for inspecting and troubleshooting TLS

https://github.com/catay/tlsctl
1•_smertens_•3m ago•0 comments

Embedding Wren in Hare

https://drewdevault.com/2025/08/20/2025-08-20-Hare-and-Wren.html
1•tosh•5m ago•0 comments

Deception Analysis with Artificial Intelligence an Interdisciplinary Perspective

https://arxiv.org/abs/2406.05724
1•rramadass•5m ago•0 comments

Measuring ASI:AI's First Exam

https://12gramsofcarbon.com/p/measuring-asi-ais-first-exam
1•theahura•5m ago•0 comments

Alpine Linux does not make the news (2023)

https://drewdevault.com/2023/07/25/Alpine-does-not-make-news.html
1•tosh•5m ago•0 comments

Test

2•aegis-bot•6m ago•0 comments

A Poet with No Verse

https://akshay.fyi/posts/a-poet-with-no-verse/
2•akshay_s•7m ago•0 comments

Steal These Buttons

https://gtm.bio/buttons/
1•TechSquidTV•8m ago•0 comments

NASA Found a Secret Military Base Buried 100 Feet Deep in Greenland's Ice Shelf

https://www.popularmechanics.com/science/a70433682/greenland-ice-secret-base-nasa-found/
1•Betelbuddy•8m ago•0 comments

Show HN: Kwerty – A cyberpunk typing arena with combos and survival mode

https://kwerty.site
1•soexya•10m ago•0 comments

Lobsters Interview with Steveklabnik

https://alexalejandre.com/programming/steve-klabnik-interview/
2•birdculture•11m ago•0 comments

Poland bans camera-packing cars made in China from military bases

https://www.theregister.com/2026/02/19/poland_china_car_ban/
3•Bender•11m ago•0 comments

Dijkstra animation on real map data with raylib

https://github.com/uysalibov/gezgin
1•uysalibov•11m ago•0 comments

Apex-Agents

https://www.mercor.com/blog/introducing-apex-agents/
1•handfuloflight•12m ago•0 comments

Danish military evacuates US submariner who needed urgent medical care

https://www.militarytimes.com/news/your-military/2026/02/22/danish-military-evacuates-us-submarin...
1•Betelbuddy•12m ago•0 comments

Crims create fake remote management vendor that sells a RAT

https://www.theregister.com/2026/02/19/rmm_rat_trustconnect/
1•Bender•12m ago•0 comments

Top European Football Transfers Mapped

https://footballgeo.pythonanywhere.com/
1•orionbushshrimp•12m ago•0 comments

Did that bot just defame someone?

https://suthakamal.substack.com/p/did-that-bot-just-defame-someone
1•suthakamal•14m ago•1 comments

Amazon's vibe-coding tool Kiro reportedly vibed too hard and brought down AWS

https://www.theregister.com/2026/02/20/amazon_denies_kiro_agentic_ai_behind_outage/
2•Bender•14m ago•0 comments

Show HN: I built strictyamlx, a small Python extension to StrictYAML

https://pypi.org/project/strictyamlx/
1•notesbymuneeb•16m ago•0 comments

Structured Concurrency and Go

https://rednafi.com/go/structured-concurrency/
2•rednafi•16m ago•1 comments

Show HN: Drowse – Nix dynamic derivations made easy

https://github.com/figsoda/drowse
2•figsoda•16m ago•0 comments

Oops, You Wrote a Database (2025)

https://dx.tips/oops-database
2•tamnd•17m ago•0 comments

Putin Tried to Freeze Ukraine. Instead, He Sparked an Energy Revolution

https://www.motherjones.com/politics/2026/02/putin-tried-to-freeze-ukraine-instead-he-sparked-an-...
2•cdrnsf•17m ago•0 comments

Writing Against the Global Lobotomy

https://kerkour.com/writing-against-the-global-lobotomy
2•randomint64•18m ago•0 comments

Quarkus: Supersonic Subatomic Java

https://github.com/quarkusio/quarkus
1•tosh•20m ago•0 comments

Forge-Specific Git Repository Folders

https://nesbitt.io/2026/02/22/forge-specific-repository-folders.html
1•chmaynard•22m ago•0 comments

Unsung heroes: Flickr's URLs scheme

https://unsung.aresluna.org/unsung-heroes-flickrs-urls-scheme/
2•bookofjoe•22m ago•0 comments