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!

FieldRobin – AI-native field service software for small service businesses

https://fieldrobin.com
1•pdgrg•1m ago•1 comments

Counterstrike 1969 TV Series

https://archive.org/details/counterstrike-1969-tv-series
2•petethomas•6m ago•0 comments

Trump orders aircraft carrier redesign to use steam catapults to launch jets

https://www.theguardian.com/us-news/2026/aug/13/trump-aircraft-carriers-steam-catapults
2•decimalenough•7m ago•0 comments

Users of psychedelics narratively turn bad trips into valuable experiences

https://www.sciencedirect.com/science/article/pii/S0955395920303352#bib0056
1•MrJagil•10m ago•0 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•duck•11m ago•0 comments

Definium says LSD-based pill reduces anxiety in late-stage study

https://www.reuters.com/business/healthcare-pharmaceuticals/definium-says-lsd-based-pill-reduces-...
1•oliverulerich•11m ago•0 comments

Cicada.os, Graphene.os for Your Laptop

https://kpres12.github.io/Cicada.OS/
1•kpres62•16m ago•1 comments

How Claude's watermarking (probably) works

https://johnjwang.com/post/2026/08/12/how-claude-watermarking-probably-works/
1•882542F3884314B•20m ago•0 comments

Infodump about Monkey Island

https://pants.fishing
2•dmarinus•21m ago•0 comments

User reports show problems with LinkedIn

https://downdetector.com.au/status/linkedin/
1•hahahaa•23m ago•0 comments

Border blaster

https://en.wikipedia.org/wiki/Border_blaster
4•petethomas•32m ago•0 comments

Programing language faster than Python for ML (Jaithon 3.1)

https://github.com/abhiramasonny/jaithon
1•AbhiramaVS•32m ago•2 comments

Elon Musk is suing California over an AI law. Here's why transparency matters

https://www.sfchronicle.com/opinion/openforum/article/ai-data-law-california-22382698.php
2•newsomix9xl•33m ago•0 comments

Portable Doom (Shareware) in a Single 6MB HTML File via WASM

https://wasi-doom.netlify.app/
1•badfox•34m ago•1 comments

Show HN: A 3-page information-theoretic lower bound on random TSP

https://zenodo.org/records/21911759
1•Dori_Lee•34m ago•0 comments

Show HN: Liferay Stylebook token generator CLI (NPM)

https://www.npmjs.com/package/stylebook-token-generator
1•jay__proto•36m ago•0 comments

The Future of Libraries in BPF

https://lwn.net/Articles/1084869/
1•pykello•38m ago•0 comments

Aluminum Frame PC Fan Corsi-Rosenthal Build (2023)

https://itsairborne.com/aluminum-frame-pc-fan-corsi-rosenthal-build-c28aa7ca8927
1•walterbell•42m ago•0 comments

Anthropic Is not worth much at all

https://s-1.vercel.app/posts/why-openrouter-can-be-the-next-great/
1•Taikhoom10•43m ago•5 comments

Executable SOAR playbook dataset – AI agents pay per record via HTTP 402

https://lateos.ai/soar/
1•leochong•46m ago•0 comments

The Infinite Policeman – A Crookery

https://medium.com/luminasticity/the-infinite-policeman-chapter-3-d3e8e30a6969
1•bryanrasmussen•47m ago•0 comments

Show HN: Curl Stock Research

https://stockchat.sh/cli
1•netless•49m ago•0 comments

Flock puts new 'guardrails' on license-plate cameras. Critics skeptical

https://www.sfchronicle.com/crime/article/flock-cameras-ceo-surveillance-policy-22384139.php
4•newsomix9xl•52m ago•1 comments

Openleaf: Overleaf's workflow. Obsidian's interface. None of the cloud

https://github.com/vicky157/openleaf
1•vikashjohn2505•52m ago•0 comments

The Jobless Boom Has Arrived

https://www.wsj.com/economy/jobs/the-jobless-boom-has-arrived-41361a06
5•petethomas•55m ago•0 comments

Daily driving PostmarketOS (Summer 2026)

https://blog.senderolinux.com/daily-driving-postmarketos-summer-2026/
2•WhyNotHugo•56m ago•1 comments

Air Purifiers as White Noise Machines

https://www.jefftk.com/p/air-purifiers-as-white-noise-machines
1•luu•56m ago•2 comments

End-to-end encrypted .env sharing

https://github.com/p-arndt/shenv
1•kermatt•57m ago•0 comments

How AI engines cite brands?

https://www.leapd.ai/blog/ai-visibility/how-chatgpt-google-ai-overviews-and-perplexity-source-inf...
2•Angelbirth1369•59m ago•1 comments

Ask HN: How are you preventing brainrot?

4•flyingcoder•59m ago•4 comments