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•11mo ago

Comments

zljdanceholic•11mo 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: Time Pin – a Geo Guessr style game but history themed

https://www.crazygames.com/game/time-pin
1•AndreiCx•50s ago•0 comments

The world is entering a new era of wildfire

https://www.cnn.com/2026/04/26/climate/chile-wildfire-new-fire-era-intl-latam
1•mooreds•56s ago•0 comments

Man's search for meaning: The case of Legos

https://www.sciencedirect.com/science/article/abs/pii/S0167268108000127
1•mooreds•1m ago•0 comments

Alex Imas on Why Economists Might Be Getting AI Wrong – Odd Lots [video]

https://www.youtube.com/watch?v=uxMwmaGE64Y
1•mooreds•1m ago•0 comments

Tiled Words 6 Month Update

https://paulmakeswebsites.com/writing/six-months-of-tiled-words/
1•paulhebert•2m ago•1 comments

The Monkey Diet Experiment

http://www.nathanedwardwilliams.com/fun/monkeydiet.htm
1•busymom0•3m ago•0 comments

Cost of smoking in England up 25% to and£21.8B (2024)

https://ash.org.uk/media-centre/news/press-releases/latest-figures-show-cost-of-smoking-in-englan...
1•mmarian•6m ago•0 comments

I can never talk to an AI anonymously again

https://www.theargumentmag.com/p/i-can-never-talk-to-an-ai-anonymously
1•voisin•6m ago•0 comments

RuneBench – Agent Benchmark on RuneScape Gameplay Tasks

https://maxbittker.github.io/runebench/
1•rickcarlino•9m ago•0 comments

Cellphone-Location Tracking Poses Privacy Test at Supreme Court

https://www.wsj.com/us-news/law/police-geofence-warrants-phone-location-17d7cbe4
2•Cider9986•11m ago•0 comments

Nuclear Detonation: Weapons, Improvised Nuclear Devices

https://remm.hhs.gov/nuclearexplosion.htm
1•reconnecting•15m ago•1 comments

The Emerging Push to Extend Some US Benefits to IDF Soldiers

https://www.military.com/feature/2026/04/19/emerging-push-extend-some-us-benefits-idf-soldiers.ht...
2•cramsession•15m ago•0 comments

Databricks vs. Snowflake Weekly

https://claude.ai/public/artifacts/eb39f250-4869-4fb3-840d-d49620ee3b51
1•noashavit•19m ago•1 comments

How to remove One UI from a Samsung device?(2025)

https://tinygrab.com/how-to-remove-one-ui-from-a-samsung-device-note-this-is-likely-not-possible-...
1•rolph•19m ago•0 comments

I built a million-pixel canvas where strangers buy individual squares

https://pixel-wall-kofi-s1k3-production.up.railway.app/
1•matthewder•19m ago•0 comments

RLix: A scheduling layer for concurrent LLM RL

https://github.com/rlops/rlix
1•matt_d•19m ago•0 comments

AI as a Fascist Artifact – OSnews

https://www.osnews.com/story/144823/ai-as-a-fascist-artifact/
1•abdelhousni•19m ago•1 comments

It's time for the regular person to start testing local AI models

https://eeshans.com/writing/its-time-for-the-regular-person-to/
3•tipoffdosage904•19m ago•1 comments

Same algorithm, 16x faster: optimizing a vector search engine's hot path

https://dubeyKartikay.com/posts/sembed-engine-vector-search-performance/
1•birdculture•20m ago•0 comments

How the Kremlin's internet crackdown is frustrating Russians [video]

https://www.bbc.co.uk/news/videos/c75kpx2w452o
1•Cider9986•22m ago•0 comments

Mirror Field Operating System: a commit-boundary approach to AI governance

https://zippy-cucurucho-a24a3e.netlify.app/
1•tcook462•24m ago•0 comments

The Emerging Push to Extend Some US Benefits to IDF Soldiers

https://www.military.com/feature/2026/04/19/emerging-push-extend-some-us-benefits-idf-soldiers.html
1•tareqak•26m ago•0 comments

AI can cost more than human workers now

https://www.axios.com/2026/04/26/ai-cost-human-workers
3•Brajeshwar•28m ago•1 comments

Slay At Work – AI tool for freelancers to get more clients

https://slayatwork.com/
1•overplex•28m ago•1 comments

Self-Hosted Alternative to Telegra.ph

https://github.com/du82/nonograph
1•nohell•29m ago•0 comments

Show HN: Arktur – explore architecture and building history around you (iOS)

https://apps.apple.com/us/app/arktur/id6755520013
1•fjwater•31m ago•0 comments

FrontierSWE – Benchmark for long horizon coding tasks

https://github.com/Proximal-Labs/frontier-swe
1•pHequals7•34m ago•1 comments

The Underhanded C Contest

https://www.underhanded-c.org/
1•gregsadetsky•36m ago•0 comments

I learned Rust with rustlings, so I built the same thing for Go

https://github.com/Ichihiroy/golings
1•ichihiroy•36m ago•0 comments

Claude.md

https://gist.github.com/vinayakkulkarni/05954385ff86dd65ea8a21da6971add7
1•vinayakkulkarni•36m ago•0 comments