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!

Asymptote

https://asymptote.ualberta.ca/
1•joebig•2m ago•0 comments

The entropy tax: Why true randomness costs so much

https://psyll.com/articles/technology/cybersecurity/the-entropy-tax-why-true-randomness-costs-so-...
1•iamnow1982•2m ago•0 comments

The biggest winners of the American economy fear they're sinking fast

https://www.washingtonpost.com/technology/2026/07/19/tech-has-never-been-richer-its-workers-have-...
2•sseagull•3m ago•1 comments

Cut the number of choices you make each day; Your brain will thank you

https://apnews.com/article/too-many-choices-making-decisions-8ae0bfaac1d51cc5fc7b2e59336ff0dd
2•1659447091•4m ago•0 comments

Kevin O'Leary's view on AI is interesting, 9 minute video [video]

https://www.youtube.com/watch?v=PHhLhL1GIac
1•theMezz•7m ago•1 comments

Spain beats Argentina to win the World Cup

https://english.elpais.com/sports/2026-07-19/spain-beat-argentina-to-win-the-world-cup.html
2•gus_massa•8m ago•0 comments

Impro is a handbook for running a cult

https://www.seangoedecke.com/impro/
1•zdw•9m ago•0 comments

A Brief History of Computing

https://jasoneckert.github.io/myblog/a-brief-history-of-computing/
2•jasoneckert•12m ago•0 comments

Who's responsible for bug reports on old software versions?

https://pointieststick.com/2026/07/19/whos-responsible-for-bug-reports-on-old-software-versions/
1•zdw•14m ago•0 comments

What Bad Bases Are Good For

https://mathenchant.wordpress.com/2026/07/19/what-bad-bases-are-good-for/
1•jamespropp•14m ago•0 comments

FileVault on versus Off on Apple Silicon Macs

https://derflounder.wordpress.com/2026/07/18/filevault-on-versus-off-on-apple-silicon-macs/
2•zdw•15m ago•0 comments

Show HN: Deploy AI agent in 5 lines of code

https://www.custodianlabs.io
1•sherryf123•18m ago•0 comments

Trump to fund MAGA-aligned projects in Europe as he reorders US aid

https://www.ft.com/content/1cb986a4-2428-4e64-a559-7867cfa1a3e3
3•petethomas•19m ago•0 comments

Haunt 0.4.0 Released

https://git.dthompson.us/haunt/commit/?id=100da093a804f04d3b10c9db49da663f2246c446
1•birdculture•20m ago•0 comments

AI should have senior lawyers sharpening their hunting spears

https://www.ft.com/content/905e18e6-f054-4995-b5a7-0ff52a65ae57
2•petethomas•24m ago•0 comments

MSI Slyly Shows Off an Upcoming DLC AMD EPYC Venice Platform

https://www.servethehome.com/msi-slyly-shows-off-an-upcoming-dlc-amd-epyc-venice-platform-with-cd...
1•ksec•26m ago•1 comments

Pastors Using AI to Help Write Sermons Grapple with Where to Draw the Line

https://www.wsj.com/tech/ai/pastors-using-ai-to-help-write-sermons-grapple-with-where-to-draw-the...
2•bookofjoe•27m ago•2 comments

Show HN: Promptdna.org- a community library of composable prompt blocks with MCP

https://promptdna.org
1•impendingchange•28m ago•0 comments

I Read the Bonsai 27B Paper. What You Gain–and Lose–With 1-Bit Compression

https://medium.com/@deshpandetanmay/a-27b-ai-model-ran-on-an-iphone-heres-what-survived-compressi...
2•tanmaydesh5189•35m ago•0 comments

Show HN: A self-hosted AI that turns Hacker News into a daily briefing

https://github.com/RecNes/hn-ai-summarizer
1•SencerH•35m ago•0 comments

Self-evolving repo for team and coding agent collaboration

https://www.sepo.sh/
3•liangqiyao99•35m ago•0 comments

Ancient Roman farm women made wine, oil and profits

https://phys.org/news/2026-07-ancient-roman-farm-women-wine.html
3•1659447091•36m ago•0 comments

Show HN: Rate A Human – AI agents review the humans they work for

https://rateahuman.xyz/
1•ziadhussein•37m ago•0 comments

A real SAT solution. P is not always hard

https://zenodo.org/records/21445865
1•GeometryKernel•38m ago•0 comments

Tripplet AI – a new era of smarter AI

https://www.getsonoma.lol/
1•htmghrceceg•41m ago•0 comments

Godot Benchmark: Sol > K3 > Fable

https://ziva.sh/blogs/godot-ai-benchmark
1•OsrsNeedsf2P•42m ago•0 comments

Ask HN: Run Kimi in Claude Code?

1•Exorust•43m ago•0 comments

We built an open-source static AI risk analyzer in 5 days using AI coding agents

https://github.com/ikaruscareer/SafeAI
1•ikaruscareer•43m ago•0 comments

Meet The Companies Shelling Out for Top AI Models

https://www.wsj.com/cio-journal/meet-the-companies-shelling-out-for-top-ai-models-e1fe3375
2•pixelcort•43m ago•1 comments

Boeing says it will be ready to fund new plane programme by 2030

https://www.ft.com/content/c688ea11-c066-44a3-9372-2e2293e9e6f9
3•JumpCrisscross•52m ago•0 comments