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 Taxonomy of Moats (2019)

https://reactionwheel.net/2019/09/a-taxonomy-of-moats.html
1•rzk•2m ago•0 comments

A diagnostic for the "be more proactive" performance review

https://medium.com/@mike.salari.dev/be-more-proactive-take-more-ownership-72a07c24232a
1•salari_dev•5m ago•0 comments

Show HN: Sol-Luna – adaptive Codex orchestration that can choose zero workers

https://github.com/mahadansar/sol-luna-orchestrator
1•mahadansar•5m ago•0 comments

The Experience Feedback Loop

https://peterbloem.nl/blog/experience-feedback
1•riskone•7m ago•0 comments

Morsel-Driven Parallelism: A NUMA-Aware Query Evaluation Framework [pdf]

https://15721.courses.cs.cmu.edu/spring2016/papers/p743-leis.pdf
1•ksec•8m ago•0 comments

Amiga OS (UAOS)

https://github.com/stevereaver/uaos
2•doener•11m ago•0 comments

Show HN: My queue model made in a game

1•Lluis_0x•11m ago•0 comments

TestFlight for Steam

https://userplay.io/
1•0xnyn•15m ago•0 comments

What if you could build your SaaS without paying upfront?

https://www.indiehackers.com/post/what-if-you-could-build-your-saas-without-paying-upfront-908423...
1•AutFlowStudio•17m ago•0 comments

Keep It Up – Cookie Clicker, for Uptime

https://simpleobservability.com/games/keep-it-up
1•khazit•19m ago•0 comments

Young people don't trust AI – or the billionaires that tell us we should love AI

https://www.techradar.com/pro/young-people-increasingly-dont-trust-ai-or-the-billionaires-that-ke...
2•ksec•20m ago•0 comments

RVA23 vs. ARMv9 a Small Experiment

https://gist.github.com/camel-cdr/3a7aed17e017e8cab675ad696c7d14af
2•birdculture•21m ago•0 comments

Schism Tracker

https://schismtracker.org/
2•Bluestein•25m ago•0 comments

Show HN: The Data Forge – Generate up to 100K rows of JSON/CSV/SQL test data

https://zlvox.com/tools/data-forge
1•zlvox•26m ago•0 comments

Show HN: Customhouse – deterministic MCP proxy that blocks agent exfiltration

https://github.com/vineetpant/customhouse
1•vineetpant•30m ago•1 comments

SSOG: Near linear Visual-Attention that doesn't score but steers

https://www.pisoni.ai/posts/ssog/
1•4rtemi5•31m ago•2 comments

Bubblewrap is the only sandbox you need

https://lorentz.app/blog-item.html?id=bubblewrap
1•baalimago•32m ago•0 comments

Bay Area House Party

https://www.astralcodexten.com/p/the-foothills-of-bay-area-house-party
1•sgt101•35m ago•0 comments

Why travellers are obsessed with foreign supermarkets

https://www.bbc.com/travel/article/20260811-the-supermarket-is-becoming-a-tourist-attraction
1•edward•37m ago•0 comments

The Economist Who Predicted 2008 Crash Says AI Bubble Bursts Soon – Steve Keen [video]

https://www.youtube.com/watch?v=nx5FiWfD5U4
1•SockThief•38m ago•2 comments

Public preview runtimes on AWS Lambda: Node.js 26 and Python 3.15

https://aws.amazon.com/blogs/compute/introducing-public-preview-runtimes-on-aws-lambda-starting-w...
1•lumpa•40m ago•0 comments

What Is Reinforcement Learning

https://www.mathworks.com/discovery/reinforcement-learning.html
1•teleforce•43m ago•0 comments

Is Software Still the Point?

https://janbosch.com/field-notes-is-software-still-the-point/
2•ftomassetti•44m ago•0 comments

Beau­tiful Racket: Intro­duc­tion to language-oriented program­ming using Racket

https://beautifulracket.com/
1•signa11•47m ago•0 comments

Ask HN: Where to learn software engineering fundamentals?

1•mstank•47m ago•0 comments

US Navy 3D prints combat-ready drones and parts aboard during exercise

https://www.tomshardware.com/tech-industry/drones/flight-ready-drones-3d-printed-and-built-on-air...
1•giuliomagnifico•48m ago•0 comments

Show HN: Online FPS Test

https://fpstest.co/
2•artiomyak•49m ago•0 comments

The Two Factions of C++

https://herecomesthemoon.net/2024/11/two-factions-of-cpp/
1•signa11•50m ago•0 comments

App to detect and report potholes in Bengaluru

https://twitter.com/VaibhavSisinty/status/2088702363867742365
1•rohitpaulk•51m ago•0 comments

Show HN: RNet – AI token service provider

2•nextma•51m ago•0 comments