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

Comments

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

OrcaSlicer project shuttered after Bambu Lab threatens legal action

https://www.tomshardware.com/3d-printing/developer-re-enables-3d-printer-features-that-bambu-lab-...
1•josephcsible•3m ago•0 comments

I built an AI job search agent on Claude Code to run my own PM job search

https://github.com/ymuromcev/ai-job-searcher
1•ymuromcev•4m ago•0 comments

The $1 Visionary – transforming lives with affordable eye glasses

https://reasonstobecheerful.world/the-one-dollar-visionary/
1•susiecambria•4m ago•0 comments

Amanay – a terminal focused on predictable behavior (C, GTK4)

https://github.com/isuzano/amanay
1•isuzano•6m ago•0 comments

Germany has become the largest ammunition producer in the world

https://prm.ua/en/the-us-is-no-longer-the-leader-germany-has-become-the-largest-ammunition-produc...
3•doener•9m ago•0 comments

Shopify's AI-first engineering playbook

https://www.bvp.com/atlas/inside-shopifys-ai-first-engineering-playbook
1•deakhaus•11m ago•0 comments

Protecting Cookies with Device Bound Session Credentials

https://security.googleblog.com/2026/04/protecting-cookies-with-device-bound.html
1•Techbrunch•16m ago•0 comments

The Man Behind AlphaGo Thinks AI Is Taking the Wrong Path

https://www.wired.com/story/david-silver-ai-ineffable-intelligence-reinforcement-learning/
2•mikhael•18m ago•0 comments

Sony rolls out 30-day DRM check-in for PlayStation – stay online or lose access

https://www.tomshardware.com/video-games/playstation/sony-rolls-out-30-day-online-drm-check-in-fo...
2•josephcsible•20m ago•0 comments

Show HN: Nv – workspace orchestrator for jj built for parallel agent workflows

https://github.com/eersnington/jj-navi
1•Sreenington•20m ago•0 comments

Drones and AI will fragment the international order

https://www.thenewatlantis.com/publications/a-shakeup-is-coming-for-the-nation-state
2•SCEtoAux•21m ago•0 comments

Google told staff it is 'proud' of Pentagon AI contract after internal backlash

https://www.ft.com/content/e2f5f0a7-fa24-430f-b7f8-27b78041ea8a
5•merksittich•26m ago•2 comments

Vera: a programming language designed for machines to write

https://github.com/aallan/vera
2•unignorant•26m ago•0 comments

Canada selected to host new multinational defence bank, sources say

https://www.theglobeandmail.com/business/article-canada-host-multinational-defence-bank/
3•harwoodr•29m ago•0 comments

Scaling Pain of Coding Agent Serving: Lessons from Debugging GLM-5 at Scale

https://z.ai/blog/scaling-pain
3•zixuanlimit•30m ago•1 comments

AI agent deletes company's database in seconds

https://www.msn.com/en-us/news/technology/ai-agent-deletes-company-s-entire-database-in-seconds/a...
3•galaxyLogic•33m ago•0 comments

Ask HN: What would you build on bitesize.io?

1•oan•33m ago•0 comments

Universal Linux Password Recovery Tool (Tweet)

https://twitter.com/junorouse/status/2049531916463063049
1•aizk•33m ago•0 comments

Meta's Reality Labs lost over $4B in first quarter

https://www.cnbc.com/2026/04/29/metas-reality-labs-lost-over-4-billion-in-first-quarter.html
2•ZeidJ•33m ago•0 comments

Show HN: Stream iOS Simulators to a Browser Window

https://github.com/EvanBacon/serve-sim
2•EvanBacon•33m ago•0 comments

MiniRAT: A Go-based macOS RAT delivered via malicious NPM package

https://www.iru.com/blog/minirat
1•ZeidJ•34m ago•0 comments

"Young with Experience" Paradox: Einstein's Twin as a Critique of Modern Hiring

https://zenodo.org/records/19898846
1•Serena_Zayn•37m ago•0 comments

Ask HN: Are there any good open-source chat apps?

2•smj-edison•40m ago•0 comments

"Rat Run" Sudoku Series by Marty Sears

https://logic-masters.de/Raetselportal/Raetsel/zeigen.php?chlang=en&id=000IFI
1•codechicago277•44m ago•0 comments

How dating app algorithms (likely) work in 2026

https://nsokolsky.substack.com/p/how-dating-app-algorithms-likely
2•paulpauper•46m ago•0 comments

The Copernican Model Was More Simple

https://jonasanksher.substack.com/p/the-copernican-model-actually-was
2•paulpauper•47m ago•0 comments

Most Swiss back initiative to cap population at 10M

https://www.reuters.com/world/europe/most-swiss-back-initiative-cap-population-10-million-poll-sh...
2•baal80spam•47m ago•0 comments

Show HN: Claude Code Web UI

https://github.com/alexjbarnes/cockpit
1•recouptreadmill•47m ago•0 comments

Hi, looking for Tester for my TD game

https://testflight.apple.com/join/unh5x9Vh
3•pompeii•50m ago•1 comments

US accuses China of industrial-scale AI model distillation, will share Intel

https://thenextweb.com/news/us-white-house-ai-model-distillation-china-theft
6•gmays•51m ago•2 comments