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!

Show HN: CAVS – Open-source content-addressable updates for game assets

https://github.com/orelvis15/cavs-oss
1•orelvis15•50s ago•0 comments

Show HN: Essential Media Player – A web-based (PWA) local media player

https://essentialmediaplayer.com/
1•ZuLuuuuuu•1m ago•0 comments

Researchers Create Self-Replicating Seedbox in Quest for Decentralized Democracy

https://torrentfreak.com/researchers-create-self-replicating-seedbox-in-quest-for-decentralized-d...
1•synctext•1m ago•0 comments

Help Us Save MeshCore

https://blog.meshcore.io/2026/07/04/help-us-save-meshcore
1•geerlingguy•6m ago•0 comments

No-AI Label

https://en.wikipedia.org/wiki/No-AI_label
3•amelius•13m ago•0 comments

Social Geo App on AT Proto

https://pinnd.place/login
1•colomolo•14m ago•1 comments

JadePuffer ransomware used AI agent to automate entire attack

https://www.bleepingcomputer.com/news/security/jadepuffer-ransomware-used-ai-agent-to-automate-en...
2•Brajeshwar•15m ago•0 comments

Intelligent-Data /S

https://github.com/nicholascordova01/INTELLIGENT-DATA
1•alex_hirner•17m ago•0 comments

BSDun – Linux kernel module to load FreeBSD ELF binaries

https://gitlab.com/megastallman/bsdun
2•Tiberium•17m ago•0 comments

Beyond Horizon Analysis: Axiom Space – The First Orbital Real Estate Platform

https://beyondhorizonforesight.substack.com/p/beyond-horizon-analysis-axiom-space
1•beyondhorizonfs•17m ago•0 comments

Show HN: Daily Refreshed drop-in replacement for LiteLLM's model price map

https://cloudprice.net/models/api
2•gaploid•20m ago•0 comments

Show HN: Build offline-first web apps in pure Go and HTML

https://swag.mills.io
1•prologic•22m ago•0 comments

VapourDeck

https://spritesmods.com/?art=vapourdeck&f=rss
1•rcarmo•22m ago•0 comments

But what is quantum computing? (3blue1brown 2025)

https://www.youtube.com/watch?v=RQWpF2Gb-gU
3•andromaton•22m ago•1 comments

Generative AI like Midjourney creates images full of stereotypes

https://restofworld.org/2023/ai-image-stereotypes/
2•vinnyglennon•25m ago•1 comments

Show HN: Minicraft - Running Minecraft Classic from a Single Twitter Post

https://github.com/Kuberwastaken/minicraft
1•kuberwastaken•26m ago•0 comments

No Amazon? No problem:remote island built its own online shopping service

https://restofworld.org/2022/online-shopping-in-the-middle-of-the-ocean/
1•vinnyglennon•27m ago•0 comments

Running the '80s DECUS Star Trek game on my new MUMPS 76 interpreter

https://github.com/rochus-keller/MUMPS/blob/main/Readme.md
2•Rochus•29m ago•1 comments

A philosophical and neurocognitive manifesto on AI and ontological trauma

https://github.com/RiccardoGenco/genesis-2.0/blob/master/README.md
1•obs3ssion•30m ago•0 comments

Home made GPU escalated quickly [video]

https://www.youtube.com/watch?v=qMR3IXF2sWw
1•erichocean•31m ago•0 comments

Astryx Design System

https://astryx.atmeta.com/
1•ildon•34m ago•1 comments

QEMU-portable bundled QEMU for Node.js, no install required

https://github.com/Giulio2002/qemu-portable-ts
1•funnygiulio•39m ago•0 comments

Process Market Fit

https://kingsleyk.substack.com/p/process-market-fit
1•vinnyglennon•39m ago•0 comments

The Engineer in the Half-Space

https://yusufaytas.com/the-engineer-in-the-half-space
21•yusufaytas•42m ago•1 comments

ComplianceAgent: Open-source EU AI Act compliance scanner

https://github.com/latreon/compliance-agent
1•latreon•44m ago•0 comments

Space TV

https://apps.apple.com/au/app/space-tv/id6772833511
2•sighmon•45m ago•1 comments

Binstack: Making a maximal multi-dimensional decision (2022)

https://longform.asmartbear.com/maximized-decision/
1•tosh•45m ago•0 comments

The fundamentals of AI transformation (that most orgs are getting wrong)

https://www.northshore.studio/blog/the-fundamentals-of-ai-transformation-that-most-organisations-...
1•adrianhoward•46m ago•0 comments

Opus Magnum Tournament [video]

https://www.youtube.com/watch?v=MmGhJhJpNiM
1•ivanjermakov•55m ago•0 comments

Prediction Markets Offer Bets on Wildfires

https://www.motherjones.com/politics/2026/07/prediction-markets-polymarket-wildfire-bets-ethics-a...
4•cdrnsf•56m ago•3 comments