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!

Vagus Atlas Explorer

https://drsiyarb.github.io/vagus_nerve_explorer/explorer/
1•brandonb•25s ago•0 comments

Show HN: Finikit – 33 free financial calculators, all in the browser

https://finikit.com/
1•anagnoraxis•1m ago•0 comments

Xi Lang: create Microservices with built-in DI, compiled to a native binary

https://code-by-sia.github.io/xi/
1•sia_xi•1m ago•0 comments

Is this blog written by AI?

https://brooker.co.za/blog/2026/06/18/my-blog-and-ai.html
1•_josh_meyer_•4m ago•0 comments

My experience going through a startup incubator (2025)

https://developerwithacat.com/blog/062025/startup-incubator-experience/
2•mmarian•8m ago•0 comments

The Scam Industry Is Booming [video][15 mins]

https://www.youtube.com/watch?v=bICyHwj1cWY
1•Bender•12m ago•0 comments

Show HN: One-Click Fork "Promo Video Studio (HyperFrames)" in Isolated MicroVM

https://www.jurniti.com/templates/hyperframes-promo-video-studio
1•shving90•13m ago•0 comments

Downtown S.F. tower promised a new kind of tech community

https://www.sfchronicle.com/sf/article/frontier-tower-san-francisco-22253458.php
1•iancmceachern•15m ago•0 comments

Cointegration and Long-Horizon Forecasting (2025)

https://www.philadelphiafed.org/the-economy/cointegration-and-long-horizon-forecasting
1•bryanrasmussen•18m ago•0 comments

The Revolution in Battery Technology: 3-D Printing

https://www.wsj.com/tech/battery-technology-3d-printing-c319ca9a
1•bookofjoe•19m ago•1 comments

Whitman, switch agents.md files in the CLI

https://github.com/ProximalEnergy/whitman
1•skrhee•20m ago•2 comments

Show HN: Remote Exec Server using only Python stdlib

1•abhrankan•23m ago•0 comments

Show HN: Remote Exec Server using only Python stdlib

1•abhrankan•23m ago•0 comments

Former Olympian denies vandalising Washington Reflecting Pool after arrest

https://www.bbc.com/news/articles/c8d26051vv2o
6•gojibary•23m ago•1 comments

Fossil Fuels Are 40% of Freight Shipping Tonnage, but Half Its Fuel Use

https://cleantechnica.com/2026/06/16/shipping-freight-energy-fossil-cargo/
2•choult•23m ago•0 comments

Show HN: I "built" Sana, a vector DB on object storage

https://github.com/djakish/sana
3•wasdwasdwasd•26m ago•0 comments

My symbolic regression engine rediscovered Kepler's Third Law from raw data

https://github.com/ariel95500-create/gp-elite
2•sade_95•28m ago•0 comments

Reinventing Entropy [video]

https://www.youtube.com/watch?v=l6DKRf-fAAM
2•tosh•28m ago•0 comments

SpaceX handed lowest possible ESG rating by MSCI

https://www.ft.com/content/a0dd4ea7-ef3d-4460-a96c-8c6975a053e3
2•mkl95•31m ago•0 comments

CIDR Report

https://www.cidr-report.org/
1•1vuio0pswjnm7•32m ago•0 comments

My recurse center return statement

https://www.lowimpactfruit.com/p/my-return-statement
1•mnky9800n•33m ago•0 comments

Norrin – Git/ diff control in Claude Code

1•gagewoodard•33m ago•1 comments

Show HN: Gsocket Alternative, Hgsocket

https://hgsocket.com/
1•hgsocket•33m ago•0 comments

Ask HN: What's your go-to queue system?

1•absoluteunit1•34m ago•1 comments

Scion: A next-generation inter-domain routing architecture

https://docs.scion.org/en/latest/index.html
2•dgellow•34m ago•0 comments

Don't rely on instructions; use Agent Hooks to enforce guardrails

https://bitbytebit.substack.com/p/agent-hooks-deterministic-guardrails
1•recroad•37m ago•0 comments

Show HN: A C++ ALNS routing engine for LEO satellite mesh networks [video]

https://www.youtube.com/watch?v=6xXRh7PC7nI
1•ADARSHLILHARE•40m ago•0 comments

A Star's Death Throes Involves a Lot of Kicking

https://www.caltech.edu/about/news/a-stars-death-throes-involves-a-lot-of-kicking
2•gmays•43m ago•0 comments

Performance Improvements in Libffi

https://atgreen.github.io/repl-yell/posts/libffi-plan-cache/
2•atgreen•48m ago•0 comments

Town Square, the community deserves connection

https://cauenapier.com/blog/town-square-the-community-deserves-connection/
1•birdculture•50m ago•0 comments