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!

Chinese billionaires having dozens of US.-born babies via surrogate

https://www.msn.com/en-us/news/world/the-chinese-billionaires-having-dozens-of-us-born-babies-via...
2•xqcgrek2•10m ago•0 comments

Signal1996.net

https://signal1996.net/
3•datalus•11m ago•0 comments

How I Use AI for Product Work

https://elezea.com/2025/12/ai-for-product-management/
2•cebert•15m ago•0 comments

Warp Drive: Scientists Say a Physical Warp Drive Is Now Possible

https://www.popularmechanics.com/science/a69663990/scientists-say-physical-warp-drive-now-possible/
2•bilsbie•19m ago•0 comments

Most people aren't fretting about an AI bubble. What they fear is mass layoffs

https://www.theguardian.com/commentisfree/2025/dec/12/ai-bubble-mass-layoffs-income-inequality
2•randycupertino•25m ago•1 comments

Show HN: Watchalong – live chatrooms for sports, shows, and events

https://watchalong.up.railway.app/
1•eigen-vector•26m ago•0 comments

iRobot Stock Is Surging. Retail Traders Think It's a New Short-Squeeze

https://www.businessinsider.com/irobot-stock-price-short-squeeze-retail-investors-irbt-meme-stock...
2•antimora•28m ago•0 comments

De-anonymization attack on geolocated data (2014)

https://www.sciencedirect.com/science/article/pii/S0022000014000683
3•billybuckwheat•32m ago•0 comments

"Why would anybody start a website?"

https://daverupert.com/2025/09/why-would-anybody-start-a-website/
4•cdrnsf•35m ago•0 comments

I wrote JustHTML using coding agents

https://friendlybit.com/python/writing-justhtml-with-coding-agents/
3•alsetmusic•37m ago•1 comments

SPhotonix – 360TB into 5-inch glass disc with femtosecond laser

https://www.tomshardware.com/pc-components/storage/sphotonix-pushes-5d-glass-storage-toward-data-...
5•peter_d_sherman•37m ago•0 comments

Anesthesia Experiments Are Reviving Quantum Consciousness Theories

https://www.popularmechanics.com/technology/a69632925/quantum-consciousness-anesthesia-experiments/
3•bookofjoe•38m ago•2 comments

How the US freight rail industry got dirtier than coal power plants

https://www.reuters.com/sustainability/climate-energy/how-us-freight-rail-industry-got-dirtier-th...
1•geox•40m ago•0 comments

CapROS: The Capability-Based Reliable Operating System

https://www.capros.org/
4•gjvc•43m ago•0 comments

Layer Normalization as Fast as Possible

https://fleetwood.dev/posts/layernorm-as-fast-as-possible
1•montyanderson•45m ago•0 comments

Robot Vacuum Roomba Maker Files for Bankruptcy After 35 Years

https://news.bloomberglaw.com/bankruptcy-law/robot-vacuum-roomba-maker-files-for-bankruptcy-after...
22•nreece•46m ago•12 comments

Skövde, the tiny town powering up Sweden's video game boom

https://www.theguardian.com/games/2025/dec/12/skovde-sweden-video-games-goat-simulator-valheim-v-...
1•1659447091•47m ago•0 comments

Microsoft Copilot AI Comes to LG TVs, and Can't Be Deleted

https://www.techpowerup.com/344075/microsoft-copilot-ai-comes-to-lg-tvs-and-cant-be-deleted
11•akyuu•47m ago•6 comments

TV in America, Pt. 1 – Foundations

https://drmanhattan16.substack.com/p/the-history-of-tv-in-america-pt-1
1•paulpauper•48m ago•0 comments

Oliver Sacks fabricated key details in his books

https://boingboing.net/2025/12/12/oliver-sacks-fabricated-key-details-in-his-books.html
5•paulpauper•51m ago•3 comments

Frances Elizabeth Allen: The Woman Who Made Code Run Fast – and Was Forgotten

https://voxmeditantis.com/2025/12/13/frances-elizabeth-allen-the-woman-who-made-code-run-fast-and...
3•colinprince•52m ago•2 comments

Being There: On Working in Person

https://medium.com/@maspinwall22/being-there-5c167dd8b163
2•govmaspy•53m ago•2 comments

Ask HN: Best back end to run models on Google TPU?

2•vood•58m ago•0 comments

Grok is spreading misinformation about the Bondi Beach shooting

https://www.theverge.com/news/844443/grok-misinformation-bondi-beach-shooting
7•alsetmusic•1h ago•2 comments

Ravaan.art

https://ravaan.art/?seed=71dafa3svng
2•nateb2022•1h ago•0 comments

Sam Altman's Sprint to Correct OpenAI's Direction and Fend Off Google

https://www.wsj.com/tech/ai/openai-sam-altman-google-code-red-c3a312ad
1•babelfish•1h ago•1 comments

Larry Wall, the Guru of Perl (1999)

https://www.linuxjournal.com/article/3394
2•susam•1h ago•0 comments

If AI replaces workers, should it also pay taxes?

https://english.elpais.com/technology/2025-11-30/if-ai-replaces-workers-should-it-also-pay-taxes....
17•PaulHoule•1h ago•13 comments

UK Treasury drawing up new rules to police cryptocurrency markets

https://www.theguardian.com/technology/2025/dec/15/uk-treasury-drawing-up-new-rules-to-police-cry...
4•chrisjj•1h ago•0 comments

L5: A Processing Library in Lua for Interactive Artwork

https://l5lua.org/
2•azhenley•1h ago•0 comments