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!

Widelands – 20 years of open source 1.0 [video]

https://www.youtube.com/watch?v=qA2inaP2Nyk
1•coolwulf•23s ago•0 comments

The Steam Machine is the most ambitious game console I've ever played

https://www.theverge.com/games/952765/steam-machine-review
1•tabletcorry•46s ago•0 comments

OpenAI signs deal to show Getty's images in ChatGPT results

https://www.engadget.com/2198633/openai-signs-deal-with-getty-to-show-images-in-chatgpt-results/
2•lardass•1m ago•0 comments

Ask HN: Anyone got a 43" 4K? Thoughts?

1•herodoturtle•1m ago•0 comments

Show HN: Kitcat 2.0 – A Matplotlib back end for terminal plotting

https://mil.ad/blog/2026/kitcat-2.0.html
1•playnext•3m ago•0 comments

Show HN: Ingestlayer – Programmable event tracking pipelines

https://ingestlayer.com
1•benmann•6m ago•0 comments

Can You Spot the AI Bodega?

https://www.curbed.com/article/ai-slop-bodega-signage-design.html
1•SVI•6m ago•0 comments

Show HN: Open-source job search plugin for Claude Code

https://github.com/agent-data/job-search
1•jb_hn•6m ago•0 comments

VigilSwift – A fast, free web security scanner built for devs

https://vigilswift.com
1•alex_vs•7m ago•0 comments

Five Eyes warns AI models capable of toppling governments are months away

https://www.theguardian.com/technology/2026/jun/22/anthropic-claude-fable-ai-model-artificial-int...
4•speckx•14m ago•1 comments

Steam Machine Launches Today

https://store.steampowered.com/news/group/45479024/view/685257114654870245
17•no_news_is•14m ago•3 comments

Steam Machine Game Testing

https://www.lttlabs.com/articles/2026/06/22/the-newell-nucleus-steam-machine-ltt-companion-article
4•LabsLucas•15m ago•0 comments

Iris – A portable runtime for durable AI agents

https://github.com/xoai/iris
2•xoai•16m ago•0 comments

Show HN: Block/buzz: a workspace built for teams of humans and agents

https://github.com/block/buzz
7•ThomPete•16m ago•1 comments

Geometry of causal set theory with physics implications

https://docs.google.com/document/d/1yYXSX_XssHXV5msGj2eC74fs6P2PG_sL/edit
1•Darktidemage•17m ago•1 comments

Angeldust – a solo-built voxel world that runs on everything [video]

https://www.youtube.com/watch?v=zssnlbRibFM
1•coolwulf•18m ago•0 comments

Does AI have a UI/UX problem?

https://twitter.com/PereraBinoy/status/2068432457234513955
2•adisingh13•18m ago•1 comments

Daybreak: Tools for securing every organization in the world

https://openai.com/index/daybreak-securing-the-world/
3•tabletcorry•18m ago•0 comments

A Glimpse into the "Search Your Target" Market for Stolen Credentials

https://www.bleepingcomputer.com/news/security/a-glimpse-into-the-search-your-target-market-for-s...
1•Brajeshwar•20m ago•0 comments

A 10-person team cut median cycle time from 72 to 27 hours in 30 days

https://www.poggle.ai/blog/engineering-productivity-case-study
1•Ghostcrawl3r•21m ago•0 comments

Meta's Crawler Ate My 2TB Bandwidth

https://www.rodneyosodo.com/blogs/2026-06-22_metas_crawler_ate_my_2TB_bandwidth
1•rodneyosodo•21m ago•1 comments

Steam Machine 512GB

https://store.steampowered.com/sub/1629447/
18•Philpax•22m ago•2 comments

A viral doomsday scenario aims to shake Europe out of its AI complacency

https://www.theguardian.com/technology/2026/jun/20/europe-sleepwalking-ai-disaster-us-china
3•gmays•23m ago•0 comments

Steam Machine

https://store.steampowered.com/hardware/steammachine
46•theschwa•23m ago•9 comments

Blogger Defeats Photographer's Copyright Claim-Sokolskyfilm vs. Messiah

https://blog.ericgoldman.org/archives/2026/06/blogger-defeats-photographers-copyright-claim-sokol...
10•speckx•27m ago•0 comments

Unit Tests for a Novel

https://worldfall.ink/blog/
4•isobelvane•27m ago•0 comments

My journey of making my first-ever circuit

https://medium.com/@khwajamaazahmedsiddiqi/my-journey-of-making-my-first-ever-circuit-4f1de935fecd
2•pknerd•27m ago•0 comments

The Download: record-breaking subsea tunnels and flexible data centers

https://www.technologyreview.com/2026/06/22/1139385/the-download-rogfast-subsea-tunnel-flexible-d...
2•joozio•29m ago•0 comments

Europe faces rising competition for energy from Asia

https://www.politico.eu/article/every-man-for-himself-europe-warned-of-rising-competition-for-ene...
3•alephnerd•29m ago•0 comments

Tata Electronics cyber breach claiming to expose Apple, Tesla trade secrets

https://www.yahoo.com/news/world/articles/indias-tata-electronics-hit-cyber-153155513.html
12•Hypathia•29m ago•1 comments