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!

Declank – Remove AI Watermarks from Images

https://declank.skeptrune.com/
1•skeptrune•2m ago•0 comments

Introducing GAPs: GraphQL Auxiliary Proposals

https://graphql.org/blog/2026-06-01-announcing-gaps/
1•markl42•8m ago•0 comments

Show HN: Z2H market awareness OS for traders

https://zero2h.com/preview/hn-preview/
1•pkpie1234•12m ago•0 comments

A Declaration of the Independence of Cyberspace (1996)

https://www.eff.org/cyberspace-independence
1•ipnon•12m ago•0 comments

Substack CEO dismisses popular open letter about platform drift as 'AI slop'

https://substack.com/@cb/note/c-271417569
1•navs•14m ago•0 comments

Show HN: Wifiland – I turned nearby Wi-Fi network names into a live fantasy map

https://wifiland.meaningofdesign.com/
1•meaningofdesign•16m ago•0 comments

Lessons from late founding a tech debt ridden startup(2025)

https://inverted-tree.com/posts/lessons-from-founding-tech-debt-ridden-startup/
1•ioxnav•19m ago•0 comments

How to tame AI's voracious appetite for energy

https://knowablemagazine.org/content/article/technology/2026/lowering-energy-use-artificial-intel...
1•anujbans•29m ago•0 comments

Valve P2P networking broken for more than 2 months

https://github.com/ValveSoftware/GameNetworkingSockets/issues/398
23•babuskov•37m ago•4 comments

Please read my cease and desist and lawsuit case against the FBI

4•susdeepstatefbi•41m ago•2 comments

Made globe hologram experience – includes emergency prediction system

https://global-predict--jordantownsend2.replit.app/hologram
2•Subtextofficial•46m ago•0 comments

Most people across 36 countries have negative views of Israel

https://www.pewresearch.org/short-reads/2026/06/04/most-people-across-36-countries-have-negative-...
4•goldfishgold•51m ago•0 comments

Are Memories Transferable – Or Edible?

https://www.quantamagazine.org/are-memories-transferable-or-edible-20260605/
2•anujbans•51m ago•0 comments

Show HN: Get v2.0

https://github.com/Water-Run/get/releases/tag/v2.0
3•linzhangrun•52m ago•0 comments

The Russian who invented semiconductors 25 years before the USA

https://www.semidoped.com/p/til-the-man-who-invented-the-future
12•johncole•58m ago•3 comments

2ez.sol Its 1999 again Free games. 2ez

https://2ez.sol.site
1•sgspace•1h ago•1 comments

Grid: E2EE Alternative to Life360

https://mygrid.app
1•thebiblelover7•1h ago•1 comments

Field of clones: How horse replicas came to dominate polo

https://knowablemagazine.org/content/article/technology/2026/cloned-polo-horses
27•gscott•1h ago•7 comments

Lego launches 12,060-piece Sagrada Família – its biggest ever set

https://www.cnn.com/2026/06/05/style/lego-sagrada-familia-gaudi-scli-intl
3•giuliomagnifico•1h ago•1 comments

Show HN: LLM for Dummies

https://ronreiter.github.io/llm-for-dummies/
1•ronreiter•1h ago•0 comments

Show HN: TakoVM – Isolated model and tool execution used by enterprises

https://github.com/las7/TakoVM
9•sakuraiben•1h ago•0 comments

The gamers taking on the industry to stop it switching off games

https://www.bbc.com/news/articles/c8e8e7g0r82o
1•breve•1h ago•0 comments

Ukrainian drones target St Petersburg in attack Russia calls 'unprecedented'

https://www.bbc.com/news/articles/cg7498kz808o
4•MilnerRoute•1h ago•1 comments

Show HN: Ext-Infer – Native LLM Inference and Embeddings for PHP

https://infer.displace.tech
1•eamann•1h ago•0 comments

Agent in 50 Lines

https://minimal-agent.com/
3•andai•1h ago•1 comments

The oldest surviving animated feature film at 100

https://www.bbc.com/culture/article/20260603-how-a-26-year-old-german-woman-made-the-worlds-oldes...
2•1659447091•1h ago•1 comments

New Biochemistry-Based Metabolic Protocol Seeking Alpha Concierge Members

2•joshwprinceton•1h ago•0 comments

NASA interested in Hubble reboost if costs can be reduced

https://spacenews.com/nasa-interested-in-hubble-reboost-if-costs-can-be-reduced/
2•defrost•1h ago•0 comments

How Liminalism Became the Defining Aesthetic of Our Time

https://hyperallergic.com/how-liminalism-became-the-defining-aesthetic-of-our-time/
5•zeech•1h ago•0 comments

Show HN: Oproxy – inspect and modify network traffic from the browser

https://github.com/sauravrao637/oproxy
14•sauravrao637•1h ago•1 comments