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!

Cases of parasite that causes explosive bathroom emergencies surge to nearly 600

https://www.dailymail.com/health/article-15956735/cyclospora-parasite-outbreak-michigan-restauran...
1•Bender•1m ago•0 comments

X Launches iOS Video Editor with Captions and Green Screen

https://twitter.com/nikitabier/status/2074218166033781048
1•mak8•4m ago•0 comments

Decomposer: Learning to Decompile Symbolic Music (Like MIDI) to Programs

https://arxiv.org/abs/2607.01849
1•laybak•4m ago•0 comments

Pi (Rust): High-performance AI coding agent CLI written in Rust

https://github.com/Dicklesworthstone/pi_agent_rust
1•rsyring•8m ago•0 comments

I'm Betting My Company on Proactive Agents

https://polylane.com/blog/proactive-agents/
1•mooreds•10m ago•0 comments

Stet – a Markdown editor where every AI edit needs your sign-off

https://www.getstet.app/
1•DrewRaines•13m ago•0 comments

Millfolio – my take on local/hybrid AI

https://millfolio.app/blog/send-the-program-to-your-data/
1•winding•15m ago•0 comments

How Much Is AI Manipulating Us?

https://americanrefugees.substack.com/p/how-much-is-ai-manipulating-us
2•smitty1e•18m ago•2 comments

Apache Shiro security framework releases 3.0.0

https://shiro.apache.org/blog/2026/06/apache-shiro-300-released.html
1•lprimak•21m ago•0 comments

Show HN: QuickPing – dead simple way for customers to get in touch with you

https://www.quickping.dev/
1•jmcbca04•22m ago•0 comments

New Realtime models (GPT-realtime-2.1 and GPT-realtime-2.1-mini) on the API

https://community.openai.com/t/new-realtime-models-on-the-api-gpt-realtime-2-1-and-gpt-realtime-2...
2•soheilpro•26m ago•0 comments

Putin is losing his battle with reality [video]

https://www.youtube.com/watch?v=AAbtLR_n_E8
1•Bender•27m ago•0 comments

This Device Doesn't Make Sense (Sickos) [video]

https://www.youtube.com/watch?v=P4GnzlDkw5o
1•kordlessagain•28m ago•0 comments

Toy Story (2001)

https://www.embedded.com/toy-story/
2•matltc•28m ago•0 comments

Modest Shapes

https://herbertlui.net/modest-shapes/
2•herbertl•28m ago•0 comments

M9 Gun Director

https://en.wikipedia.org/wiki/M9_gun_director
2•bo0tzz•34m ago•0 comments

$2.35M Hybrid hypercar Czinger 21C

https://arstechnica.com/cars/2026/07/the-czinger-21c-might-be-the-wildest-car-we-drive-all-year/
2•Gaishan•38m ago•0 comments

Earliest octopi were giant top predators in Cretaceous oceans

https://www.science.org/doi/10.1126/science.aea6285
3•Gaishan•41m ago•1 comments

The UK Government Wants to Destroy Free Speech on YouTube [video]

https://www.youtube.com/watch?v=EKIKveClo6c
1•Bender•42m ago•0 comments

Show HN: Mandelbrot set renderer written in pure [BSD] Makefiles

https://github.com/b-aaz/bmake-extravaganza
2•b-aaz•49m ago•0 comments

Meta Tests Pocket, an Experimental App for AI-Generated Mini-Games

https://www.ghacks.net/2026/07/05/meta-tests-pocket-an-experimental-app-for-ai-generated-mini-gam...
1•LorenDB•50m ago•0 comments

Agentic Autonomy Levels

https://addyo.substack.com/p/agentic-autonomy-levels
1•backlit4034•54m ago•0 comments

LLMs Are Not a Default Execution Engine

https://unmeshed.io/blog/using-ai-wisely-starts-before-the-first-prompt
4•jusonchan81•56m ago•1 comments

Categorical, semantic perception of meaning of call types in zebra finches [pdf]

https://www.science.org/doi/10.1126/science.ads8482
1•thunderbong•58m ago•0 comments

I (er Claude) wrote an RSS de-duper

http://rsshose.com
2•scumola•58m ago•1 comments

Rust is in TIOBE Index top 10

https://www.tiobe.com/tiobe-index/
8•zdkaster•59m ago•1 comments

I created a free tool that pairs your Nasic and past performance to win contract

https://www.fedfinder.net/
5•sentinelowl•1h ago•2 comments

Claude Fable 5 Backlash Grows

https://tech.yahoo.com/ai/claude/articles/claude-fable-5-backlash-grows-213000534.html
3•cybermango•1h ago•0 comments

NASA's Webb Studies How Planet Survived Death of Its Star

https://science.nasa.gov/missions/webb/nasas-webb-studies-how-planet-survived-death-of-its-star/
2•gmays•1h ago•0 comments

Swapheic – Convert images in the browser, everything happens locally, no uploads

https://swapheic.com/
2•rajsuper123•1h ago•0 comments