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!

A PHP server that can handle 10x as many concurrent requests as Nginx+PHP-fpm

https://github.com/Qbix/webserver/blob/main/README.md
1•EGreg•1m ago•0 comments

Oracle could face $7B collateral bill for Wisconsin data centre

https://www.ft.com/content/b37030b6-bda8-4ba9-8e08-e6b88687b8f5
1•toomuchtodo•3m ago•1 comments

curl_cffi - Python binding for curl-impersonate

https://github.com/lexiforest/curl_cffi
1•gregsadetsky•7m ago•0 comments

Concentrate: LLM Gateway

https://concentrate.ai
1•handfuloflight•14m ago•0 comments

Sakana Fugu-Cyber

https://sakana.ai/fugu-cyber-release/
2•ilreb•17m ago•0 comments

Show HN: Hospital Price Watch: Transparent, Shoppable Hospital Prices

https://hospitalpricewatch.com/
1•brad12345•17m ago•1 comments

Ramp Router

https://ramp.com/router/
1•handfuloflight•17m ago•0 comments

Show HN: AI meeting notes – no bot, insights and answers from your files (BYOK)

https://getaiassist.app/
1•rfigueror1•19m ago•0 comments

How Cursor Rebuilt Its Terraform Workflow with Masterpoint

https://masterpoint.io/case-studies/cursor/
1•mooreds•20m ago•0 comments

New Chrome plugin automates Reddit conversations

https://subsnipe.thomasunise.com/
2•is_dev_active•24m ago•0 comments

Ten-year-old butterfly researcher finds memories can be inherited

https://www.upworthy.com/ten-year-old-butterfly-researcher-discovers-that-memories-an-be-passed-d...
2•MaysonL•24m ago•0 comments

Freerange: Static fit checks for ordinary TypeScript layout code

https://github.com/chenglou/freerange
1•handfuloflight•31m ago•0 comments

British Standard – "Preparation of a liquor of tea for use in sensory tests" [pdf]

https://www.teahong.com/wp-content/uploads/2022/03/bs-6008-or-iso-3103.pdf
1•gregsadetsky•34m ago•0 comments

Homeric Question

https://en.wikipedia.org/wiki/Homeric_Question
3•thunderbong•43m ago•0 comments

Eye Tracking on Your Cellphone

https://gazecapture.csail.mit.edu/
2•soupspaces•44m ago•0 comments

Expect More Data Center Moratoriums – and Slower Growth

https://www.bloomberg.com/opinion/articles/2026-07-20/new-york-data-center-moratorium-friction-sl...
1•petethomas•46m ago•0 comments

Industrial DevOps

https://itrevolution.com/product/industrial-devops-book/
1•firesteelrain•47m ago•0 comments

Absurdity and hypocrisy in war, Celine [pdf]

https://neoalchemist.wordpress.com/wp-content/uploads/2012/06/louis-ferdinand-celine-journey-to-t...
1•DaveZale•55m ago•0 comments

Anthropic's Landmark $1.5B Copyright Settlement Is Approved

https://techcrunch.com/2026/07/20/anthropics-landmark-1-5b-copyright-settlement-is-approved/
2•golly_ned•1h ago•2 comments

The Rise (and Fall?) Of Palantir [video]

https://www.youtube.com/watch?v=SfGUzSYEqY0
2•figmert•1h ago•0 comments

Official Package Registry of Veryl

https://veryl-lang.org/blog/official-package-registry/
2•dalance•1h ago•2 comments

Cairn|personal finance your own AI can read over MCP, read-only by construction

https://cairn.nnnsightnnn.com/dashboard
2•kautryii•1h ago•0 comments

Show HN: How to Get a Fable CoT for the Jacobian Conjecture Refutation

4•SonOfLilit•1h ago•0 comments

Show HN: I made email signatures less boring

https://esigna.app
4•rodgetech•1h ago•9 comments

Emily Wilson on Translations and Language (Ep. 63)

https://conversationswithtyler.com/episodes/emily-wilson/
2•paulpauper•1h ago•1 comments

How To Choose A Subproblem

https://millicosm.substack.com/p/how-to-choose-a-subproblem
5•paulpauper•1h ago•0 comments

On Being a Conservative

https://casssunstein.substack.com/p/on-being-a-conservative
3•paulpauper•1h ago•1 comments

OneCLI Is Live on the 1Password Marketplace

https://onecli.sh/blog/onecli-1password-marketplace
3•Jonathanfishner•1h ago•0 comments

Turning robot video into training-ready data

https://www.eventual.ai/blog/announcing-daft-physical-ai
1•DISCURSIVE•1h ago•0 comments

Show HN: AI Secretary – Stop checking your phone "just in case"

https://github.com/mathigatti/telegram-ai-secretary
1•mathigatti•1h ago•0 comments