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

Comments

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

Permission Systems for Enterprise That Scale

https://eliocapella.com/blog/permission-systems-for-enterprise/
1•eliocs•48s ago•0 comments

US sanctions EU government officials behind the DSA

https://mastodon.social/@fj/115773761468906515
3•pojntfx•8m ago•0 comments

Show HN: Free QR Code Generator – Dynamic Tracking and Custom Logo – QrBarKit

https://qrbarkit.com/
1•daniel0306•10m ago•0 comments

Microsoft rolls out hardware-accelerated BitLocker in Windows 11

https://www.bleepingcomputer.com/news/security/microsoft-rolls-out-hardware-accelerated-bitlocker...
1•thunderbong•14m ago•1 comments

LongCat Avatar: Turn Any Photo into a Talking Video

https://www.longcatavatar.net/
1•chengzeyi•14m ago•1 comments

Slate AX: Wi-Fi 6 Gigabit travel router

https://www.gl-inet.com/products/gl-axt1800/
1•cl3misch•15m ago•0 comments

Unintentional Type Theory

https://ncatlab.org/nlab/show/unintentional+type+theory
1•measurablefunc•15m ago•0 comments

Google 2025 recap: Research breakthroughs of the year

https://blog.google/technology/ai/2025-research-breakthroughs/
1•Anon84•20m ago•0 comments

UK to ban deepfake AI 'nudification' apps

https://www.bbc.co.uk/news/articles/cq8dp2y0z7wo
2•GaryBluto•23m ago•1 comments

Ten mistakes marred firewall upgrade at telco, contributing to 2 deaths

https://www.theregister.com/2025/12/19/optus_emergency_outages_cause_report/
1•GaryBluto•25m ago•0 comments

Airplane lands itself after in-flight emergency, a first for aviation automation

https://www.cnn.com/2025/12/23/us/airplane-lands-itself-first-aviation-automation
1•breve•26m ago•0 comments

Starlink satellite fails, polluting orbit with debris and falling toward Earth

https://www.theregister.com/2025/12/23/starlink_satellite_fails_debris/
2•beardyw•29m ago•0 comments

Is This Normal? My new projector's picture is dull even though I paid for 4K

1•SorabAlavi•31m ago•0 comments

Ask HN: Anybody here ever write apps for Windows Phone?

1•ge96•31m ago•0 comments

What happened next:how a rape and murder case was solved 58 years later

https://www.theguardian.com/lifeandstyle/2025/dec/24/what-happened-next-how-a-shocking-and-case-w...
2•zeristor•32m ago•2 comments

I built an AI app for deep research, reverse image search, and price comparison

https://apps.apple.com/us/app/claritycheck-deep-search-ai/id6747683917
1•mamunaso•33m ago•2 comments

Trump Admin Reinvents US Digital Services Program After Elon Musk Fired Experts

https://www.techdirt.com/2025/12/23/trump-admin-reinvents-us-digital-services-program-after-elon-...
2•beardyw•34m ago•0 comments

Appark

https://appark.ai/en
1•xuechen006•35m ago•0 comments

Next JavaScript app is hacked, you just don't know it yet

https://audits.blockhacks.io/audit/your-next-js-app-is-already-hacked
1•block_hacks•35m ago•1 comments

The dpkg shell implementation (by Ian A. Murdock)

https://www.dpkg.org/history/ancient/dpkg-0.93beta.sh
1•fisheuler•36m ago•0 comments

Nobody knows how large software products work

https://www.seangoedecke.com/nobody-knows-how-software-products-work/
1•danielfalbo•38m ago•0 comments

Yes, Termux works just the same on Android-based "dumbphones"

https://old.reddit.com/r/termux/comments/1ptzzyz/in_case_anyones_curious_yes_termux_works_just_the/
1•sipofwater•39m ago•0 comments

Homophily

https://en.wikipedia.org/wiki/Homophily
1•nomilk•43m ago•0 comments

The lightest notes app implementation in 111 loc

https://github.com/antonmedv/textarea
2•birdculture•51m ago•0 comments

AutoCodeBench: Tencent Hunyuan revolutionizes AI programming evaluation

https://medium.com/@leivadiazjulio/autocodebench-how-tencent-hunyuan-revolutionizes-ai-programmin...
2•stareatgoats•52m ago•0 comments

Ultra-Wide Band: A Transformational Technology for the Internet of Things

https://www.eetimes.com/ultra-wide-band-a-transformational-technology-for-the-internet-of-things/
2•fzliu•53m ago•0 comments

Show HN: I built a system that locks you out until you rest

https://www.kensho.zone/
2•kenshozone•53m ago•0 comments

Consciousness May Require a New Kind of Computation FeaturedNeuroscience·

https://neurosciencenews.com/consciousness-computing-ai-30068/
1•_____k•58m ago•0 comments

C++: "We have try...finally at home"

https://devblogs.microsoft.com/oldnewthing/20251222-00/?p=111890
2•HeliumHydride•1h ago•0 comments

Research shows sharing of cavity-causing bacteria may not be only from mothers

https://www.uab.edu/news/health-medicine/research-shows-sharing-of-cavity-causing-bacteria-may-no...
1•thunderbong•1h ago•0 comments