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!

Zuckerberg says Meta made 'mistakes' in AI workforce shift

https://www.reuters.com/business/metas-zuckerberg-admits-mistakes-made-ai-transformation-2026-06-12/
1•1vuio0pswjnm7•37s ago•0 comments

In Re Meta Android Privacy Litigation [pdf]

https://dn711508.ca.archive.org/0/items/gov.uscourts.cand.450524/gov.uscourts.cand.450524.120.0.pdf
1•1vuio0pswjnm7•1m ago•0 comments

RTX 5080 and RTX 3090 Setup: 80 Tok/s on Qwen 3.6 27B Q8

https://imil.net/blog/posts/2026/rtx-5080-+-rtx-3090-setup-80+-tok-s-on-qwen-3.6-27b-q8/
2•iMil•2m ago•0 comments

Switzerland to vote on plan to cap population at 10M

https://www.bbc.com/news/articles/cx23kz7e76po
1•geox•5m ago•0 comments

Cattle and wildlife thrive side-by-side in Zimbabwe

https://www.dailymaverick.co.za/article/2026-06-09-the-science-of-sharing-land-how-cattle-and-wil...
1•rbanffy•10m ago•0 comments

Show HN: Paca – Lightweight Jira alternative for human-AI collaboration

https://github.com/Paca-AI/paca
1•pikann22•13m ago•0 comments

The five pillars of the post-AI interview

https://carette.xyz/posts/the_five_pillars_of_post_ai_interview/
1•weird_trousers•14m ago•0 comments

The PM Trap: AI Won't Turn Engineers into Managers

https://carette.xyz/posts/the_mud_and_the_mind/
1•LucidLynx•14m ago•0 comments

What Would It Look Like If the AI Bubble Popped?

https://www.thebignewsletter.com/p/what-would-it-look-like-if-the-ai
3•pimeys•17m ago•0 comments

The Fable 5 Jailbreak Shows Why AI Guardrails Alone Are Not Enough

https://www.agilehunt.com/blog/fable-5-jailbreak-ai-guardrails
2•vikzsharma•18m ago•0 comments

Espruino Performance Notes

https://www.espruino.com/Performance
1•tosh•19m ago•0 comments

A low-carbon computing platform from your retired phones

https://research.google/blog/a-low-carbon-computing-platform-from-your-retired-phones/
2•vikas-sharma•19m ago•0 comments

Anthropic Policy on the AI Exponential

https://www.anthropic.com/policy-on-the-ai-exponential
1•samber•20m ago•0 comments

Why Zig When There is C++, D, and Rust?

https://ziglang.org/learn/why_zig_rust_d_cpp/
2•tosh•22m ago•0 comments

MeshCore for Zephyr RTOS

https://github.com/liquidraver/ZephCore
1•BSDobelix•25m ago•0 comments

I Spent the Night Interviewing the AI the Government Just Recalled

https://blog.vigilharbor.com/door-with-no-lock
1•Calvin-Gibson•33m ago•0 comments

Mini Shai-Hulud, Miasma, and Hades Worms Target Bioinformati

https://socket.dev/blog/mini-shai-hulud-miasma-and-hades-worms-target-bioinformatics-and-mcp-deve...
1•rbanffy•35m ago•0 comments

Everything you ever wanted to know about anarchy (but were afraid to ask)

https://www.youtube.com/watch?v=L9V33prYC1U
1•RebootStr•48m ago•0 comments

AI calls for the most ambitious political agenda in the history of Europe

https://europe2031.ai/summary/
1•doener•49m ago•0 comments

Former OpenAI board member says Elon Musk offered her sperm donations

https://www.bbc.co.uk/news/articles/c33243j44p8o
1•xvxvx•55m ago•1 comments

Anthropic shuts down Fable, Mythos models following Trump admin directive

https://arstechnica.com/ai/2026/06/anthropic-shuts-down-fable-mythos-models-following-trump-admin...
2•jay_kyburz•58m ago•0 comments

Git 2.55-Rc0 Prepares for Rust to Be Enabled by Default

https://lore.kernel.org/git/xmqqik7pqeiq.fsf@gitster.g/
1•tjek•58m ago•0 comments

Pokémon Go players unwittingly contributed to tech with military drone uses

https://arstechnica.com/ai/2026/06/pokemon-go-players-unwittingly-contributed-to-tech-with-milita...
1•justaj•59m ago•0 comments

Meta's New AI Unit Is a Total Mess

https://www.wired.com/story/mark-zuckerberg-meta-employee-meeting-interrupt-ai/
2•reasonableklout•1h ago•0 comments

Solar-thermal desalination process operates at near 100% efficiency

https://physicsworld.com/a/solar-thermal-desalination-process-operates-at-near-100-efficiency/
2•zeristor•1h ago•0 comments

The Hacker Webring

https://ring.acab.dev/
1•thes1lv3r•1h ago•0 comments

Beeper – All your chats in one app

https://www.beeper.com/
2•thunderbong•1h ago•1 comments

Contrail Compute AIX the First RISC-V AI Execution Platform

https://www.epicsemi.com/products/contrail/contrail-compute/
2•EvgeniyZh•1h ago•1 comments

Factoring "short-sleeve" zero-heavy RSA keys with polynomials

https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/
2•fanf2•1h ago•0 comments

What if we legally required politicians to work regular jobs 2 months a year?

3•ekoeko•1h ago•2 comments