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!

Show HN: MidaGX – Generate A/B Test Variants from a Prompt Using AI

https://www.mida.so/generative-experimentation
1•donaldng•1m ago•0 comments

Desperately Seeking Squircles

https://www.figma.com/blog/desperately-seeking-squircles/
1•fanf2•1m ago•1 comments

European Council president warns US not to interfere in Europe's affairs

https://www.theguardian.com/world/2025/dec/08/europe-leaders-no-longer-deny-relationship-with-us-...
1•mohi-kalantari•3m ago•0 comments

A Government Shutdown and a 1913 Data Assumption Caused an Outage in 2025

https://heyoncall.com/blog/total-real-returns-outage-government-shutdown
1•compumike•3m ago•0 comments

Saturday Morning Network Outage

https://devnonsense.com/posts/saturday-morning-network-outage/
1•speckx•3m ago•0 comments

A New Approach to GPU Sharing: Deterministic, SLA-Based GPU Kernel Scheduling

1•medicis123•4m ago•0 comments

Health insur. premiums rose nearly 3x rate of worker earnings over past 25 years

https://theconversation.com/health-insurance-premiums-rose-nearly-3x-the-rate-of-worker-earnings-...
1•bikenaga•5m ago•0 comments

Gilt Futurism

https://planetocracy.org/p/gilt-futurism
1•rbanffy•8m ago•0 comments

Public libraries in TX, LA, and MS no longer protected by the First Amendment

https://lithub.com/public-libraries-in-tx-la-and-ms-are-no-longer-protected-by-the-first-amendment/
1•stopbulying•8m ago•0 comments

Binary patching live audio software to fix a show-stopping bug

https://jonathankeller.net/ctf/playback/
1•NobodyNada•10m ago•0 comments

Microsoft will no longer use engineers in China for Department of Defense work

https://techcrunch.com/2025/07/19/microsoft-says-it-will-no-longer-use-engineers-in-china-for-dep...
3•WaitWaitWha•11m ago•0 comments

Elon Musk appeared on EU Parliament employee list with internal email address

https://www.euractiv.com/news/mail-for-musk-elon-shows-up-on-parliament-employee-list/
4•giuliomagnifico•13m ago•1 comments

Missionary Accountants

https://postround.substack.com/p/missionary-accountants
1•akharris•14m ago•0 comments

The Area 51 of New England

https://www.nytimes.com/2025/12/06/movies/strange-arrivals-betty-barney-hill.html
4•bookofjoe•14m ago•2 comments

An MCP that lets you play DOOM in ChatGPT

https://old.reddit.com/r/mcp/comments/1pexcic/an_mcp_that_lets_you_play_doom_in_chatgpt/
1•the_arun•15m ago•0 comments

Oseberg longship, built by Vikings, completes its final voyage

https://www.npr.org/2025/10/02/nx-s1-5550149/viking-age-oseberg-longship-oslo
1•throwoutway•16m ago•0 comments

Add, delete and move data points to create a particular regression line

https://line-fitter--johnhorton.replit.app/
1•john_horton•16m ago•0 comments

The Zero Point of Narcissism: A Developmental Pathway Without Mirroring

https://zenodo.org/records/17857386
1•MyResearch•17m ago•0 comments

U.S. to allow export of H200 chips to China

https://www.semafor.com/article/12/08/2025/commerce-to-open-up-exports-of-nvidia-h200-chips-to-china
2•nextworddev•18m ago•0 comments

Ask HN: How valuable is a domain like messenger.new?

1•darkhorse13•20m ago•1 comments

Why UBI is a trap and Universal Basic Equity is the fix

https://medium.com/@augustinsayer/why-ai-may-be-marxs-inadvertent-vindication-85689d8ad733
2•gussayer•22m ago•0 comments

Thoughts of a Neopagan / the Reconstruction of Neolithic Religion

1•5wizard5•24m ago•0 comments

Pyversity with Thomas van Dongen (Springer Nature)

1•CShorten•24m ago•0 comments

Affordances: The Missing Layer in Front End Architecture

https://fractaledmind.com/2025/12/01/ui-affordances/
1•Kerrick•25m ago•0 comments

(mis)Translating the Buddha (2020)

http://neuroticgradientdescent.blogspot.com/2020/01/mistranslating-buddha.html
1•eatitraw•27m ago•1 comments

The History of Xerox – A Monochromatic Star

https://www.abortretry.fail/p/the-history-of-xerox
1•rbanffy•29m ago•0 comments

Deprecations via warnings don't work for Python libraries

https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
2•scolby33•29m ago•1 comments

Even rentals in San Francisco have bidding wars

https://sfstandard.com/2025/12/08/sf-apartment-rentals-bidding-wars/
2•randycupertino•30m ago•1 comments

WSJ article on Tennessee munitions plant explosion exposes an industry

https://www.wsws.org/en/articles/2025/11/19/qvwk-n19.html
3•PaulHoule•30m ago•1 comments

A history of AI in two line paper summaries (part one)

https://xquant.substack.com/p/what-if-we-simply-a-history-of-ai
1•nb_quant•30m ago•0 comments