frontpage.
newsnewestaskshowjobs

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!

Hackers Publish Knicks and Madison Square Garden Data Online

https://www.404media.co/hackers-publish-knicks-and-madison-square-garden-data-online/
1•Cider9986•7m ago•1 comments

GE-265 / Dartmouth Time-Sharing System Revisited

https://icm.museum/blog/?p=564
3•sdf_pubnix•9m ago•0 comments

The AI Boom's Hunt for Cash Hits a New Corner of the Bond Market

https://www.wsj.com/finance/investing/the-ai-booms-hunt-for-cash-hits-a-new-corner-of-the-bond-ma...
1•ilreb•10m ago•0 comments

Slopmith (popular Rocksmith inspired guitar game) slapped with DMCA takedown

https://old.reddit.com/r/rocksmith/comments/1u6jg96/dmca_takedown_notice_for_slopsmith/
1•webprofusion•12m ago•1 comments

Show HN: Otty – a native and beautiful terminal emulator

https://otty.sh/
1•ilchenearly•13m ago•0 comments

Revised Rules of Engineering Leadership

https://lethain.com/revised-rules-of-engineering-leadership/
1•RyeCombinator•15m ago•0 comments

Show HN: Building a Stateful AI Agent

https://github.com/surya17495/centri
1•suryaankata•26m ago•0 comments

DIY crane bot that tidies up a room

https://hackaday.com/2026/06/15/building-a-ceiling-based-crane-robot-to-keep-a-room-clean/
2•soupspaces•29m ago•0 comments

Seventeen Camels and Where They Can Take You

https://mathenchant.wordpress.com/2026/06/15/seventeen-camels-and-where-they-can-take-you/
1•akkartik•33m ago•0 comments

Flax debugging: making a hash of things

https://www.gilesthomas.com/2026/06/hashing-jax-parameters
1•gpjt•33m ago•0 comments

Multiple mastra NPM packages compromised

https://github.com/mastra-ai/mastra/issues/18045
1•varunsharma07•34m ago•1 comments

Should nicotine be regulated like a narcotic?

https://www.nature.com/articles/d41586-026-01903-z
3•ilreb•35m ago•1 comments

Show HN: penguinAI – the c.ai alternative focused on privacy, no self-hosting

https://penguinai.pages.dev/
1•telui•35m ago•0 comments

Creating a Dynamic Favicon with Cloudinary

https://www.raymondcamden.com/2026/06/16/creating-a-dynamic-favicon-with-cloudinary
3•mooreds•40m ago•0 comments

A rat sighting in New Zealand can trigger an urgent response

https://www.theguardian.com/world/2026/jun/17/rat-hunters-catchers-predator-free-new-zealand-well...
3•rguiscard•42m ago•0 comments

The Physics of a Fable

https://twitter.com/Rafa_Schwinger/status/2066230802439180447
3•gmays•43m ago•0 comments

The Ease of Expertise

https://fields.medium.com/the-ease-of-expertise-8ad7b8670479
1•mooreds•44m ago•0 comments

The Next Layer of Blockchain Infrastructure Is Execution Memory

https://blog.bridgexapi.io/execution-intelligence-needs-reconstruction
2•Bridgexapi•44m ago•0 comments

Anthropic lost the White House's trust – and then its flagship product

https://www.washingtonpost.com/technology/2026/06/15/how-anthropic-lost-white-houses-trust-then-i...
2•0in•47m ago•0 comments

Low-latency NLP news pipeline written on FASM and Python

1•RAYoIN•50m ago•0 comments

SQLazy–Deterministic SQL Generation

https://github.com/SPLWare/SQLazy
1•ossdwa•51m ago•0 comments

The Benchmark Illusion: Pruned LLMs Can Pass Multiple Choice but Fail to Answer

https://arxiv.org/abs/2606.17609
1•ilreb•51m ago•0 comments

NOLA 'Nacular: One man's crusade to preserve New Orleans's vernacular signage

https://countryroadsmagazine.com/art-and-culture/people-places/nola-nacular/
1•NaOH•54m ago•0 comments

Ask HN: How likely is it that SpaceX buys OpenAI?

2•dwa3592•55m ago•1 comments

Exactly-Once Delivery Is a Spectrum, Not a Checkbox: Part 1

https://medium.com/@danthelion/exactly-once-delivery-is-a-spectrum-not-a-checkbox-part-1-3348d771...
2•danthelion•1h ago•0 comments

Stop Killing Games fails to secure EU law despite 1.3M signatures

https://www.dexerto.com/gaming/stop-killing-games-fails-to-secure-eu-law-despite-1-3m-signatures-...
15•slymax•1h ago•1 comments

CA AB 2015 Dept of Transportation 3rd Party navigation application study

https://leginfo.legislature.ca.gov/faces/billTextClient.xhtml?bill_id=202520260AB2015
1•hnburnsy•1h ago•0 comments

Linux Enacts Guidance to Tighten Acceptance of New File-Systems into the Kernel

https://www.phoronix.com/news/Linux-New-File-System-Docs
1•Bender•1h ago•0 comments

SpaceX valuation balloons to $2.6T, briefly passes Amazon

https://www.techsentiments.com/article/2026/06/16/spacex-valuation-balloons-to-26t-briefly-passes...
1•rajsuper123•1h ago•0 comments

Mozilla Firefox Usage of Zlib-Rs for Better Safety and Performance

https://www.phoronix.com/news/Mozilla-Firefox-zlib-rs-Usage
2•Bender•1h ago•0 comments