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!

How long do electric vehicle batteries last?

https://www.npr.org/2026/03/02/nx-s1-5706658/electric-vehicle-battery-lifespan
1•tzs•41s ago•0 comments

A Modular Computer That's Bringing Back Analog

https://www.hackster.io/news/a-modular-computer-that-s-bringing-back-analog-e02f07df7bf6
1•todsacerdoti•4m ago•0 comments

US blindsides states with surprise settlement in Live Nation/Ticketmaster trial

https://arstechnica.com/tech-policy/2026/03/us-blindsides-states-with-surprise-settlement-in-live...
3•voxadam•4m ago•0 comments

FBI is investigating breach that may have hit its wiretapping tools

https://www.theregister.com/2026/03/08/fbi_investigates_wiretap_system_breach/
1•Bender•5m ago•0 comments

Show HN: Git Worktrees Simplified

https://github.com/backnotprop/worktree-aliases/tree/main
1•ramoz•6m ago•0 comments

Kettle, open source tooling for TEE-attested builds

https://github.com/lunal-dev/kettle
3•indirect•7m ago•1 comments

SDL_mixer 3.2.0 (stable) is out

https://github.com/libsdl-org/SDL_mixer/releases/tag/release-3.2.0
1•linkdd•9m ago•0 comments

Making Prompt Injection Harder Against AI Coding Agents

https://medium.com/@cbchhaya/making-prompt-injection-harder-against-ai-coding-agents-f4719c083a5c
1•dpapathanasiou•9m ago•0 comments

Ask HN: General API for accessing bank transactions?

1•aykhm•10m ago•0 comments

What it means to be a 10x engineer

https://medium.com/@orzel.jarek/what-it-means-to-be-a-10x-engineer-0f5c4db543a6
2•orzeljarek•12m ago•0 comments

RPPG-Enabled Contactless Pulse Rate Monitoring Software in CVD Patients

https://www.mdpi.com/2306-5354/13/2/246
1•PaulHoule•13m ago•0 comments

Codex 101 Guide from a Recovering PM

https://www.forwardeployed.com/post/codex-best-practices
1•yummyelephant8•13m ago•1 comments

Paying without Google: New consortium wants to remove custom ROM hurdles

https://www.heise.de/en/news/Paying-without-Google-New-consortium-wants-to-remove-custom-ROM-hurd...
1•therealmarv•13m ago•0 comments

Xygeni/xygeni-action GitHub Action is compromised – poisoned tag is still live

https://www.stepsecurity.io/blog/xygeni-action-compromised-c2-reverse-shell-backdoor-injected-via...
1•varunsharma07•15m ago•0 comments

New AI Note Tool

1•xlisp•15m ago•1 comments

Shipping Grayscale Photos at Small Scale

https://underjord.io/shipping-grayscale-photos-at-small-scale.html
1•zdw•18m ago•0 comments

Head to head: Claude Code (Opus 4.6 / 1M) vs. Cursor (Composer 1.5 / 200k)

https://medium.com/@yoavaa/head-to-head-claude-code-opus-4-6-1m-vs-cursor-composer-1-5-200k-f15c5...
1•yoava•18m ago•0 comments

Managing My Open Source Repos with Autonomous AI Agents

https://massadas.com/posts/managing-opensource-with-ai-agents/
1•G4brym•19m ago•0 comments

Aatel: The Anti-AI Training Ethical License – What It Is and Why It Was Built

https://github.com/aatel-license/aatel-license.github.io
1•aatel-license•19m ago•1 comments

Cinder CSI vs. Ceph RBD CSI in Kubernetes

https://spot.rackspace.com/blogs/cinder-csi-vs-ceph-rbd-csi-in-kubernetes-an-analysis-of-persiste...
1•aleroawani•20m ago•0 comments

Sorca – Voice-first AI therapy companion

https://sorca.life
1•nothanii•20m ago•1 comments

Context plane for AI agents (Rust, S3)

https://aboutphilippe.com/2026/03/04/context-plane/
1•aboutphilippe•22m ago•1 comments

Music Programming Studio

https://folkstack.com/blog/introducing_music_programming_studio.html
1•folkstack•22m ago•0 comments

Ask HN: Value and demand for space-manufactured products?

1•dnlh_lvg•23m ago•0 comments

Anthropic says Trump ban puts federal contractor partnerships 'in jeopardy'

https://fedscoop.com/anthropic-says-trump-ban-puts-federal-contractor-partnerships-jeopardy/
3•petethomas•25m ago•0 comments

Treat Agent Output Like Compiler Output

https://skiplabs.io/blog/codegen_as_compiler
2•friscofoodie•25m ago•0 comments

New HIV cure approach forces hidden virus into tripping immune sensor

https://www.science.org/content/article/new-hiv-cure-approach-forces-hidden-virus-tripping-immune...
2•rbanffy•29m ago•0 comments

LibreOffice learns to speak Markdown in version 26.2

https://www.theregister.com/2026/03/09/markdown_in_libreoffice/
3•rbanffy•29m ago•0 comments

EV charger biz ELECQ zapped by ransomware crooks, customer contact data stolen

https://www.theregister.com/2026/03/09/ransomware_crooks_hit_ev_charger/
1•Bender•30m ago•0 comments

Moody humans should let AI handle bad public feedback first, study finds

https://www.theregister.com/2026/03/09/ai_negative_reviews/
2•Bender•31m ago•0 comments