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!

Spotlight Memory

https://www.percepta.ai/blog/spotlight-memory
1•ronfriedhaber•1m ago•0 comments

AI Experts Want to Do High-Stakes Research Out in the Open

https://www.wired.com/story/trillium-labs-wants-to-do-high-risk-ai-research-in-the-open/
1•pretext•4m ago•0 comments

Show HN: Analog Social Media

https://www.analogle.com/
1•lennartb•11m ago•1 comments

What are you watching

1•mogarn•12m ago•1 comments

Show HN: Sketio – a whiteboard that turns rough sketches into clean diagrams

https://draw.sketio.app
1•youyo_•19m ago•0 comments

Show HN: Grow and Control a Swarm

https://nohope.io
1•levmiseri•20m ago•0 comments

Boom Supersonic loses key customer

https://techcrunch.com/2026/09/25/crusoe-abandons-1-25b-plan-to-use-boom-turbines-at-ai-data-cent...
1•hubraumhugo•25m ago•0 comments

Show HN: A critical thinking site for kids and teens

https://critikid.com/
1•Critikid•27m ago•0 comments

Show HN: Zebu tracking/invoicing for freelancers and small teams

https://zebu.work/
2•waffl•32m ago•0 comments

4 Years of Early Retirement – Is It What I Imagined?

https://financialmechanic.com/4-years-of-early-retirement-is-it-what-i-imagined/
2•serhack_•37m ago•0 comments

Why should I have to pay more for buses if I don't use a smartphone?

https://www.theguardian.com/money/2026/oct/02/why-should-i-have-to-pay-more-for-buses-if-i-dont-u...
8•DamonHD•43m ago•0 comments

Chamath says open AI models are "commoditize your complement." Agree?

2•Dinuda•44m ago•1 comments

Ignore the naysayers. The new Firefox interface is awesome

https://www.newsonaut.com/articles/ignore-the-naysayers-the-new-firefox-interface-is-awesome
2•jyhrow•47m ago•0 comments

Zedgerr – self-hosted invoicing and bookkeeping for freelancers

https://github.com/vMawk/Zedgerr
1•vMawk•52m ago•0 comments

Solving Open Research Problems Together

https://research.meta.ai/blog/solving-open-research-problems-together
1•o4c•54m ago•1 comments

Anthropic commits $100M to Claude Frontier Academy to train 10k FDEs by 2028

https://www.unite.ai/new-anthropic-academy-backs-10-000-engineer-residencies-with-100m/
3•thoughtpeddler•55m ago•0 comments

Show HN: Halo – Dynamic Island for macOS that also works on external monitors

https://halo-mac.vercel.app/
1•otabekabdiraimo•55m ago•0 comments

Former SR-71 Engineer Talks NASA's Blackbird Revival Program

https://www.twz.com/air/former-sr-71-engineer-talks-nasas-blackbird-revival-program
3•rkagerer•59m ago•2 comments

Turso Is Joining Supabase

https://turso.tech/blog/turso-is-joining-supabase
2•ElasticBottle•1h ago•0 comments

In One Year I Went from AI Skeptic to AI Pilled

https://openengine.cc/blog/ai-skeptic-to-ai-pilled/
1•dethstrobe•1h ago•0 comments

What would BASIC look like if it had never gone out of fashion?

https://thoreaubasic.com/
3•Gorsefound•1h ago•1 comments

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
1•yarapavan•1h ago•0 comments

New in Llama.cpp: Decision Models

https://huggingface.co/blog/ggml-org/decision-models-in-llamacpp
3•nreece•1h ago•0 comments

AI Effect

https://en.wikipedia.org/wiki/AI_effect
2•thunderbong•1h ago•0 comments

Apple changes full-disk access permissions to curb abuse from AI agents

https://arstechnica.com/security/2026/10/apple-changes-full-disk-access-permissions-to-curb-abuse...
3•joozio•1h ago•0 comments

Show HN: I turned 27 classic behavioral experiments into a browser game

https://twentyfun.com/games/mind-lab
1•yesman_x•1h ago•0 comments

Mark Zuckerberg Profile

https://colossus.com/article/mark-zuckerberg-profile/
4•davezatch•1h ago•0 comments

French supercomputer maker Bull doubles output to boost Europe's AI ambitions

https://www.reuters.com/world/europe/french-supercomputer-maker-bull-doubles-output-boost-europes...
3•giuliomagnifico•1h ago•0 comments

Ideabrowser meets dark mirror – mobile apps you can build today that are WTF

https://trix.wtf/ideas/
2•cs1996•1h ago•0 comments

Co-pilot on Flydubai flight was banned from flying by Oman for extremist views

https://www.france24.com/en/middle-east/20261003-co-pilot-on-flydubai-flight-was-banned-from-flyi...
3•Markoff•1h ago•2 comments