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

Comments

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

Families reeling, businesses suffering after ICE raided Ventura cannabis farms

https://www.latimes.com/california/story/2025-12-24/families-reeling-six-months-after-ice-raid-ca...
1•PaulHoule•6m ago•0 comments

US DOJ releases partially redacted documents on Operation Absolute Resolve

https://www.justice.gov/olc/media/1423306/dl
2•Agreed3750•8m ago•0 comments

Over the Edge: Death in Grand Canyon by Kenneth Field

https://www.arcgis.com/apps/webappviewer/index.html?id=9359a0790ffe4bc09edd6b9c17a43b90
1•thunderbong•8m ago•0 comments

A $2,500 full body scan said he was healthy. Then he had a catastrophic stroke

https://www.washingtonpost.com/health/2026/01/13/prenuvo-lawsuit-full-body-scan/
2•ThePhantom•16m ago•1 comments

Show HN: A slsqp solver WASM demo

https://slsqp-wasm.shuo23333.app/
1•shuoli84•17m ago•0 comments

Minimal Claude Code in 250 lines

https://github.com/1rgs/nanocode
1•yuedongze•17m ago•0 comments

Show HN: Axis – A systems programming language with Python syntax

https://github.com/AGDNoob/axis-lang
1•AGDNoob•17m ago•1 comments

Minor says ICE took his iPhone, later found in used-electronics vending machine

https://www.propublica.org/article/videos-ice-dhs-immigration-agents-using-chokeholds-citizens
8•spenvo•18m ago•1 comments

The Mole: Infiltrating North Korea [video]

https://www.youtube.com/watch?v=Sgq-_VNptSc
2•matousd•21m ago•0 comments

South Korea seeks death penalty for ex-president Yoon over martial law bid

https://www.cnbc.com/2026/01/14/south-korea-special-prosecutor-seek-death-penalty-former-presiden...
1•nodesocket•22m ago•0 comments

Show HN: Cymatica – Chladni Plate Simulator

https://www.cymatica.app/
1•_august•26m ago•0 comments

US approves sale of Nvidia's advanced H200 chips to China

https://www.bbc.com/news/articles/cg4erx1n04lo
2•tlyleung•30m ago•0 comments

QuickSend – Share Files Between Devices Without the Friction

http://quicksend.chat
1•foodhome•33m ago•1 comments

Wrapping my head around Gas Town

https://justin.abrah.ms/blog/2026-01-05-wrapping-my-head-around-gas-town.html
2•gmays•38m ago•1 comments

Bottom-up programming as the root of LLM dev skepticism

https://www.klio.org/theory-of-llm-dev-skepticism/
2•mkozlows•39m ago•0 comments

Show HN: Neutriva – A personalized health and wellness tracking assistant

https://neutriva.com/en/wellness-assistant
1•NoraWW•41m ago•0 comments

Medical Groups Will Try to Block Childhood Vaccine Recommendations

https://www.nytimes.com/2026/01/13/health/vaccine-schedule-children-kennedy.html
3•doener•50m ago•0 comments

Terry Tao: "LLMs Are Simpler Than You Think – The Real Mystery Is Why They Work" [video]

https://www.youtube.com/watch?v=ukpCHo5v-Gc
9•gmays•50m ago•0 comments

Starlink Users in Iran Get Free Internet Access, Nonprofit Says

https://www.nytimes.com/2026/01/13/technology/iran-starlink-elon-musk.html
4•doener•52m ago•2 comments

One Simple Arrow Changed Automobiles Forever [video]

https://www.wsj.com/video/series/on-the-news/how-one-simple-arrow-changed-automobiles-forever/C33...
1•fortran77•54m ago•0 comments

Qualcomm's RISC-Ventana Fusion

https://thechipletter.substack.com/p/qualcomms-risc-ventana-fusion
2•chmaynard•54m ago•0 comments

What's Ahead: Alien Processes, Domains, and Data Models

https://practicaldatamodeling.substack.com/p/whats-ahead-alien-processes-domains
1•gmays•56m ago•0 comments

Why IRC is better than Real Life

https://everything2.com/node/e2node/Why%20IRC%20is%20better%20than%20Real%20Life
3•jskherman•57m ago•0 comments

A new generation of Chinese companies is expanding around the world

https://www.economist.com/business/2026/01/13/a-new-generation-of-chinese-companies-is-expanding-...
3•petethomas•59m ago•0 comments

Southern New Zealand hospitals experienced major IT outage

https://www.rnz.co.nz/news/national/584026/public-service-association-says-southern-hospitals-exp...
3•billybuckwheat•1h ago•0 comments

What will enshittification of LLMs look like?

1•scoofy•1h ago•3 comments

An Updated Dentist Office Software Story

https://avc.xyz/an-updated-dentist-office-software-story
1•turadg•1h ago•1 comments

BioNTech Provides Strategic Business Update and Outlines 2026

https://investors.biontech.de/news-releases/news-release-details/biontech-provides-strategic-busi...
2•doener•1h ago•0 comments

How to Store the Web in S3

https://exa.ai/blog/exa-d
1•willbryk•1h ago•1 comments

Signal creator Moxie Marlinspike wants to do for AI what he did for messaging

https://arstechnica.com/security/2026/01/signal-creator-moxie-marlinspike-wants-to-do-for-ai-what...
5•abolishme•1h ago•0 comments