frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

zljdanceholic•7mo 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!

For First Time in Decades, Child Deaths Will Rise This Year

https://www.wsj.com/health/for-first-time-in-decades-child-deaths-will-rise-this-year-92c67b51
1•petethomas•5m ago•0 comments

Median Filter over Arbitrary Datatypes

https://martianlantern.github.io//2025/09/median-filter-over-arbitrary-datatypes/
1•martianlantern•5m ago•0 comments

Strategy Letter IV: Bloatware and the 80/20 Myth (2001)

https://www.joelonsoftware.com/2001/03/23/strategy-letter-iv-bloatware-and-the-8020-myth/
1•NavinF•6m ago•0 comments

Open, Vendor-Neutral Framework for AI/ML Compute Optimization

https://outerbounds.com/blog/six-steps-to-cost-optimization
1•frktcpumu•8m ago•1 comments

Google's Android for desktops and laptops is called "Aluminium – OSnews

https://www.osnews.com/story/143907/googles-android-for-desktops-and-laptops-is-called-aluminium/
1•abdelhousni•8m ago•1 comments

[Free Lifetime] [Connect with Travelers in Every City]

1•aacishh•9m ago•0 comments

Climbing a different kind of tree [video]

https://www.youtube.com/shorts/cIQ8vbiL_pA
1•programmexxx•10m ago•0 comments

Show HN: Lynkr – Claude Code-Compatible Proxy for Databricks/Azure Anthropic

https://github.com/vishalveerareddy123/Lynkr/wiki/Emulating-the-Claude-Code-Backend-for-LLM%27s-h...
1•vishalveera•11m ago•0 comments

Ask HN: Do you still think public blockchains/stablecoins are useless/a scam?

1•spir•12m ago•2 comments

Arrested by Phone: A Graphic Novel About a Real-Life Nightmare

https://www.bloomberg.com/graphics/2025-india-digital-arrest-by-phone-graphic-novel/
1•petethomas•15m ago•0 comments

Perplexity leaked its system prompt by accident just because I asked in Hindi

https://old.reddit.com/r/PromptEngineering/comments/1pdd66c/perplexity_leaked_its_entire_system_p...
1•achow•19m ago•0 comments

React2Shell (CVE-2025-55182/CVE-2025-66478)

https://react2shell.com/
1•orkj•25m ago•1 comments

Show HN: Mirror_bridge – C++ Reflection powered Python binding generation

https://github.com/FranciscoThiesen/mirror_bridge
1•fthiesen•26m ago•0 comments

Ethereum's Fusaka upgrade today added sharding via data availability sampling

https://twitter.com/ethereum/status/1996226190399455358
1•spir•28m ago•1 comments

Little something to help third world countries candidates

https://cvai.dev/
1•pukarkhanal•34m ago•1 comments

China planted so many trees it's changed the country's water distribution

https://www.livescience.com/planet-earth/plants/china-has-planted-so-many-trees-its-changed-the-e...
1•achow•34m ago•0 comments

Show HN: Onetone – A full-stack framework with custom C interpreter

https://github.com/onetoneframework/framework
1•tactics6655•35m ago•0 comments

A Cosmic Offense: Elias Canetti's contest against death

https://www.commonwealmagazine.org/cosmic-offense
1•diodorus•35m ago•0 comments

Uncloud - Tool for deploying containerised apps across servers without k8s

https://uncloud.run/
4•rgun•36m ago•0 comments

Lego ZX Spectrum – Tribute to Sir Clive Sinclair

https://beta.ideas.lego.com/product-ideas/1113841c-596d-4f28-be4a-367cc83e8ed1
2•sohkamyung•36m ago•0 comments

Zero-Setup Java Build Tooling via Mill Bootstrap Scripts

https://mill-build.org/blog/16-zero-setup.html
1•lihaoyi•44m ago•0 comments

I Have No Identification Cards – Robin Greenfield

https://www.robingreenfield.org/identification/
1•pkaeding•50m ago•0 comments

Mirror_bridge – C++ reflection for generating Python/JS/Lua bindings

https://chico.dev/Mirror-Bridge/
2•fthiesen•50m ago•0 comments

A Protocol for Measuring Answer Space Occupancy in Large Language Models

https://zenodo.org/records/17810543
1•businessmate•52m ago•1 comments

Foreign-dlopen: call dlopen from static programs

https://github.com/pfalcon/foreign-dlopen
1•todsacerdoti•1h ago•0 comments

Why our AI future may look less like Skynet and more like Olympus

https://awesomeworld.substack.com/p/why-our-ai-future-may-look-less-like
2•dstavisky•1h ago•1 comments

Gex X Rocks but Whatever

https://medium.com/@jonathacz99/what-a-sex-worker-notices-about-gen-x-and-gen-z-men-fd0d13b6c203
1•karmaniverous•1h ago•0 comments

Show HN: A Minimal Monthly Task Planner (printable, offline, no signup)

https://printcalendar.top/
4•defcc•1h ago•2 comments

Google has released Android 16 QPR2's source code

https://www.androidauthority.com/android-16-qpr2-source-code-3621513/
1•thunderbong•1h ago•0 comments

Faith

https://en.wikipedia.org/wiki/Faith
4•marysminefnuf•1h ago•2 comments