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!

Slop-Mop: Harm Reduction for Addicted Agents

https://scienceisneato.substack.com/p/slop-mop-harm-reduction-for-addicted
1•ji_reilly•2m ago•1 comments

I built an agent to organize 500 GB of family home videos from the 90s

https://www.mux.com/blog/using-mux-robots-to-organize-my-archive-of-90s-era-vhs-home-videos
1•dylanjha•3m ago•0 comments

Show HN: Feature flags on Redis you use – no new infrastructure

https://github.com/sgs-97/redis-feature-flags
1•sgs-97•4m ago•1 comments

Holecard – CLI password manager with TOTP support

https://github.com/shabaraba/holecard
1•28304283409234•6m ago•0 comments

Mixxx: FOSS DJ Mixing Software

https://github.com/mixxxdj/mixxx
1•yacin•7m ago•0 comments

Design CLI – Automate design workflows

https://github.com/shuffle-dev/cli
1•dym3k•12m ago•1 comments

NX VS Code extension compromised again

https://github.com/nrwl/nx-console/issues/3139
2•varunsharma07•13m ago•0 comments

Actions-cool/issues-helper GitHub Action Compromised

https://github.com/actions-cool/issues-helper/issues/230
1•varunsharma07•14m ago•0 comments

Robot dogs with Elon Musk heads roam Berlin museum in Beeple's new exhibit

https://apnews.com/article/germany-berlin-robot-dogs-beeple-bezos-digital-art-4a2be2a4a4490553ad6...
4•rbanffy•21m ago•0 comments

Show HN: Fast xlsx writer in Rust with Python bindings

https://github.com/omarirfa/Jetxl
1•fl4res•23m ago•0 comments

Suno and the Myth-Making of Making Music

https://illegal.solutions/posts/suno_interview
2•totallygeeky•23m ago•1 comments

Pebble Index 01 production update

https://repebble.com/blog/how-i-use-my-index-01-production-update
1•stavros•23m ago•0 comments

Static web hosting on Kubernetes with OCI images as volumes

https://kowalski7cc.xyz/blog/kubernetes-web-hosting/
1•kowalski7cc•23m ago•1 comments

Musk's xAI Fails to Pay Staff $420 for Giving Their Tax Returns to Grok

https://www.bloomberg.com/news/articles/2026-05-18/musk-s-xai-promised-staff-420-for-their-tax-re...
5•petethomas•23m ago•0 comments

Needle-rs – AI Function calling in the browser, 258 KB WASM

https://needle-rs.pages.dev
1•geekgineer•24m ago•0 comments

'It's felt like homework': Why Star Wars went so wrong

https://www.bbc.com/culture/article/20260515-why-star-wars-went-so-wrong
1•xg15•26m ago•0 comments

Academicus Otiosus: The Lazy Academic

https://thescholarlyletter.scholar-square.com/p/academicus-otiosus-the-lazy-academic
1•luispa•26m ago•0 comments

A Builder's Letter to Anthropic

https://unforced.substack.com/p/a-builders-letter-to-anthropic
1•Aaronneyer•28m ago•0 comments

No More JetBrains Products for Me

https://matthewkosarek.xyz/posts/jetbrains/
10•matthewkosarek•29m ago•0 comments

The Enshittification of History

https://www.antipope.org/charlie/blog-static/2026/05/the-enshittification-of-histor.html
3•rbanffy•29m ago•0 comments

UBS: The bank that outgrew a country

https://www.ft.com/content/19e68223-1b35-41e7-b1f2-2633f9d618db
1•theanonymousone•30m ago•0 comments

Discogo – Turn any logo or image into a 3D disco ball

https://discogo.vercel.app
1•nanxiaobei•31m ago•1 comments

'Pro Law Enforcement Bill' Clarity Passed Out of Committee

https://www.therage.co/clarity-act-senate-banking/
1•Cider9986•32m ago•0 comments

The Tech Bros Are Going to Etiquette School

https://www.wsj.com/lifestyle/careers/slow-ventures-tech-etiquette-class-20feced9
1•Cider9986•32m ago•0 comments

Trump drops IRS lawsuit in exchange for DOJ $1.8B 'weaponization' fund

https://www.reuters.com/world/trump-dismisses-lawsuit-against-irs-court-filing-shows-2026-05-18/
4•TechTechTech•34m ago•0 comments

The Chinese EV standard winning globally is banned in the U.S.

https://restofworld.org/2026/us-china-ev-tech-ban-isolation/
7•speckx•34m ago•0 comments

Actively Hiring at OpenAI

https://openai.com/careers/search/
1•lizzeai•35m ago•0 comments

How Trump's crypto venture and Iran's top exchange use the same crypto networks

https://www.reuters.com/investigations/how-trumps-crypto-venture-irans-top-exchange-tapped-into-s...
3•thisisit•35m ago•0 comments

Nuclear Reactor Simulator

https://dalton-nrs.manchester.ac.uk/
1•debesyla•36m ago•0 comments

X accounts are limited to 50 posts and 200 replies a day unless they pay

https://www.engadget.com/2175771/x-free-accounts-limited-to-50-posts-and-200-replies-a-day/
4•cdrnsf•37m ago•0 comments