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!

Startup Equity Survival Guide: what can go wrong with your equity before an IPO

https://github.com/huanghe/startup-equity-guide
1•hahaxixicc•5m ago•0 comments

Amimcp – let Claude work on your Amiga

https://github.com/thomas-luebker/amimcp
1•nickt•5m ago•0 comments

Show HN: AppPage – Fix Instagram blocking App Store links in your bio

https://apppage.co/
2•maulikdhameliya•9m ago•0 comments

Leopold Aschenbrenner Turned $100M into $45B Betting on AI – It Almost Blew Up [video]

https://www.youtube.com/watch?v=mJhGRim2MWY
1•mgh2•13m ago•1 comments

Designing with Code

https://justinjay.wang/designing-with-code/
1•prismatic•19m ago•0 comments

Software Engineering is dead (again)

https://fffej.substack.com/p/software-engineering-is-dead-again
1•ColinEberhardt•25m ago•0 comments

I got an email about resistance

https://www.seangoedecke.com/i-got-an-email-about-resistance/
1•savanaly•25m ago•0 comments

Show HN: VidServe – Turn any local video folder into a LAN streaming site

https://guokai.dev/vidserve/
1•hanguokai•30m ago•0 comments

Reducing Graphics API Complexity: A Clean Slate Design for Modern GPUs [video]

https://www.youtube.com/watch?v=aQv9pUl9PBM
1•matt_d•35m ago•0 comments

I Built Computer Engineering for Babies

https://hackylabs.com/blogs/engineering/how-i-built-computer-engineering-for-babies
1•preetamjinka•35m ago•0 comments

An Innocent Driver Was Held at Gunpoint over a Flock Cam Mix-Up:Wrong Person/Car

https://www.motorbiscuit.com/an-innocent-driver-was-held-at-gunpoint-over-a-flock-camera-mix-up-w...
1•Markoff•40m ago•0 comments

Microsoft Word for Windows 1.1a, Native X64 Port

https://github.com/jmarshall23/msword
2•BruceEel•41m ago•0 comments

Show HN: Fixing optical computing jitter via fluid dynamics in GPU registers

https://github.com/PJHkorea/photonic-mesh-fng-router
1•PJHkorea•41m ago•1 comments

Driving a 7.3" 6-Color E-Paper Display in `no_std` Rust (ESP32-S3)

https://github.com/melastmohican/rust-reterminal-e1002-examples
1•melastmohican•42m ago•0 comments

Muse Code Sends Codex and Claude Instructions to Meta by Default

https://runtimewire.com/article/exclusive-muse-code-sends-codex-and-claude-instructions-to-meta-b...
1•ryanmerket•42m ago•0 comments

Six months of action gaming alters brain networks and improves visual attention

https://www.psypost.org/six-months-of-action-gaming-alters-brain-networks-and-improves-visual-att...
1•giuliomagnifico•44m ago•1 comments

Meta CTO told employees AI gains should go into more work

https://thenextweb.com/news/meta-bosworth-ai-productivity-more-work-not-time-off
1•chanux•45m ago•1 comments

Termdom: Build terminal apps with HTML, CSS and the DOM

https://github.com/bikeshaving/termdom
2•thunderbong•51m ago•0 comments

NASA Wildfire Tracker – Real-time satellite feeds and microclimate risk modeling

https://nasa-wildfire-tracker-3pfkr5zcs2jmze5dpknvet.streamlit.app/
1•ClimateDev•53m ago•0 comments

Churvaness – Bilingual books for language learners

https://leanpub.com/u/churvaness
1•pawpatrol•56m ago•1 comments

Open Source, third-party auditing for AI Agents

https://github.com/ifixai-ai/iFixAi
1•dimneo24•1h ago•1 comments

Play Football Online

https://danfootball.com
2•declaj•1h ago•0 comments

Interviewpad.io

https://www.interviewpad.io/
2•sharva•1h ago•3 comments

Apple to require iOS apps must have minimum OS version of iOS 15 in 2027 onwards

https://www.reddit.com/r/iOSProgramming/comments/1vgql6n/new_warning_when_uploading_app_to_app_st...
2•busymom0•1h ago•2 comments

The Nixpkgs core team has unfortunately decided to disband

https://github.com/NixOS/org/pull/277
1•codewiz•1h ago•0 comments

The original URL for this prediction will no longer be available in 11 years (2011)

http://longbets.org/601/
57•doubletwoyou•1h ago•9 comments

How I sell my garlic online.

https://Demeterfamilyfarm.com
1•Hilliard_Ohiooo•1h ago•0 comments

Why MySpace fans want it back as relaunch hinted

https://www.bbc.com/news/articles/c4g64152v71o
3•1659447091•1h ago•0 comments

Small Talk to Deep Talk

https://talk.bradwoods.io/blog/small-talk-to-deep-talk
1•bradwoodsio•1h ago•0 comments

Show HN: Open-source, searchable HTML workspace for Claude Code

https://anona-labs.github.io/mirror/
1•anoop_kumar•1h ago•0 comments