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!

DuckDuckGo Installs Increased 30% Amid Backlash to Google AI Search

https://firethering.com/duckduckgo-installs-google-ai-search-backlash/
1•steveharing1•3m ago•0 comments

Writing can help you escape AI delirium

https://cantible.com/@chris/posts/how-writing-can-help-you-escape-ai-delerium
1•cwbuilds•3m ago•0 comments

Versatility of Exasol with Agentic Engineering

https://www.exasol.com/blog/exasol-agentic-engineering/
2•fwberlin•4m ago•0 comments

France24 live stream is down since yesterday

https://www.france24.com/en/live
1•lastdong•4m ago•2 comments

Reckoning – GitHub Feedback Companion

https://github.com/SuperThinking/reckoning
1•superdhawan•8m ago•0 comments

Miniswift, SwiftUI Compiled in the Browser

https://miniswift.run/
1•lnrd•8m ago•0 comments

Unicode 18.0.0 Beta

https://www.unicode.org/versions/Unicode18.0.0/
1•birdculture•9m ago•0 comments

Show HN: Offline Typing Mastery

https://nodex.studio/products/typing-mastery.html
1•s3arch•10m ago•0 comments

Show HN: Awareen a screen time tracker that counts screen on time, not app time

https://github.com/Andebugulin/Awareen
1•Andebugulin•12m ago•0 comments

The neo-qwertz keyboard layout (German)

https://www.neo-layout.org/Layouts/neoqwertz/
1•joooscha•16m ago•0 comments

Claude, GPT, Gemini Agents Fail 72% of U.S. Healthcare Workflows

https://apnews.com/press-release/ein-presswire-newsmatics/claude-gpt-gemini-agents-fail-72-of-u-s...
2•Raven603•17m ago•0 comments

Franklin Pierce by David W. Blight

https://inpursuit.substack.com/p/franklin-pierce-by-david-w-blight
2•samclemens•20m ago•0 comments

Ask HN: What old developer tool do you still miss?

2•yashnitro•23m ago•4 comments

Discussion of SIMD, SOA, AOSOA (2019) [video]

https://www.youtube.com/watch?v=YGTZr6bmNmk
1•tosh•25m ago•0 comments

Chat UIs Are Lists Until They Aren't

https://tanstack.com/blog/tanstack-virtual-chat
1•swyx•25m ago•0 comments

Slow Down

https://x-x.codes/posts/slow-down
1•alex_x•29m ago•0 comments

The Download: puncturing the AI jobs panic

https://www.technologyreview.com/2026/05/26/1138028/the-download-ai-jobs-data/
1•joozio•31m ago•0 comments

Helped me see that there is a fault in the description and meta data

2•quintoncarroll•34m ago•0 comments

Duckle – the local-first data studio on DuckDB

1•souravroy78•36m ago•0 comments

Show HN: Mirdel – a local-first AI workspace with UI-based agent workflows

https://www.mirdel.ai
1•eshengsky•37m ago•0 comments

GitHub account of Nightmare Eclipse gone

https://github.com/Nightmare-Eclipse/
1•croes•39m ago•0 comments

Choosing to Stay Human means choosing when and how to use AI

https://www.oneusefulthing.org/p/choosing-to-stay-human
2•swolpers•40m ago•0 comments

Why We Invested in Anthropic

https://medium.com/point-nine-news/why-we-invested-in-anthropic-88f504a65d2a
1•lylo•41m ago•0 comments

Hacker who sold access to Oregon state emergency network for Bitcoin gets prison

https://www.oregonlive.com/crime/2026/05/hacker-who-sold-access-to-oregon-state-emergency-network...
1•latein•43m ago•0 comments

Many Objects Can Be Juggled (1997)

https://fermatslibrary.com/s/how-many-objects-can-be-juggled
1•downbad_•43m ago•0 comments

Python as a Declarative Programming Language (2017)

https://www.benfrederickson.com/python-as-a-declarative-programming-language/
2•downbad_•44m ago•0 comments

Imece – Distributed AI inference using volunteer GPUs and FLOP token

https://github.com/aslankose/imece
1•aslankose•46m ago•0 comments

JVM-native GraphQL federation gateway

https://feddi.dev
1•RebootStr•46m ago•0 comments

Show HN: PikoCI – self-hosted CI/CD inspired by Concourse, single binary

https://pikoci.com
1•xescugc•46m ago•0 comments

1 Dead, 9 missing in chemical tank rupture at pulp and paper mill

https://www.kgw.com/article/news/local/longview-plant-disaster/multiple-injuries-reported-in-chem...
1•estreeper•47m ago•0 comments