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!

Looking Ahead to Postgres 19

https://www.snowflake.com/en/blog/engineering/postgresql-19-features-beta/
1•craigkerstiens•4m ago•0 comments

A Missing Piece in Climate Models: Nature's Own Emissions

https://e360.yale.edu/features/warming-induced-ecosystem-emissions
1•Brajeshwar•4m ago•0 comments

Eot-bench: Open benchmark suite for end-of-turn detection in voice AI

https://github.com/livekit/eot-bench
1•codestackr•4m ago•0 comments

GPT-5 writing a Singularity scenario (2025)

https://www.lesswrong.com/posts/dT3StLjeJG7ordQGm/gpt-5-writing-a-singularity-scenario
1•Gooblebrai•7m ago•0 comments

iOS 27 Adds Four New Features to Notes App, Including Markdown Copy-and-Paste

https://www.macrumors.com/2026/06/17/ios-27-apple-notes-app-new-features/
2•Tomte•7m ago•0 comments

Infection found in wildlife evolved to spread between humans

https://www.dailymail.com/health/article-15911213/virus-dermatophilosis-human-transmission-europe...
2•Bender•8m ago•0 comments

PyQt6 now ships the Designer plugin on conda-forge, fixing a 6-year gap

https://github.com/conda-forge/pyqt-feedstock/pull/184
2•ludmilaklenova•8m ago•0 comments

Migrating from GNU Stow to Chezmoi

https://rednafi.com/misc/chezmoi/
2•speckx•9m ago•0 comments

Problems I'm having with Opus and regression

1•dleech•9m ago•1 comments

The Download: a new hunt for dark matter and Kenya's case for going solar

https://www.technologyreview.com/2026/06/18/1139261/the-download-dark-matter-hunt-kenya-solar-power/
1•joozio•9m ago•0 comments

Show HN: Prompt Foundry-tasks with focused context & instructions = sharper AI

https://marketplace.visualstudio.com/items?itemName=sdevries.prompt-foundry
1•espresso_dev•10m ago•0 comments

Why Deleted Mac Apps Leave Files Behind

https://crufti.app/blog/why-deleted-mac-apps-leave-files-behind
1•gbourne•10m ago•0 comments

Performance Has Layers

https://oxide.computer/blog/performance-has-layers
1•robin_reala•10m ago•0 comments

A PostgreSQL Database for Every Agent: In-Database RAG, Graph, and Multitenancy

https://www.yugabyte.com/blog/a-postgresql-database-for-every-agent/
2•bug2man•13m ago•0 comments

Death by 1k Compromises: How to Tap into Founder Mode

https://tim.blog/2026/06/18/mark-pincus/
1•Michelangelo11•13m ago•0 comments

Where do migrants live, and where were they born?

https://ourworldindata.org/where-do-migrants-live-and-where-were-they-born
1•TMWNN•15m ago•1 comments

Making budget models punch above their weight with a smart Rust harness

https://yogthos.net/posts/2026-06-08-dirge-code.html
1•theanonymousone•16m ago•0 comments

Show HN: A small, crazy fast hybrid search engine written in Rust

https://github.com/deepbluedynamics/lume
1•kordlessagain•17m ago•1 comments

Why AI Is Incorrigibly Didactic

https://www.theatlantic.com/ideas/2026/06/ai-writing-style-literature/687536/
4•Michelangelo11•18m ago•0 comments

Third time's the charm for a row of faint galaxies without dark matter

https://news.yale.edu/2026/06/16/third-times-charm-row-faint-galaxies-without-dark-matter
1•gmays•18m ago•0 comments

Wiki Spy

https://neal.fun/wiki-spy/
4•irs•18m ago•0 comments

Pnpm temp paths broke lifecycle sockets

https://github.com/pnpm/pnpm/pull/12327
1•scarabsystems•19m ago•0 comments

Developers React to AI-Scented Blog Posts

https://writethatblog.substack.com/p/dev-reaction-to-ai-blog-posts
1•birdculture•19m ago•0 comments

Show HN: SDK for embedding zot coding agent in your Node.js applications

https://github.com/patriceckhart/zot-sdk-javascript
4•patriceckhart•21m ago•0 comments

Commodore Unveils Linux Powered Flip Phone

https://hackaday.com/2026/06/18/commodore-unveils-linux-powered-flip-phone/
1•kristianpaul•21m ago•0 comments

Apple's A12 and A13 Chips Facing New Unpatchable Exploit

https://www.macrumors.com/2026/06/18/a12-and-a13-chips-facing-exploit/
1•latexr•21m ago•0 comments

Is it time for a new Embedded Linux build system?

https://yoebuild.org/blog/time-for-a-new-build-system/
1•cbrake•21m ago•0 comments

Europe Scales Down AI Ambitions with Smaller Data Center Tender

https://www.bloomberg.com/news/articles/2026-06-18/europe-scales-down-ai-ambitions-with-smaller-d...
1•alecco•22m ago•2 comments

Show HN: Foglamp – Open-source o11y for AI SDK

https://www.foglamp.dev/
1•gustavofior•23m ago•0 comments

The founder of Craigslist has given away half a billion dollars

https://www.independent.co.uk/us/money/craigslist-multimillionaire-craig-newmark-b2980681.html
3•Tomte•23m ago•0 comments