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!

Bet on Centaurs

https://ajkprojects.com/bet-on-centaurs.html
1•ashleynewman•5m ago•0 comments

The Leading Deepfake Expert No Longer Trusts His Own Eyes

https://www.nytimes.com/2026/06/14/us/ai-deepfake-hany-farid.html
1•gmargari•8m ago•0 comments

Sigil – tamper-evident audit and signed scopes for LLM prompts

https://github.com/mr-gl00m/sigil
1•mr_gl00m•11m ago•0 comments

GitSwitcher – a macOS menu bar app for switching Git identities

https://www.botworker.org/
1•easonxia•14m ago•0 comments

Vulnerability Disclosure: Stealing Emails via Firefox's AI Features

https://insinuator.net/2026/06/vulnerability-disclosure-stealing-emails-via-firefoxs-ai-features/
3•_____k•14m ago•0 comments

Show HN: I built a tool which turns any website into promo video in minutes

https://www.clickcast.tech/
1•modulusme•17m ago•1 comments

An event-driven AI pipeline using FastAPI, Redpanda, and Docker

https://github.com/Infodatamatrix/AIKafkaPipelineDemo
1•infodatamatrix•17m ago•0 comments

Cervical cancer mortality trends following HPV vaccination in England, 2001–24

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00918-9/fulltext
2•asplake•24m ago•1 comments

BBC to axe Radio 4's The World Tonight after more than 50 years

https://www.theguardian.com/media/2026/jun/17/bbc-boss-compulsory-redundancies-cuts
3•mellosouls•26m ago•2 comments

YaFF – High-performance C++ serialization library

https://github.com/yandex/yaff
1•Hixon10•28m ago•0 comments

The Next Computing Revolution May Come from Stacking Chips Like Skyscrapers

https://scitechdaily.com/the-next-computing-revolution-may-come-from-stacking-chips-like-skyscrap...
1•g-b-r•31m ago•0 comments

'Most famous tree in the world': Sherwood Forest's 1000-year-old Major oak dies

https://www.theguardian.com/environment/2026/jun/18/most-famous-tree-world-sherwood-forest-ancien...
6•mellosouls•32m ago•0 comments

GLM-5.2 is probably the most powerful text-only open weights LLM

https://simonwillison.net/2026/Jun/17/glm-52/
2•lumpa•34m ago•0 comments

Simpler, older version of Stonehenge found three miles from famous site

https://www.bbc.co.uk/news/articles/clyxw8550y8o
3•mellosouls•37m ago•2 comments

Interesting Google AI Results

https://www.google.com/search?q=nvm
2•throwaway_7678•40m ago•2 comments

SteamOS Linux 3.8 released as stable

https://store.steampowered.com/news/app/1675200/view/697641379212298072
11•jrepinc•47m ago•1 comments

Privacy-Preserving Age Verification–and Its Limitations [pdf]

https://www.cs.columbia.edu/~smb/papers/age-verify.pdf
1•wmf•49m ago•0 comments

Trading Places (2023)

https://www.tabletmag.com/sections/news/articles/trading-places
1•like_any_other•51m ago•0 comments

EPFL launches the first open medical LLMs

https://actu.epfl.ch/news/epfl-launches-the-world-s-first-fully-open-medical/
1•ponsfrilus•52m ago•0 comments

Remote Code Execution in Libssh2

https://vuldb.com/cve/CVE-2026-55200
1•walrus01•56m ago•0 comments

FP8 GEMM Optimization on AMD CDNA4 Architecture

https://rocm.blogs.amd.com/software-tools-optimization/cdna4-gemm-kernels/README.html
1•skidrow•1h ago•0 comments

Occupancy Math on the AMD MI355X: A From-First-Principles Guide

https://indianspeedster.github.io/blog/occupancy-math-mi355x/
1•skidrow•1h ago•0 comments

Remembering Robert A.F. Thurman (1941-2026)

https://www.lionsroar.com/robert-thurman-and-the-karmic-kingdom-of-buddhology/
2•fredski42•1h ago•0 comments

What competitor signal has been most useful for you?

3•IndustryLens•1h ago•0 comments

Show HN: We cut >60% of tokens from agentic tasks by removing repeated context

https://parcle.ai/
1•longtermop•1h ago•0 comments

Nim Conf 2026 (Online, Sat June 20)

https://conf.nim-lang.org/
4•pietroppeter•1h ago•1 comments

Apple has started replacing macOS names with version numbers

https://9to5mac.com/2026/06/16/apple-has-started-replacing-macos-names-with-version-numbers-in-se...
2•soheilpro•1h ago•1 comments

Apple boss Tim Cook says prices to rise due to memory chip costs

https://www.bbc.com/news/articles/c3wyxvqdx1zo
6•ilreb•1h ago•0 comments

I built a budgeting app that never connects to your bank

https://budjo.app
2•fabiozanchi•1h ago•2 comments

AI Agents for Contractors

https://dolfyn.ai/
1•khollow•1h ago•1 comments