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•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!

Hantavirus explained: Symptoms, transmission and treatment

https://epi.ufl.edu/2026/05/06/hantavirus-explained-symptoms-transmission-and-treatment/
1•rolph•1m ago•0 comments

Quilt Poems

https://leetusman.com/projects/quilt-poems/
1•andsoitis•1m ago•0 comments

Orthohantavirus

https://viralzone.expasy.org/213.html?outline=all_by_species
1•rolph•4m ago•0 comments

Encountering Artificial Intelligence: Ethical and Anthropological Investigations

https://jmt.scholasticahq.com/article/91230-encountering-artificial-intelligence-ethical-and-anth...
1•andsoitis•6m ago•0 comments

An SDK to accept payments from Agents

https://github.com/GTG-Labs/sangria
1•simantakDabhade•7m ago•0 comments

If AI cuts jobs, it would also threaten Social Security and Medicare

https://minnesotareformer.com/2026/04/17/if-ai-cuts-jobs-it-would-also-threaten-social-security-a...
2•littlexsparkee•8m ago•1 comments

Marco Rubio discovers he needs to take over Spirit Airlines

https://www.youtube.com/watch?v=whF9C5j7X8k
2•keepamovin•13m ago•0 comments

Show HN: Dreamwork – a job search site I made after Indeed fired my pregnant wif

https://www.dreamworkhq.com/
2•cojj25•13m ago•0 comments

Ridiculous Things I Utterly Love About Vampire Crawlers

https://kotaku.com/vampire-crawlers-survivors-garlic-poe-decks-chests-sponge-2000689719
3•PaulHoule•20m ago•0 comments

SpaceX IPO gives Musk unchecked power and forbids investor lawsuits

https://arstechnica.com/tech-policy/2026/05/report-spacex-ipo-gives-musk-unchecked-power-and-forb...
7•pzxc•31m ago•1 comments

Geography Is Four-Dimensional

https://sive.rs/4d
4•inatreecrown2•33m ago•1 comments

Nobody understands the point of hybrid cars

https://www.youtube.com/watch?v=KnUFH5GX_fI
3•incomplete•34m ago•0 comments

Cognitive Surrender

https://twitter.com/addyosmani/status/2052124873208799378
2•ayoisaiah•40m ago•0 comments

Kill SWITCH AGENDA: You'll own your car – until the government's AI

https://www.theblaze.com/align/kill-switch-agenda-youll-own-your-car-until-the-governments-ai-say...
3•bilsbie•50m ago•0 comments

The Vatican's Website in Latin

https://www.vatican.va/latin/latin_index.html
30•ks2048•52m ago•16 comments

Discord group guessed the URL to Anthropic's Mythos model before CISA used it

https://www.msn.com/en-us/technology/cybersecurity/discord-group-guessed-the-url-to-anthropic-s-m...
5•Imustaskforhelp•1h ago•5 comments

Alkaline-Activated Coal Gangue-Based Geopolymer Grouting Material

https://www.mdpi.com/1996-1944/19/9/1812
2•PaulHoule•1h ago•0 comments

Open weights are quietly closing up – and that's a problem

https://lobste.rs/s/jvvtif/open_weights_are_quietly_closing_up_s
5•maxloh•1h ago•2 comments

Six New High Severity CVEs for Next.js and 1 for React

https://github.com/vercel/next.js/releases/tag/v16.2.5
3•tkel•1h ago•2 comments

Show HN: Web client analyzing prediction market outcomes

https://o-u.ai
2•noplace1ikegone•1h ago•2 comments

Ask HN: GPTs, vs. Software Estimation

3•alaaalawi•1h ago•1 comments

How I made $350K from an open-source JavaScript library using dual licensing

https://www.paritydeals.com/blog/monetize-open-source-dual-licensing/
37•sachinneravath•1h ago•10 comments

PackRip – Browser-based Pokemon TCG pack opener (1999-2011)

https://www.packrip.co
2•liluzipert•1h ago•0 comments

The Global Effort to Figure Out Where Hantavirus Will Strike Next

https://www.wsj.com/health/hantavirus-contact-tracing-cruise-ship-3a9afe33
3•Anon84•1h ago•0 comments

What's the difference between a good thought experiment and a bad one?

https://philosophy.stackexchange.com/questions/138220/whats-the-difference-between-a-good-thought...
3•azeemba•1h ago•0 comments

Leaker: Why Apple Is Delaying the iPhone 18

https://www.macrumors.com/2026/05/06/this-is-why-apple-is-delaying-the-iphone-18/
2•mgh2•1h ago•0 comments

RSS Feeds Send Me More Traffic Than Google

https://shkspr.mobi/blog/2026/05/rss-feeds-send-me-more-traffic-than-google/
5•SpyCoder77•1h ago•1 comments

From a Harvard dropout to Oceanco visionary: 10 facts about Gabe Newell

https://www.boatinternational.com/features-reviews/who-is-gabe-newell-famous-for-valve-steam-oceanco
3•evo_9•1h ago•0 comments

What do you say when the AI asks "Let me know if you'd like me to proceed."

3•acquire9395•1h ago•3 comments

Was this Virginia office building built with missiles in mind?

https://www.washingtonpost.com/dc-md-va/2022/09/03/skyline-buildings-baileys-crossroads/
3•gnabgib•1h ago•2 comments