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•11mo ago

Comments

zljdanceholic•11mo 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!

Decrypting a DPRK macOS infostealer: 571 values via CPU emulation

https://github.com/Darksp33d/hyperhives-macos-infostealer-analysis
1•darksp33d•19m ago•0 comments

ClearSpec – Turn vague goals into specs that AI agents can execute

https://www.clearspec.dev/
1•mikopiko•22m ago•0 comments

Global human population has surpassed Earth's sustainable carrying capacity

https://iopscience.iop.org/article/10.1088/1748-9326/ae51aa
1•littlexsparkee•24m ago•0 comments

Are We Augmented by AI Yet?

https://unskilled.blog/posts/are-we-augmented-by-ai-yet/
1•meysamazad•24m ago•0 comments

Asia's EVolution: How the Toyota Prius Comes to Die in Mongolia [video]

https://www.youtube.com/watch?v=KyEVDmoh5lo
1•WorldPeas•27m ago•0 comments

Show HN: A Framework for Evaluating Coding Agents on Sequential SWE

https://arxiv.org/abs/2604.03035
1•tdchaitanya•29m ago•0 comments

Mark Zuckerberg's turbulent bet on AI

https://www.ft.com/content/cd3c6867-2f73-417d-a299-fb91a57bfe08
2•bram98•32m ago•0 comments

OpenAI, Anthropic, Google unite to combat model copying in China

https://www.businesstimes.com.sg/international/global/openai-anthropic-google-unite-combat-model-...
2•doppp•34m ago•0 comments

Google AI Edge Eloquent (iOS)

https://apps.apple.com/us/app/google-ai-edge-eloquent/id6756505519
2•ukuina•37m ago•1 comments

Happiness is a maintenance problem, not a discovery problem

https://gist.github.com/emeitch/390360452a9f5e37fa39ff91c836edbd
1•emeitch•38m ago•0 comments

Sync Chrome Tabs Across Multiple Computers

https://www.rabbitpair.com/en/blog/chrome-tab-sync-across-devices-guide
1•xiguali•45m ago•0 comments

Gestify – Gesture Controls for Every Web Video

https://www.rabbitpair.com/en/blog/gestify-mobile-fullscreen-video-guide
1•xiguali•48m ago•0 comments

Old wisdom from StackOverflow (2021): Code quality is a competitive advantage

https://stackoverflow.blog/2021/10/18/code-quality-a-concern-for-businesses-bottom-lines-and-empa...
3•perpetua•59m ago•3 comments

Show HN: Wan 2.7 – AI Video Generator for Cinematic Content

https://wan27.co
1•danielmateo773•1h ago•0 comments

Brazil, India and Russia hold large reserves of rare earth but don't mine them

https://ourworldindata.org/data-insights/brazil-india-vietnam-and-russia-hold-large-reserves-of-r...
1•alphabetatango•1h ago•0 comments

Voxtype – Push-to-Talk Voice-to-Text for Linux and macOS

https://voxtype.io/
1•ticoombs•1h ago•1 comments

Show HN: Swarmed.DEV – The Autonomous AI Development Swarm

https://www.swarmed.dev
1•freezabb•1h ago•0 comments

Claude Is Not Your Architect. Stop Letting It Pretend

https://www.hollandtech.net/claude-is-not-your-architect/
2•gpi•1h ago•0 comments

Attention Residuals

https://arxiv.org/abs/2603.15031
1•djhemath•1h ago•1 comments

Agentic AI and Occupational Displacement: Multi-Regional Task Exposure Analysis

https://arxiv.org/abs/2604.00186
1•raviishgupta•1h ago•0 comments

Show HN: Coding Planets – turn GitHub contributions into sound and space

https://joaonetto.me/projects/music/
1•jnettome•1h ago•0 comments

MLX-Serve a Native LLM Runtime for Apple Silicon

https://ddalcu.github.io/mlx-serve/
2•ddalcu•1h ago•1 comments

Why We're Removing Our Programmatic Ads

https://prospect.org/2026/04/06/why-were-removing-our-programmatic-ads/
4•colinprince•1h ago•0 comments

Show HN: Portable offline LLM knowledge system that runs in browser

1•muthuishere•1h ago•0 comments

China Orders Bitchat Pulled from Apple App Store

https://decrypt.co/363367/china-orders-jack-dorseys-bitchat-pulled-from-apple-app-store
2•giuliomagnifico•1h ago•0 comments

DevTerm – Portable Terminal

https://www.clockworkpi.com/home-devterm
2•kristianpaul•1h ago•1 comments

Clockworkpi

https://www.clockworkpi.com
3•kristianpaul•1h ago•1 comments

Why the majority of vibe coded projects fail

https://www.reddit.com/r/ClaudeAI/s/Vkkzi4lUW0
20•juniormpakou•1h ago•10 comments

One Softie's View of the Evolution of Windows APIs

https://twitter.com/stevesi/status/2036921223150440542
4•jnord•1h ago•0 comments

Free Early Learning Content for Kids – Feedback Welcome

https://www.youtube.com/channel/UCuC2pezENaY3BTsDnACzY-w
1•fatbrother•1h ago•0 comments