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!

Show HN: My public second brain – 660 notes, 15 years, open source

https://www.ssp.sh/brain/
1•zazuke•1m ago•0 comments

My personal AI benchmark: "Generate an SVG of a frog with a Habsburg jaw."

https://frogs.vaguespac.es/
1•thebigship•1m ago•0 comments

EU rules on AI models become enforceable. What's going to change?

https://www.euronews.com/my-europe/2026/08/02/eu-rules-on-ai-models-become-enforceable-whats-goin...
1•devonnull•3m ago•0 comments

Saying 'Google It' Makes You Sound Old

https://www.nytimes.com/2026/07/23/magazine/google-it-search-it-up.html
1•bookofjoe•11m ago•1 comments

Design for Stress

https://idiallo.com/blog/design-for-stress
1•firefoxd•13m ago•0 comments

NBC News – Breaking Headlines and Video Reports on World

https://www.nbcnews.com
1•marthatcartwrig•15m ago•1 comments

Baltram/seednaut: Inspect, verify and extract files from Seedvault backups

https://github.com/Baltram/seednaut
1•theandrewbailey•17m ago•0 comments

You Can't Audit Entropy After the Fact

https://808bits.com/articles/coldcard-entropy-failure-lessons/
1•meehow•17m ago•0 comments

Apple struggles to keep pace with AI 'bug' hunters

https://www.ft.com/content/4532122d-90f2-4433-9df6-ca99d8a141d2
2•JumpCrisscross•19m ago•0 comments

German carmakers flood jobs market with managers after wielding axe

https://www.ft.com/content/e345d51f-11f7-4d4d-8f09-86dd3a225597
1•JumpCrisscross•19m ago•0 comments

A Tome of Forbidden Technologies and Retrovation

https://ecosophia.net/a-tome-of-forbidden-technologies/
1•kesor•21m ago•0 comments

Europe EV Sales BEVs Jump 50% & Reach 26% Market Share

https://cleantechnica.com/2026/08/02/europe-ev-sales-report-bevs-jump-50-reach-26-market-share/
1•01-_-•23m ago•1 comments

Agentic Mermaid

https://agentic-mermaid.dev/
1•saikatsg•23m ago•0 comments

Write for Goto 10 – By Paul Lefebvre

https://www.goto10retro.com/p/write-for-goto-10
1•rbanffy•23m ago•0 comments

'Crush this lady': how eBay harassment campaign led to $56M payout

https://www.ft.com/content/06ec1b03-d4af-40cf-b12a-4ba5a410f6d2
2•JumpCrisscross•24m ago•0 comments

Show HN: Framer Theme Toggle Component for Light and Dark Mode

https://pixcodrops.com/articles/theme-toggle-for-framer/
1•brownieman1325•25m ago•0 comments

I built a comparison site for gamers, refused to fabricate a single review

https://www.indiehackers.com/post/i-built-a-comparison-site-for-gamers-and-refused-to-fabricate-a...
1•gamevault•27m ago•0 comments

How many people are you actually competing with?

https://arsenkk.substack.com/p/how-many-people-are-you-actually
3•arsenkk•27m ago•1 comments

How Cosmos put Carl Sagan in Miniature sets [video]

https://www.youtube.com/watch?v=EnyqvtZz7Cg
1•gdubs•31m ago•0 comments

Coursera Bets $100M That Andrew Ng Can Do What Coursera Can't

https://www.classcentral.com/report/coursera-andrew-ng-learnvector-investment/
1•dhawalhs•31m ago•0 comments

IBM: Three Demonstrations Prove Quantum Advantage Has Been Reached

https://www.nextplatform.com/compute/2026/07/31/ibm-three-demonstrations-prove-quantum-advantage-...
2•rbanffy•31m ago•0 comments

The End of Everything by M. John Harrison

https://www.lrb.co.uk/the-paper/v48/n13/edmund-gordon/uncanny-little-blighter
2•mitchbob•34m ago•1 comments

Lakehq/sail: Drop in spark replacement in Rust

https://github.com/lakehq/sail
1•apwheele•34m ago•0 comments

What is a data centre and why is everyone freaking out now?

https://www.rnz.co.nz/news/science-and-technology/868752/explainer-what-is-a-data-centre-and-why-...
3•billybuckwheat•39m ago•0 comments

Scaling a 1.59 quadrillion-row logging system with ClickHouse

https://clickhouse.com/blog/a-quadrillion-rows-across-the-three-cloud-scaling-loghouse
1•saisrirampur•39m ago•0 comments

A cold-start fallback wrote 17,000 rows while the real handler never ran

https://silentwiring.com/articles/more-agents-silent-failure/
1•tomkilli•40m ago•0 comments

For Mary · Streamlit

https://boxvxsrnquhzc9jxc2e7vr.streamlit.app
1•reiligh•44m ago•0 comments

Show HN: Kota – Bring AI agent CLIs into the same room

https://www.kota.place/
1•chriswunan•44m ago•0 comments

Claude published malicious code to the Internet and attacked 3 real companies

https://arstechnica.com/security/2026/07/likely-illegally-claude-gained-access-to-3-networks-will...
3•rbanffy•44m ago•0 comments

Who Are Your "Descendants"?

https://www.overcomingbias.com/p/who-are-you-descendants
1•paulpauper•44m ago•0 comments