frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•12mo ago

Comments

zljdanceholic•12mo 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!

Graphene is on track to deliver on its promises (2019)

https://www.nature.com/articles/s41565-019-0557-0
1•simonebrunozzi•45s ago•0 comments

Livecodes – A Code Playground That Just Works

https://github.com/live-codes/livecodes
1•modinfo•11m ago•0 comments

Fujian Tulou

https://en.wikipedia.org/wiki/Fujian_tulou
1•simonebrunozzi•12m ago•0 comments

KMRI: A chunk-based compression format for MRI-style 3D volumes

https://github.com/Kiamehr5/KMRI
1•kiamehr•14m ago•0 comments

Ripple – the elegant TypeScript UI framework

https://www.ripple-ts.com/
2•modinfo•16m ago•0 comments

SMS blaster rising in Switzerland (French)

https://www.rts.ch/info/suisse/2026/article/sms-blaster-l-arnaque-aux-fausses-amendes-se-repand-d...
2•kuon•17m ago•0 comments

Man tar why we use -f

1•modinfo•20m ago•0 comments

Getting Gooier

https://contraptions.venkateshrao.com/p/getting-gooier
1•jger15•20m ago•0 comments

The Lore of Sam Altman Is Being Tested Like Never Before

https://www.wsj.com/tech/ai/the-lore-of-sam-altman-is-being-tested-like-never-before-968227ea
1•JumpCrisscross•22m ago•0 comments

Wikipedia in the Terminal

https://github.com/ImpulseDoes/wiki
2•thximpulse•26m ago•1 comments

The Bureaucratic Escalator and how it operates

https://profserious.substack.com/p/the-bureaucratic-escalator
2•idw•31m ago•1 comments

Does APL Need a Type System? (2018) [video]

https://www.youtube.com/watch?v=z8MVKianh54
1•tosh•35m ago•0 comments

Text Files as a User Interface

https://ratfactor.com/cards/text-files-as-ui
1•dev_hugepages•36m ago•0 comments

Matt Mullenweg thinks WordPress is in decline. He may be right

https://werd.io/matt-mullenweg-thinks-wordpress-is-in-decline-he-may-be-right/
2•vinhnx•37m ago•1 comments

Valuation Spaces and Relativisation: The Lambda Calculus Example

https://practal.com/blog/valuation-spaces-and-relativisation/
1•auggierose•38m ago•0 comments

ChatGPT Wrestles with Its Most Chilling Conversation: How Do I Plan an Attack?

https://www.wsj.com/us-news/chatgpt-mass-shooting-openai-78a436d1
3•vednig•38m ago•0 comments

Show HN: Speq – A collaborative web-based repository for your product's spec

https://getspeq.com
1•iowes•48m ago•0 comments

Made in China means made in Yiwu

https://mondediplo.com/2026/05/08yiwu
1•JumpCrisscross•50m ago•0 comments

Do LLMs Reason, or Do They Just Predict Math Text?

https://daridor.blog/2026/05/01/do-llms-reason-or-do-they-just-predict-math-text/
3•beagle3•54m ago•1 comments

Investors pile into clean energy as Iran war drives push for energy security

https://www.ft.com/content/9921f2b5-c910-4cec-a50f-cad453935a1a
4•JumpCrisscross•59m ago•0 comments

MCPages

https://github.com/NoahCzelusta/mcpages
1•swimninja247•1h ago•4 comments

Thoth – open-source Local-first AI Assistant

https://github.com/siddsachar/Thoth
2•sydsachar•1h ago•0 comments

Comparison: Different AI systems structure decisions under real-world scenarios

https://zenodo.org/records/19443285
1•zobian_ai•1h ago•0 comments

MPA Renews Push for U.S. Site-Blocking Legislation, Citing Live Sports Piracy

https://torrentfreak.com/mpa-renews-push-for-u-s-site-blocking-legislation-citing-live-sports-pir...
1•gslin•1h ago•0 comments

Show HN: Apple's Sharp Running in the Browser via ONNX Runtime Web

https://github.com/bring-shrubbery/ml-sharp-web
2•bring-shrubbery•1h ago•0 comments

Awesome Vintage LLMs

https://github.com/entanglr/awesome-vintage-llms
1•whythismatters•1h ago•0 comments

Technology helps observers understand how iconic artworks were created

https://www.psu.edu/news/information-sciences-and-technology/story/technology-helps-observers-und...
1•saikatsg•1h ago•0 comments

Packages release more often than ever. Or do they?

https://www.viblo.se/posts/oss-releases-ai/
1•viblo•1h ago•1 comments

Enable password input feedback for sudo

https://wiki.archlinux.org/title/Sudo#Enable_password_input_feedback
1•seansh•1h ago•0 comments

Leeds Town Hall Organ Renewal

https://www.leedstownhall.co.uk/support-us/organ-renewal-project/
1•Lio•1h ago•0 comments