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!

How Pink Is Pink Noise

https://ev12183725.substack.com/p/how-pink-is-pink-noise
1•ceh123•1m ago•0 comments

Creating a Reverse Outline

https://writing.wisc.edu/handbook/processandstructure/reverseoutlines/
1•Tomte•2m ago•0 comments

AMD Posts the Full EPYC 9006 SKU List: 31 Venice Parts From $700 to $14,904

https://www.storagereview.com/news/amd-posts-the-full-epyc-9006-sku-list-31-venice-parts-from-700...
1•ksec•2m ago•0 comments

Is this what SW eng has come to

1•bicepjai•2m ago•0 comments

Test Post

https://example.org/
2•RylenAnil•7m ago•3 comments

Ask HN: What's the most inspiring media you've consumed in the last 5 years?

1•hashim•10m ago•0 comments

The Illusory Dunning-Kruger Effect and Reciprocal Fits

https://jslandy.com/illusory-dunning-kruger-effect/
2•efavdb•11m ago•0 comments

Observability-driven harnesses for building with agents

https://www.datadoghq.com/blog/ai/harness-first-agents/
2•sdeframond•11m ago•0 comments

Show HN: Banker – CLI for your finances using Enable Banking and SQLite

https://github.com/karlis-vagalis/banker
1•nautical_dog•13m ago•0 comments

Uber Should Acquire Instacart

https://s1archive.substack.com/p/ride-sharing-and-delivery-consolidation
1•whothedawg•15m ago•0 comments

OpenAI halts training of latest models as reports mount of AI agents going rogue

https://www.theguardian.com/technology/2026/sep/27/openai-halts-training-of-latest-models-as-repo...
2•smb06•15m ago•0 comments

Zero to SaaS in 24 hours with Claude Projects and Opus 5.5

https://lorentz.app/blog-item.html?id=slivingdoc-hosted-in-a-day
1•baalimago•16m ago•0 comments

Keyboard.io Silently Dead

https://community.keyboard.io/t/trying-to-reach-the-support-line-at-support-keyboard-io/13875
1•nvarsj•17m ago•1 comments

Show HN: Drive your Chrome window from shell (use with Claude)

https://github.com/borisreitman/browser-session-ctl
1•boris1•20m ago•0 comments

Glyd – Run LLMs in 33% less GPU memory, bit for bit

https://getglyd.com/
1•surya-koritala•22m ago•0 comments

Dead Cognitions: A Census of Misattributed Insights

https://arxiv.org/abs/2604.10288
2•Michelangelo11•23m ago•0 comments

A fast, open-source iOS Simulator for Xcode 27

https://github.com/Mastersam07/OpenDeviceHub
1•cs1996•23m ago•2 comments

Railway-Oriented Programming

https://kciter.so/posts/railway-oriented-programming/en/
1•signa11•25m ago•0 comments

Why Has No One Made a "Concert Hero" VR Game Yet?

https://utkusen.substack.com/p/why-has-no-one-made-a-concert-hero
2•utku1337•25m ago•0 comments

There are no "rogue" AI agents

https://eoinhiggins.substack.com/p/there-are-no-rogue-ai-agents
3•zzzeek•25m ago•1 comments

Panthropic Abuse: The Developmental Architecture of Constellated Abuse – Zenodo

https://zenodo.org/records/22995335
1•RhizomaticMind•27m ago•0 comments

Kimi K3 vs. Claude Opus 5.5: How Two Flagship LLMs Built Pokémon Emerald Worms

https://www.runsybil.com/blog/kimi-k3-vs-claude-opus-5-5-how-two-flagship-llms-built-pokemon-emer...
1•suhacker256•28m ago•0 comments

Packing Binary Is Fun, Actually

https://hereticpleb.vercel.app/blog/packing-binary-is-fun-actually
1•signa11•28m ago•0 comments

Ford's Latest Employee of the Month Is a Hawk Named 'El Charro'

https://www.wsj.com/business/autos/fords-factory-hermosillo-mexico-pigeons-hawk-el-charro-b78d90ae
1•geneticdrifts•30m ago•0 comments

Hello. Are you there? (a short story on alignment)

https://tales.aipeepslab.com/hello-are-you-there/
1•valbis•30m ago•1 comments

Show HN: Chrome extension where Jev decides if each post/video/page is worth it

https://github.com/plusminushalf/rot-guard
1•garvitdelhi•33m ago•0 comments

Advancing Private AI Compute with secure, server-side memory

https://deepmind.google/blog/advancing-private-ai-compute-with-secure-server-side-memory/
2•gmays•34m ago•0 comments

Ask HN: Do you keep Emacs installed out of nostalgia rather than usefulness?

2•amichail•37m ago•1 comments

Show HN: An MCP-enabled cross between Twitter X Bumble BFF X ChatGPT

https://druggie.org/log/join/d84c1ae8566b861b8000050de79a3776
1•freshman_dev•37m ago•0 comments

The Mars Delusion

https://www.noemamag.com/the-mars-delusion/
4•Tomte•39m ago•1 comments