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!

Relevance of LTS distro releases and the GenAI world

https://lpc.events/event/20/contributions/2586/
1•Hendrikto•36s ago•1 comments

The new rules of context engineering for Claude 5 generation models

https://claude.dev/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models/
1•robluxus•7m ago•0 comments

Vibe Prospecting – B2B Prospecting from Claude and Claude Code via MCP

https://github.com/explorium-ai/vibeprospecting-mcp
1•zivnadil•8m ago•0 comments

A new language has been born in the Northwest (2022)

https://www.opb.org/article/2022/01/05/new-language-for-deaf-blind-born-in-northwest/
2•thunderbong•16m ago•0 comments

Sniffing a Bricked Glucose Monitor with Codex

https://medium.com/@farhanhubble/sniffing-a-bricked-glucose-monitor-with-codex-690c74229d02
1•farhanhubble•22m ago•1 comments

Shelley – a coding agent that lives in the browser

https://shelley.dev/
1•tosh•30m ago•0 comments

Google releases a new local-first Granola competitor

https://techcrunch.com/2026/10/08/google-releases-a-new-local-first-granola-competitor/
1•janandonly•33m ago•0 comments

Programmable pigments: Photochromic nanoparticle inks for rewritable tattoos

https://www.cell.com/matter-light/fulltext/S3117-5848(26)00119-5
1•Bluestein•39m ago•0 comments

Web Design in Auckland: Costs, Options and How to Choose

https://www.kiwiwebdesign.co.nz/affordable-web-design-auckland/
2•kiwiwebdesign•40m ago•0 comments

Land animals and ecosystems walloped in wake of end-Permian mass extinction

https://nhmu.utah.edu/press/land-animals-and-ecosystems-walloped-wake-end-permian-mass-extinction
1•gehwartzen•42m ago•0 comments

I build an open-source runtime security layer for AI agents – Let's break it

https://github.com/Pryxor/pryxor
1•makan09•45m ago•0 comments

Offline voice packs and an open-source agent that texts, calls, posts to Slack

https://github.com/eyeguide-dev/speakvora-pack-agent
1•speakvora•48m ago•0 comments

Pippa, a local AI assistant for everyday people

https://heypippa.app/en/
1•tschnorpfeil90•51m ago•0 comments

'Pure insanity': Mathematicians react to OpenAI's math results drop

https://www.theverge.com/ai-artificial-intelligence/1008726/openai-mathematics-solutions-chaos
1•sbulaev•52m ago•0 comments

I built a 100% client-side, privacy-first PDF utility at 18

https://snappdf.art
2•HaSH-tech•56m ago•2 comments

P2P Tunnels for Instant Access

https://holesail.io
2•janandonly•56m ago•1 comments

South Korea completes Arctic-Europe commercial voyage, eyes regular service

https://www.channelnewsasia.com/asia/south-korea-arctic-europe-commercial-voyage-6449811
2•Markoff•58m ago•0 comments

Show HN: Rezoom – one chat list for all your Claude Code sessions

https://github.com/BEX-Robotics/rezoom
1•bugpower•1h ago•0 comments

HuggingFace – Top Open Weights Models '26

https://franciscocarloserra.github.io/hf-top-models/
2•FranciscoCarlos•1h ago•1 comments

Open-source version of Adobe Creative Suite, built with Rust, using AI

https://petapixel.com/2026/10/07/someone-rebuilt-free-open-source-versions-of-photoshop-premiere-...
2•trakkstar•1h ago•0 comments

Show HN: Krashout, multiplayer car soccer in the browser

https://ball.krashout.io
3•wfme•1h ago•3 comments

The numbers are against small and medium-sized startups

https://www.yorba.co/internet-less/unimaginably-large
1•schmudde•1h ago•0 comments

The Fish Farming Industry's Dirty Secrets

https://www.nytimes.com/interactive/2026/10/08/magazine/farm-raised-fish-aquaculture-overfishing....
3•littlexsparkee•1h ago•1 comments

Ask HN: How would you go about domain change and getting a job in the domain?

1•joddystreet•1h ago•0 comments

Build an agent harness from scratch to pass Ian Goodfellow's intelligence test

https://notesbylex.com/building-an-agent-harness-from-scratch
1•lexandstuff•1h ago•0 comments

Brothers Karamazov was Einstein's favorite novel

https://twitter.com/patrickc/status/2109122600630952282
3•tosh•1h ago•1 comments

Show HN: CAPL Playground – compile and run Vector CAPL in the browser

https://github.com/oldrev/capl-playground
1•oldrev•1h ago•0 comments

Modular learning system: Assemble your own workspace

https://atheneum.app/
1•edonaamulaj•1h ago•0 comments

Show HN: Free website speed audit with real Lighthouse metrics

https://sazm.in/audit
2•sabayrid•1h ago•0 comments

Wind Finder

https://www.windfinder.com
1•nomilk•1h ago•0 comments