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!

Adm Programming Language

https://github.com/admlang
1•cthackers•1m ago•0 comments

Patching Zig's Std

https://marler8997.github.io/blog/zig-patch/
1•ingve•1m ago•0 comments

UK data centre giant removed evidence of China deal ahead of $35B listing

https://www.telegraph.co.uk/business/2026/10/10/uk-data-centre-giant-removed-evidence-of-china-de...
1•ilamont•1m ago•0 comments

What the Greeks Would Call Our Government [video]

https://www.youtube.com/watch?v=205IdzGJMJs
1•verdverm•2m ago•0 comments

Orion2re: A restoration effort for the Master of Orion II game engine

https://github.com/orion2re/orion2re/
1•JohnHammersley•4m ago•0 comments

AI's mathematics blitz pushes science into new territory

https://www.economist.com/science-and-technology/2026/10/12/ais-mathematics-blitz-pushes-science-...
1•sbulaev•4m ago•0 comments

Agentic BSS Explained: AI-Native Model, Architecture and Use Cases [pdf]

https://framerusercontent.com/assets/PKpdXtv0xAf0e4W4M53D2pUDpzg.pdf
2•y2so•5m ago•0 comments

Janas: Run LLMs larger than RAM by streaming experts from SSD

https://github.com/prabanta-dev/janas
1•khalidkhair•5m ago•0 comments

The CEO's of Broadcom and Intel Say the Quiet Part Out Loud about AI and ROI

https://wolfstreet.com/2026/10/12/ceos-of-broadcom-intel-say-the-quiet-part-out-loud-about-ai-and...
2•metadat•6m ago•0 comments

Making DNA: The Quest for Synthetic Life (2023)

https://www.asimov.press/p/dna
1•Eridanus2•9m ago•0 comments

Mozilla Welcomes Raffi Krikorian as Chief Technology Officer

https://blog.mozilla.org/en/mozilla/leadership/mozilla-welcomes-raffi-krikorian-chief-technology-...
2•greatgib•9m ago•1 comments

Artificial Intelligence in the Firm: Bottlenecks in Software Production [pdf]

https://fion.ac/jellyfish.pdf
1•EA-3167•10m ago•0 comments

Using Jev to make your agents write the code and design the app the way you do

https://blog.a7ul.com/agents-code-your-way.html
1•atulfiled•11m ago•0 comments

How to Win a Nobel Prize

https://onwisconsin.uwalumni.com/how-to-win-a-nobel-prize/
1•joebig•12m ago•0 comments

Covert Signaling Channel Between Air-Gapped Computers Using Thermal Manipulation

https://arxiv.org/abs/1503.07919
1•cthackers•12m ago•0 comments

Abliterated models can get you pwned

https://projectdiscovery.io/research/how-abliterated-models-can-get-you-pwned
1•cthackers•14m ago•0 comments

Show HN: Chkit – Schema, migrations and backfills for ClickHouse (like Drizzle)

https://github.com/obsessiondb/chkit
3•keks0r•15m ago•0 comments

Linux enthusiasts see 10-second kernel compilation times on the horizon

https://www.tomshardware.com/software/linux/linux-enthusiasts-see-10-second-kernel-compilation-ti...
1•mushstory•16m ago•0 comments

Ask HN: Are there any chat app around personal photos?

2•cpt100•19m ago•0 comments

How much semantic structure survives in a 32-dimensional sketch?

https://zenodo.org/records/22562016
1•andrespi•21m ago•0 comments

Epic Reportedly Pushing Devs to Use AI, Delays Star Wars and Marvel Shooter

https://www.ign.com/articles/epic-reportedly-pushing-devs-to-use-ai-delays-secret-star-wars-and-m...
4•password54321•24m ago•1 comments

KnightOS was an interesting operating system

https://drewdevault.com/blog/KnightOS-was-interesting/
2•birdculture•25m ago•0 comments

Ukrainian strikes on Yandex data centres caused Russian bot activity to plummet?

https://www.euronews.com/2026/10/12/did-ukrainian-strikes-on-yandex-data-centres-cause-russian-bo...
2•YZF•26m ago•1 comments

Trump Just Started the Debt Spiral [video]

https://www.youtube.com/watch?v=g1kgEiP1v10
2•Bender•29m ago•0 comments

Hello Python 3.15, goodbye 3.10, and now I can use 3.11

https://simonwillison.net/2026/Oct/12/python-3-15/
1•elffjs•29m ago•0 comments

Checking agent actions before they run

https://rebuno.io/blog/agent-guardrails
1•nnww•30m ago•0 comments

Vellum: A web engine in Minecraft for rendering modded GUIs

https://github.com/maxleiter/vellum
2•MaxLeiter•30m ago•0 comments

AI Is a Tool. Using It Well Takes Skill.

https://yyhh.org/blog/2026/10/ai-is-a-tool/
46•layer8•31m ago•22 comments

Phreak.ing – Internet Phone Switch

https://phreak.ing/
10•rickcarlino•31m ago•0 comments

Show HN: Turn spoken thoughts into system design diagrams

https://github.com/triggeredcode/lucid
1•triggered_code•32m ago•0 comments