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!

Dumber Mini: A Nokia-Style Phone with WhatsApp and Maps

https://dumbermini.com/
1•thunderbong•51s ago•0 comments

Trump, not Iran, is the greatest danger

https://www.theguardian.com/commentisfree/2026/jul/18/donald-trump-iran-world-danger-bombing-us
2•0x54MUR41•1m ago•0 comments

Show HN: AI mock interview tool that scores your answers – free, no signup

https://interviewpracticeai.com
1•BenGallagh•4m ago•0 comments

An Interesting Number (2005)

https://www.cut-the-knot.org/blue/InterestingStory.shtml
1•wolfi1•5m ago•0 comments

South Korea wants the port of Busan to become a hub for polar shipping

https://asia.nikkei.com/spotlight/policy-asia/south-korea-s-lee-seeks-arctic-lift-for-country-s-s...
1•cromka•5m ago•0 comments

Qwen 3.8 Max Preview

https://www.qwencloud.com/pricing/token-plan
1•lebovic•5m ago•1 comments

Valve say there's no end in sight to the memory crisis, prices going to increase

https://www.pcgamer.com/hardware/steam-machines/valve-says-theres-no-end-in-sight-to-the-memory-c...
2•haunter•6m ago•0 comments

Qwen 3.8 with 2.4T parameters, available on Alibaba Token plan

https://twitter.com/Alibaba_Qwen/status/2078754377473601787
1•theanonymousone•7m ago•1 comments

Facebook Is Down

https://www.facebook.com/
2•eric_khun•11m ago•1 comments

Show HN: Shikigami, run AI coding agents in parallel, each in a Git worktree

https://shikigami.dev/
1•igor_nast•14m ago•0 comments

Half a Second – a book about the XZ backdoor

https://www.half-second.com/
1•zvr•14m ago•0 comments

Moon Phase Clock – Realistic, Full Screen

https://medium.com/@thesuperrepemail/moon-phase-clock-with-full-screen-mode-1a1e230fa710
2•mssblogs•15m ago•0 comments

Boys' ADHD symptoms linked to addictive social media use in new study

https://www.msn.com/en-us/health/other/boys-adhd-symptoms-linked-to-addictive-social-media-use-in...
2•jnord•15m ago•0 comments

Qwen3.8 is launching and going open-weight soon

https://twitter.com/Alibaba_Qwen/status/2078759124914098291
29•nh43215rgb•18m ago•2 comments

More emulation goodness, an Intel Itanium (IA-64) emulator that boots Windows

https://raymii.org/s/blog/Intel_Itanium_IA-64-Emulator_that_boots_Windows.html
1•jandeboevrie•25m ago•0 comments

Victora proposes new laws to target big tech and online trolls

https://www.abc.net.au/news/2026-07-19/victoria-social-media-big-tech-laws/106932668
2•aragilar•28m ago•0 comments

Anthropic runs large-scale code migrations with Claude Code

https://claude.com/blog/ai-code-migration
2•vinhnx•31m ago•0 comments

Ask HN: Is anyone else facing login issues on Facebook?

3•wasi0013•33m ago•3 comments

Protester calls out Amazon CTO for allowing Israel to use their AI towards Gaza

https://www.reddit.com/r/chaoticgood/s/4Pla2e38AV
3•trymas•33m ago•0 comments

Where I erred in my original post about Kimi and my views on open-weight AI

https://twitter.com/deanwball/status/2078619513575137330
2•tosh•33m ago•1 comments

When China's open-source AI is a trap

https://www.economist.com/international/2026/07/14/when-chinas-open-source-ai-is-a-trap
3•chvid•36m ago•2 comments

LG Monitors Caught Installing Adware and App with Access to All System Resources

https://www.privacyguides.org/news/2026/07/17/lg-monitors-caught-installing-adware-and-app-with-a...
3•taubek•36m ago•0 comments

DeepSeek routes your request to Fable5

https://twitter.com/synthwavedd/status/2078514339552628880
2•lijialjun•37m ago•1 comments

Refs: Mutable Arrays in jax

https://docs.jax.dev/en/latest/array_refs.html
1•cl3misch•37m ago•0 comments

We Merged with Machines a Long Time Ago – Futurology and Berggruen Institute [video]

https://www.youtube.com/watch?v=tDccIoz-SFI
1•lioeters•38m ago•0 comments

All the Cool Kids Are Birding

https://www.theatlantic.com/health/2026/07/birding-millennials-genz/687910/
1•ep_jhu•41m ago•0 comments

Show HN: OfflineTTS — Free browser-based TTS & STT that runs locally

https://offlinetts.com/
2•twainyoung•41m ago•0 comments

How to Start a Successful Freelance Business as a Software Developer (2017)

https://nickjanetakis.com/blog/how-to-start-a-successful-freelance-business-as-a-software-developer
1•downbad_•44m ago•1 comments

Sue (Dinosaur)

https://en.wikipedia.org/wiki/Sue_(dinosaur)
1•thunderbong•51m ago•0 comments

Mirror your GitHub repos to tangled.org automatically

https://synchub.to/
2•wertyk•56m ago•0 comments