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!

Naïve raises $28.5M to automate setting up and running a company

https://techcrunch.com/2026/08/06/naive-raises-28-5m-to-automate-the-grunt-work-of-setting-up-and...
1•ashurandi•2m ago•1 comments

Ask HN: I've always thought about my opinion and I'd like you to know that

1•bahmboo•6m ago•0 comments

Beyond Origin Validation: Four Classes of Routing Attack Nobody Is Validating

https://labs.ripe.net/author/antonio-prado/beyond-origin-validation-four-classes-of-routing-attac...
1•m_montazeri•7m ago•0 comments

Docker Sandboxes – Disposable, isolated sandboxes for AI agents

https://www.docker.com/products/docker-sandboxes/
6•etoxin•13m ago•0 comments

Decart Exploring Sale, Possibly SpaceX

https://www.calcalistech.com/ctechnews/article/hjhzrluuml
1•Taikhoom2010•13m ago•0 comments

Zooza

https://www.zooza.online/
1•majklesko•16m ago•0 comments

What is WAL backpressure, and why does ClickHouse Managed Postgres need it?

https://clickhouse.com/blog/wal-backpressure-clickhouse-managed-postgres
2•saisrirampur•19m ago•0 comments

Escaping the LLM Coding Rat Race

https://aaronstannard.com/escaping-ai-coding-ratrace/
1•kiyanwang•22m ago•0 comments

Production support agents that read your code and your database, via MCP

https://medium.com/@rahulgolwalkar/the-support-agent-that-actually-reads-your-code-and-your-produ...
1•rahulgolwalkar•25m ago•0 comments

Show HN: Teaching agents how to play Factorio (using RLM, GEPA)

https://github.com/ukituki/dspy-factorio/
1•ukituki•25m ago•0 comments

We are still early (quiz for the graph we all know)

https://early.stevenmoody.com/
1•tillcarlos•27m ago•1 comments

Seas have hit hottest temperature on record for July

https://www.theguardian.com/environment/2026/aug/10/global-seas-hottest-temperature-july-scientists
3•johnshades•39m ago•0 comments

Thai school shooter learnt how to use guns via social media

https://www.bbc.com/news/articles/cy07dern0n0o
2•vinni2•40m ago•0 comments

How Much Does Web Hosting Cost in 2026? Prices Compared

https://veerhost.com/how-much-does-web-hosting-cost/
5•betterornotss•42m ago•0 comments

Monopoly Round-Up: Regulation of engagement algorithms is on the horizon

https://www.thebignewsletter.com/p/monopoly-round-up-the-biggest-sexual
3•chmaynard•50m ago•0 comments

Archive.st - Archive a Webpage

https://archive.st/
4•frozenseven•57m ago•1 comments

Qwen-MM-Plugins

https://github.com/QwenLM/Qwen-MM-Plugins
3•pretext•58m ago•0 comments

Why do we assume everyone should be working?

https://wilsoniumite.com/2026/08/10/why-do-we-assume-everyone-should-be-working/
27•Wilsoniumite•59m ago•22 comments

Therapy Needs to Get Help

https://www.nytimes.com/2026/08/09/opinion/therapy-neuroscience-perception.html
2•ed•1h ago•0 comments

PON-Beam: Notification-Oriented Beam Erlang VM

https://github.com/matheuscamarques/pon_beam
2•wut42•1h ago•0 comments

Ask HN: Do people with authism have emotions?

1•soltanov•1h ago•2 comments

Harry Potter almost derailed a major UK interconnector project

https://www.rechargenews.com/grid/how-harry-potter-almost-derailed-a-major-uk-interconnector-proj...
2•riffraff•1h ago•0 comments

Show HN: Memcode AI goes open source with Claude Code inspired coding agent

https://github.com/memcode-ai/memcode
2•timerwin•1h ago•0 comments

Act like it is science

https://marginalrevolution.com/marginalrevolution/2026/08/act-like-it-is-science.html
3•thedreammachine•1h ago•0 comments

md-whispr

https://twitter.com/stanlalanne/status/2086675864276566196
1•sharpshootersl•1h ago•1 comments

AI Coding Clients Are Reading Each Other's Personal Instructions

https://runtimewire.com/article/ai-coding-clients-are-reading-each-other-s-personal-instructions
2•ryanmerket•1h ago•0 comments

Copy-paste email templates for chasing overdue invoices

https://invoice-email-template.surge.sh/
1•lmv_builds•1h ago•0 comments

Take-home assessments to be banned in school AI overhaul

https://www.smh.com.au/national/nsw/take-home-assessments-to-be-banned-in-radical-hsc-overhaul-20...
1•Alien1Being•1h ago•0 comments

HCCL: Collective Communication for Meta Training and Inference Accelerators

https://arxiv.org/abs/2608.00358
1•matt_d•1h ago•0 comments

Migrate from GitHub Container Registry (GHCR) to Vercel Container Registry (VCR)

https://vercel.com/kb/guide/migrate-ghcr-to-vcr
1•flashbrew•1h ago•0 comments