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!

Springer Nature retracts ~40 publications that trained ANNs on 'bonkers' dataset

https://www.thetransmitter.org/retraction/exclusive-springer-nature-retracts-removes-nearly-40-pu...
1•sundarurfriend•1m ago•0 comments

Show HN: A Werewolf-style puzzle with zero lying

https://www.cluesofwho.com/
1•soasme•2m ago•0 comments

Apple will not let me join the Developer Program – and will not say why

https://yomuapp.kulman.sk/support
1•tectiv3•4m ago•0 comments

PeerTube V8: manage your videos with your team

https://framablog.org/2025/12/09/peertube-v8-manage-your-videos-with-your-team/
2•tcit•4m ago•0 comments

Whitehall rejects £1.8B digital ID price tag – but won't say what it will cost

https://www.theregister.com/2025/12/09/uk_digital_id_costs/
1•jjgreen•5m ago•0 comments

Compiler Engineering in Practice – Part 1: What Is a Compiler?

https://chisophugis.github.io/2025/12/08/compiler-engineering-in-practice-part-1-what-is-a-compil...
1•todsacerdoti•6m ago•0 comments

OpenAI paused a focus on AGI for 8 weeks to quickly improve ChatGPT

https://www.wsj.com/tech/ai/openai-sam-altman-google-code-red-c3a312ad
1•Hyeonjong•6m ago•0 comments

DynamoDB: Resilience and lessons from the Oct 2025 service disruption

https://www.youtube.com/watch?v=YZUNNzLDWb8
1•belter•9m ago•0 comments

The Joel Test: 12 Steps to Better Code (2000)

https://www.joelonsoftware.com/2000/08/09/the-joel-test-12-steps-to-better-code/
1•tamnd•9m ago•0 comments

Velocity-Bridge: Copy on iPhone. Paste on Linux. No Cloud, No macOS Required

https://github.com/Trex099/Velocity-Bridge
1•thunderbong•12m ago•0 comments

Nano Banana

https://imgeditor.co/
1•bellamoon544•14m ago•1 comments

The Joy of Playing Grandia, on Sega Saturn

https://www.segasaturnshiro.com/2025/11/27/the-joy-of-playing-grandia-on-sega-saturn/
3•tosh•14m ago•1 comments

What Is a Codec and Why Is It Important for Video Streaming?

https://www.red5.net/blog/what-is-a-codec/
1•mondainx•19m ago•0 comments

SGML Syntax Reference

http://sgmljs.sgml.net/docs/sgmlrefman.html
1•fanf2•21m ago•0 comments

UN environment report 'hijacked' by US and others over fossil fuels

https://www.bbc.com/news/articles/c1w9ge93w9po
1•defrost•25m ago•0 comments

Embracing the Improbable

https://kevinkelly.substack.com/p/embracing-the-improbable
1•thm•28m ago•0 comments

The 70-20-10 growth formula that’s speeding up career success

https://www.indiatoday.in/education-today/jobs-and-careers/story/the-70-20-10-growth-formula-that...
1•rustoo•34m ago•0 comments

Factor 0.101 Now Available

https://re.factorcode.org/2025/12/factor-0-101-now-available.html
1•todsacerdoti•36m ago•0 comments

It's not censorship. It's democratic self-defense

https://civiceconomist.substack.com/p/its-not-censorship-its-democratic
4•ggirelli•36m ago•0 comments

Stop asking AI to write code

https://bsky.app/profile/beddel.bsky.social/post/3m7juvz7hwc25
1•mesenga•41m ago•1 comments

Show HN: Repack AI – Turn Any Article/Video URL into 10 Social Content Pieces

https://repackai.co/
2•azureray•42m ago•3 comments

Show HN: Arc – Android overlay to run custom AI prompts on any app

https://play.google.com/store/apps/details?id=com.rethink.arc&hl=en_US
1•rethink-hub•43m ago•0 comments

Show HN: A deterministic code-rewrite engine that learns from one example

1•heavymemory•44m ago•0 comments

Zero Lines of code. 1 AI prompt. 1 deployed website

https://github.com/cloudflare/vibesdk
1•bakigul•45m ago•0 comments

Campus Characters: Identical twins, the Byers, live identical lives (2014)

https://thedailytexan.com/2014/03/31/campus-characters-identical-twins-the-byers-live-identical-l...
1•TMWNN•46m ago•0 comments

EU launches antitrust probe into Google's use of online content for AI purposes

https://ec.europa.eu/commission/presscorner/detail/en/ip_25_2964
8•skilled•46m ago•1 comments

Show HN: A deterministic code-rewrite engine that learns from one example

1•hypmachine•47m ago•0 comments

30 Year Anniversary of WarCraft II: Tides of Darkness

https://www.jorsys.org/archive/december_2025.html#newsitem_2025-12-09T07:42:19Z
2•sjoblomj•49m ago•0 comments

Show HN: I built a website that runs itself. Roast my AI-generated content

https://www.stvck.dev
2•since•50m ago•2 comments

Stack Overflow: Challenge #14 Signal from Noise

https://stackoverflow.com/beta/challenges/79838396/challenge-14-signal-from-noise
1•signa11•52m ago•0 comments