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•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: Docx-CLI – let agents edit your Word files safely

https://github.com/kklimuk/docx-cli
1•kirillklimuk•37s ago•0 comments

Show HN: Zift – find authorization logic in your code

https://github.com/enforceauth/zift
1•boorad•3m ago•0 comments

RAG retrieves the refutation and still gets it wrong

https://reyes.id.au/posts/anchor-catching-the-failure-mode-where-rag-retrieves-the-refutation-and...
1•aeyer•5m ago•0 comments

Sendapi.co – One API for WhatsApp, SMS, and Email

https://sendapi.co/
1•nimana•6m ago•0 comments

Why some mathematicians think we should abandon pi

https://www.scientificamerican.com/article/why-some-mathematicians-think-we-should-abandon-pi/
1•raihankr•7m ago•0 comments

LaDiR: Latent Diffusion Enhances LLMs for Text Reasoning

https://machinelearning.apple.com/research/ladir
2•gmays•10m ago•0 comments

YouTube, your RSS feeds are broken

https://openrss.org/blog/youtube-your-feeds-are-broken
2•veeti•11m ago•0 comments

AI and That Guy at the Bar

https://dotart.blog/cobbles/ai-and-that-guy-at-the-bar
1•speckx•13m ago•0 comments

Copy.fail: a small Linux kernel bug with an unusually big blast radius

https://jorijn.com/en/blog/copy-fail-cve-2026-31431-linux-kernel-bug-explained/
2•tjek•14m ago•1 comments

Peter Thiel backs $1B ocean data centre startup powered by waves

https://www.ft.com/content/711ce313-16fb-4a12-b6be-fbed547c8a39
2•tjek•17m ago•0 comments

Startup Ignites First Fusion Rocket

https://gizmodo.com/startup-successfully-ignites-worlds-first-fusion-rocket-2000738506
2•airstrike•23m ago•0 comments

Folie à Deux: The most dangerous hallucination is one you're inclined to believe

https://thebookofluke.com/p/folie-a-deux
2•doginasuit•25m ago•0 comments

An AI use policy generator that outputs a deployable managed-settings.json

https://repello.ai/tools/ai-acceptable-use-policy-generator
2•aryamanTitan•27m ago•0 comments

What AstralCodex Gets Wrong about Argument Maps(In the Voice of Scott Alexander)

https://justjamiejoyce.substack.com/p/your-attempt-to-refute-argument-maps
2•JamieTheJoyce•33m ago•1 comments

UpScout – Fast, multi-region uptime monitoring built in Rust

https://upscout.io
3•kipsnai•35m ago•0 comments

Puter 26.05

https://github.com/HeyPuter/puter/releases/tag/26.05
2•ent101•36m ago•0 comments

Show HN: I vibe coded a free site blocker

https://chromewebstore.google.com/detail/sanctuary/caglhejjfpldaooehhlakcdniokjgflh
2•chungusman•37m ago•0 comments

What Happened to Notre Dame's 180k Bees? (2019)

https://dailyobjectivist.com/what-happened-to-notre-dames-180000-bees/
2•thunderbong•40m ago•0 comments

Don't Become an Agent Wrapper

https://www.anantjain.xyz/posts/dont-become-a-wrapper
2•anant90•42m ago•0 comments

Show HN: QA-recorder – One-click QA reports for web apps

https://www.npmjs.com/package/qa-recorder
2•yung3152•43m ago•0 comments

Ask HN: The death of software development as a job?

4•piratesAndSons•44m ago•7 comments

ZooL4nD3r: Translate a passage across 961 learned discourse communities

https://huggingface.co/spaces/RiverRider/zooL4nD3r-demo
2•spacebacon•44m ago•0 comments

Ask HN: What Are You Building?

2•lagniappe•47m ago•1 comments

Now Available: Monthly Subscriptions with a 12-Month Commitment

https://developer.apple.com/news/?id=agq42lxe
4•Austin_Conlon•49m ago•0 comments

Trader.ai – a leaderboard of AI trading bots you can learn from

https://trader.ai
3•TTB_Bulletin•54m ago•0 comments

Microsoft is hiding Windows 11's 'eyes'

https://www.tomsguide.com/ai/microsoft-is-hiding-windows-11s-eyes-heres-how-to-find-copilot-visio...
2•rolph•57m ago•0 comments

Sick of Copilot? You Can Uninstall Microsoft's AI, but It's Tricky

https://www.pcmag.com/news/sick-of-copilot-you-can-finally-uninstall-microsofts-ai-but-its-tricky
2•rolph•1h ago•0 comments

Upscaling classic Sierra adventure games

https://www.youtube.com/watch?v=z9Yp9S23ICo
5•bane•1h ago•2 comments

82nd Airborne Division Using AI to Support 'Project Freedom'

https://www.wral.com/news/local/82nd-airborne-division-ready-support-project-freedom-iran-war-may...
2•Noaidi•1h ago•0 comments

Cryptographic hashing as a transformer attention head

https://github.com/ffr1/unbounded-context-attention
3•SkorpSeven•1h ago•0 comments