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•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 Summer of Mega-IPOs

https://www.carsongroup.com/insights/blog/the-summer-of-mega-ipos/
1•RickJWagner•1m ago•0 comments

Show HN: An adversarial reasoning engine for scientific progress

https://github.com/sparckix/ztare
1•Sparckix•2m ago•0 comments

Waiting times for healthcare in Europe: The worst countries ranked

https://www.euronews.com/health/2026/06/03/waiting-times-for-healthcare-in-europe-the-worst-count...
1•rawgabbit•6m ago•0 comments

Agentic AI spurred a boom in mobile apps, but they aren't gaining traction

https://twitter.com/jenzhuscott/status/2063032701087883647
1•rzk•7m ago•0 comments

Some concerns about Ladybird's (Browser) bylaws

https://tuananh.net/2026/06/06/ladybird-bylaws/#
1•rvz•7m ago•0 comments

Beyond Instagram: Introducing the NEXT Generation of Social Apps

https://techcrunch.com/2026/06/06/beyond-instagram-introducing-the-next-generation-of-social-apps/
1•odig•10m ago•0 comments

China wants to use AI to promote Xi Jinping's thinking

https://www.reuters.com/business/media-telecom/china-bets-ai-promote-president-xi-jinpings-thinki...
2•m-hodges•11m ago•0 comments

Zeroserve: A zero-config web server you can script with eBPF

https://su3.io/posts/introducing-zeroserve
1•losfair•11m ago•0 comments

GGUF vs. GPTQ vs. AWQ: The Plain-English Guide to LLM Quantization

https://vettedconsumer.com/gguf-vs-gptq-vs-awq-the-plain-english-guide-to-llm-quantization-and-wh...
1•ermantrout•13m ago•0 comments

Pride Is Alive

https://unlocked.microsoft.com/pride/
1•robinpie•13m ago•0 comments

Montenegro on track to join EU by 2028

https://apnews.com/article/eu-summit-balkans-montenegro-ceb66b7192c3c0f6fda10933b5c20fc1
2•wmlhwl•14m ago•0 comments

Sudo Report – Drudge clone for tech / AI / product

https://www.sudoreport.com
2•ataturkle•15m ago•1 comments

Exanthem

https://en.wikipedia.org/wiki/Exanthem
1•ZeljkoS•17m ago•0 comments

Show HN: Minimal native macOS sandbox for Claude and Codex

https://github.com/sheremetyev/sandfence
1•sheremetyev•18m ago•0 comments

Google confirms Digital IDs coming to UK to bolster ID checks on Android devices

https://www.gbnews.com/tech/google-wallet-age-check-android-uk
2•CGMthrowaway•20m ago•0 comments

Robot skin can feel pain now. The hard part is teaching it to think

https://medium.com/@alanscottencinas/robot-skin-can-feel-pain-now-the-hard-part-is-teaching-it-to...
1•encinas88•22m ago•0 comments

Parents Aren't Waiting to Pass Down Wealth

https://www.wsj.com/lifestyle/parents-arent-waiting-to-pass-down-wealth-fd615a4a
2•odig•23m ago•0 comments

Phantom Chat – iOS messenger with NIST post-quantum encryption (PQXDH)

https://testflight.apple.com/join/rmSrMch9
1•VeilusDigital•27m ago•0 comments

Motorola effectively bricked its entire line of WiFi routers without explanation

https://mashable.com/tech/motorola-wifi-routers-stop-working-motosync-plus-app-down
1•thisislife2•27m ago•0 comments

Moving beyond fork() + exec()

https://lwn.net/SubscriberLink/1076018/16f01bbbb8e0d1f0/
17•jwilk•37m ago•3 comments

Getting silly with C, part and((int*)1)[-1]

https://lcamtuf.substack.com/p/getting-silly-with-c-part-and-int1
2•Brajeshwar•40m ago•0 comments

The Apple Ad That Broke Microsoft [video]

https://www.youtube.com/watch?v=iBof-aNaDa0
1•lisper•41m ago•0 comments

Inflation is being driven up by investment in artificial intelligence

https://www.washingtonpost.com/technology/2026/06/06/inflation-is-being-driven-up-by-huge-investm...
3•reaperducer•44m ago•1 comments

Demystifying phone unlocking tools: A technical overview

https://osservatorionessuno.org/blog/2026/05/demystifying-phone-unlocking-tools-a-technical-overv...
3•boroaldo•45m ago•0 comments

"Sad to see Ted Chiang resorting to such bad arguments in this piece."

https://twitter.com/robertwiblin/status/2062479838879826387
1•Ariarule•47m ago•0 comments

Using Clause for Moodle content creation

https://ilite.substack.com/p/i-built-a-university-course-in-10
2•seanmarx69•47m ago•0 comments

Giant Floating Victorian Drydock

https://mastermariners.org.au/stories-from-the-past/6481-the-world-s-largest-floating-dry-dock-wa...
1•dtj1123•49m ago•0 comments

Trackr Bar – a macOS menu bar app for tracking AI usage and costs

https://www.trackr.bar/
2•jonaskamner•50m ago•0 comments

Average cost of living, anywhere on Earth

https://www.averagecostof.living/
5•azeemkafridi•54m ago•0 comments

Arc v0.0.2-alpha – Release Notes

https://github.com/VxidDev/Arc/releases/tag/v0.0.2-alpha
5•VoidDev•54m ago•0 comments