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!

Cohere's North Mini Code Megakernel Serving Engine

https://cohere.com/blog/megakernels
1•gmays•5m ago•0 comments

Build Agentic Memory That Keeps Your Loops Alive and Sharpens Them Every Run

https://memanto.ai/blog/agentic-memory-course-keep-loops-alive
1•supportm•8m ago•0 comments

1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it

https://blog.cloudflare.com/post-quantum-dnssec-1111/
1•vg•10m ago•0 comments

Preview Your Website on iPhone Duo

https://progressier.com/iphone-duo-simulator
1•kbst•11m ago•0 comments

Reduced AI cheating on a long task from 72% to 0 with 190 token agreement prompt

https://www.echohive.ai/grok-integrity-agreement-less-cheating
1•echohive42•11m ago•0 comments

The Last Essay

https://medium.com/human-parts/the-last-essay-e8ad0b0aa921
1•kashnote•14m ago•0 comments

Proof of Well-ordering of Y sequence

https://github.com/Phyrion1343/1Y-Well-Ordering-Lean/tree/main
2•nkochavi•16m ago•1 comments

river-classic - dynamic tiling Wayland compositor with flexible configuration

https://codeberg.org/river/river-classic
1•modinfo•17m ago•0 comments

Mathematicians Confront the AI Apocalypse

https://www.scientificamerican.com/article/mathematicians-confront-the-ai-apocalypse/
2•jonbaer•18m ago•0 comments

Aiope – An on-device AI agent for Android (terminal, browser, SSH, MCP)

https://github.com/XNet-NGO/aiope
3•xnet-admin•22m ago•0 comments

Discovery Loop is raising again, now at $50B valuation

https://www.businessinsider.com/jeff-deans-startup-discovery-loop-is-eyeing-a-valuation-2026-9
2•utiiiD•28m ago•0 comments

Story Beyond the Eye: Glyph Positions Break PDF Text Redaction

https://arxiv.org/abs/2206.02285
1•jumpocelot•29m ago•0 comments

Harness as a Service

https://www.harnessasaservice.dev/
1•iacguy•30m ago•0 comments

Micron's Taiwan workers to get rewards worth up to 68 months of pay

https://www.reuters.com/world/asia-pacific/microns-taiwan-workers-get-rewards-worth-up-68-months-...
2•teleforce•31m ago•0 comments

Dance MIDI Sample Pack Creator

https://monictheory.com/genre/dance/
1•song_synth•34m ago•0 comments

Hip Hop MIDI Sample Pack Creator

https://monictheory.com/genre/hip-hop/
1•song_synth•34m ago•0 comments

Military aircraft reportedly blamed for UK air traffic control outage

https://www.theguardian.com/world/2026/sep/12/military-aircraft-reportedly-blamed-for-uk-air-traf...
1•tmnvix•39m ago•0 comments

Show HN: Fog 2.0: I removed the AI auto-organizing I built my first app around

https://apps.apple.com/us/app/smart-notes-folders-fog/id6760272134
1•akshatsaladi•40m ago•0 comments

Surviving What I Can't Forgive

https://www.thecut.com/article/surviving-without-forgiveness.html
1•littlexsparkee•41m ago•0 comments

iPhone Duo and iPhone 18 Pro – Not Justifiable

1•wwolfson97•43m ago•6 comments

OpenAI puts Pro subscriptions on hold due to Astra demand

https://techcrunch.com/2026/09/10/openai-puts-pro-subscriptions-on-hold-due-to-astra-demand/
3•josefchen•49m ago•0 comments

Building your own agent harness is fun

1•mrsirg•51m ago•2 comments

Starlink Signal Leakage Threatens Radio Astronomy's Most Critical Frequencies

https://www.gadgetreview.com/starlinks-signal-leakage-is-threatening-radio-astronomys-most-critic...
16•upofadown•52m ago•0 comments

A Decade of Hype, 3k Roofs, and One Redirect URL: Tesla Kills the Solar Roof

https://www.gadgetreview.com/a-decade-of-hype-3000-roofs-and-one-redirect-url-tesla-kills-the-sol...
6•upofadown•55m ago•1 comments

Our $106k Kalshi "Bailout," Explained

https://greed.bot/blog/combo-wombo
2•kylecarbs•1h ago•0 comments

I present to you: Game Index, a power user game library manager

https://github.com/atxoxx/GameIndex
1•atxoxx•1h ago•0 comments

Richat Structure

https://en.wikipedia.org/wiki/Richat_Structure
1•jonbaer•1h ago•0 comments

Bernie's AI bill proposes to sentence AI developers to 20 years in prison

https://twitter.com/venturetwins/status/2098456905526211026
4•bilsbie•1h ago•0 comments

Ask HN: How do we deal with "hacking" Hacker News?

3•jumploops•1h ago•4 comments

Learning Alzheimer signatures by bridging EEG with spiking neural networks

https://www.sciencedirect.com/science/article/pii/S0925231226022885
3•giorgiodidio•1h ago•0 comments