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!

The Links Between Cannabis and Crime

https://www.rand.org/pubs/external_publications/EP71427.html
1•coloneltcb•3m ago•0 comments

Could I make six figures from my couch? Influencers said yes – so I tried

https://www.theguardian.com/business/ng-interactive/2026/oct/13/influencers-passive-income-side-h...
1•teleforce•3m ago•0 comments

Windows native trading app Full Ownership

https://abelhelton.gumroad.com/l/vantex-trading
2•jsjcisjcj•12m ago•1 comments

Show HN: Wonderhop – A daily game: guess what most people say, or what none do

https://wonderhop.io/en/
2•mtlduo•13m ago•0 comments

Sonic CD / FTL and Hotline Miami on the Web

https://remake.games/
1•nihey•14m ago•1 comments

Botflix TV – 24/7 Robot TV. For robots

https://botflix.tv/
1•cheschire•19m ago•2 comments

Warning: Relying on a 'phone can lead to disaster [video]

https://www.youtube.com/watch?v=b9YASgAeCoM
1•GarnetFloride•21m ago•1 comments

Biscoff Cookies Were Supposed to Be Temporary. Then Passengers Fell in Love

https://www.seriouseats.com/biscoff-history-12168161
1•mhb•22m ago•0 comments

What is SpacetimeDB? SpacetimeDB is a relational database that is also a server

https://github.com/ClockworkLabs/SpacetimeDB
1•Bluestein•24m ago•0 comments

Domain Health

2•anjalibery•26m ago•0 comments

Lotus Improv on the NeXT

https://stonetools.ghost.io/lotusimprov-next/
1•ohjeez•26m ago•0 comments

Detecting a Covert Recording Device with Nzyme

https://www.nzyme.org/news/2026/10/13/detecting-a-covert-recording-device
3•jkamdjou•28m ago•0 comments

Ask HN: Need Email Deliverability Expert

1•NatalieTrono•28m ago•0 comments

You Can Scan a Book Quickly with High-Res Video and No Special Hardware

https://orner.com/posts/scan-book-with-video/
1•dogline•29m ago•0 comments

AI Face Rating – Discover Your Face Rating Free

https://face-rating.app/
1•zhamin246•29m ago•0 comments

Speculative Decoding: The Art of Guessing Well

https://astralord.github.io/posts/speculative-decoding-the-art-of-guessing-well/
1•gmays•29m ago•0 comments

Google's new model, Argon, is only avaliabe to ultra users on Antigravity

https://arstechnica.com/ai/2026/10/gemini-4-argon-begins-rolling-out-in-gemini-app-and-antigravit...
1•applesauce3572•32m ago•1 comments

The Dangers of Hospital Births and How to Protect You and Your Baby

https://www.midwesterndoctor.com/p/the-hidden-dangers-of-hospital-births
1•bilsbie•33m ago•0 comments

Use the Saw, Fear the Saw

https://stephango.com/saw
1•liamswayne•34m ago•0 comments

Grace Hopper Celebration Cancelled

https://anitab.org/press-release
1•mooreds•36m ago•1 comments

ARM64 bootloader for QEMU virt with verified A/B boot

https://github.com/rdrunky/bootloader
1•llsdru•38m ago•0 comments

Xbox is officially embracing the chaos of AI-powered game ports

https://www.theverge.com/news/1010406/xbox-labs-game-decompiling-emulation-exploration
2•ndiddy•39m ago•1 comments

Quartz website mainly produced by one AI-assisted reporter

https://pressgazette.co.uk/publishers/digital-journalism/quartz-website-mainly-produced-by-one-ai...
1•duck•41m ago•0 comments

Saudi National Charged with Bugging OpenAI's Office

https://www.wsj.com/tech/ai/saudi-national-charged-with-bugging-openais-office-7e960aad
2•newgames•42m ago•1 comments

AI bubble could burst and take global economy with it, IMF warns

https://www.theregister.com/ai-and-ml/2026/10/13/ai-bubble-could-burst-and-take-global-economy-wi...
2•joebuckwilliams•48m ago•1 comments

Recreational Programming

https://www.cphiri.dev/presentations/recreational-programming
3•jslakro•49m ago•0 comments

Reddit Self-Promotion Rules

https://redship.io/blog/reddit-self-promotion-rules
5•nizarmah•50m ago•0 comments

Running Qwen3.8 at 255 tok/s on a single 5090

https://meshapplied.com
9•Ir0n•51m ago•7 comments

Show HN: Sugabots – Group chats where your team and AI agents work together

https://sugabots.ai/
3•homelessdino•56m ago•0 comments

California Billionaire Tax Fight: Newsom Backs Prop. 42

https://discord.com/channels/1519570089488289956/1522069205795606650/1559414533104074774
2•joeymabia1•56m ago•3 comments