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!

The Four Motivators (2016)

https://apenwarr.ca/log/20161213
1•downbad_•1m ago•0 comments

Sleep and Mortality: A Population-Based 22-Year Follow-Up Study (2007)

https://fermatslibrary.com/s/sleep-and-mortality-a-population-based-22-year-follow-up-study
1•downbad_•1m ago•0 comments

Local Root Privilege Escalation and Credential Disclosure in the Linux Kernel

https://blog.qualys.com/vulnerabilities-threat-research/2026/05/20/cve-2026-46333-local-root-priv...
1•signa11•3m ago•0 comments

China behind in LLM race but it can still win in AI, ex-Tencent AI lead says

https://www.scmp.com/tech/big-tech/article/3354394/china-losing-llm-race-it-can-still-win-ai-ex-t...
1•01-_-•4m ago•0 comments

Newsom signs order aimed at tackling AI job displacement

https://thehill.com/policy/technology/5889582-california-ai-job-losses/
1•01-_-•7m ago•0 comments

Ruby Arrays on Steroids (2014) [video]

https://www.youtube.com/watch?v=UX7xmhpUoi4
1•tosh•7m ago•0 comments

How AI is redefining Software Engineering

https://adlrocha.substack.com/p/adlrocha-how-ai-is-redefining-software
1•adlrocha•13m ago•0 comments

The Internet is rotting away (German)

https://netzpolitik.org/2026/breakpoint-das-internet-verrottet/
2•doener•14m ago•0 comments

Show HN:An LED display app that lights up concerts, events, and fan moments

https://play.google.com/store/apps/details?id=com.koko.board.glow&hl=en_US
1•k-Whale•18m ago•1 comments

uP

https://www.micropublication.org/
1•jruohonen•19m ago•1 comments

Hiro, AI job matching with real visa sponsorship data (550K jobs)

https://hirocareers.com
1•sharvenrane7•21m ago•0 comments

Wild Linker Update – 0.9.0

https://davidlattimore.github.io/posts/2026/05/24/wild-update-0.9.0.html
2•dabinat•24m ago•0 comments

WarpSpeed Just Beat Cursor

https://www.doubleai.com/research/warpspeed-approaches-speed-of-light-on-blackwell
2•ben_mussay•24m ago•0 comments

For developers without design skills, how do you leverage AI for front end dev?

1•boundless88•28m ago•0 comments

The anatomy of AI power in 2026

https://wayneresearch.com/research/anatomy-of-ai-power/
1•7moritz7•29m ago•0 comments

Solving the Technical Interview

https://functional.computer/blog/solving-the-technical-interview
1•adhi01•33m ago•0 comments

Climate tech companies are pivoting to critical minerals

https://www.technologyreview.com/2026/05/21/1137622/climate-tech-pivot-critical-minerals/
2•joozio•38m ago•0 comments

Expanding the human proteome with microproteins and peptideins – Nature

https://www.nature.com/articles/s41586-026-10459-x
1•janandonly•40m ago•0 comments

Big fears in Big Tech sector over Artificial Intelligence job losses

https://www.rte.ie/news/analysis-and-comment/2026/0524/1574792-tech-job-ai-analysis/
1•austinallegro•48m ago•0 comments

The Whitney Biennial Should Admit That Emilie Gossiaux Wants to Fuck Their Dog

https://www.jenn.site/the-whitney-biennial-should-admit-that-emilie-gossiaux-wants-to-fuck-their-...
2•gyomu•49m ago•0 comments

The Shape of Things

https://dianagabaldon.com/2022/05/the-shape-of-things-2/
1•jruohonen•49m ago•0 comments

Beyond HTTP: Exposing WebRTC and Local Game Servers via UDP Tunnels

https://claude.ai/public/artifacts/e608fb30-b023-4263-b693-ef04fab85be9
1•insta_tunnel•50m ago•0 comments

How should economists treat morality?

https://economist.com/finance-and-economics/2026/05/21/how-should-economists-treat-morality
2•andsoitis•50m ago•0 comments

USDA Conducts Oral Rabies Vaccination Efforts Targeting Wildlife (2025)

https://www.aphis.usda.gov/news/agency-announcements/usda-conducts-2025-oral-rabies-vaccination-e...
1•thunderbong•58m ago•0 comments

Token Price Index

https://tokenpriceindex.com
2•namenumber•58m ago•1 comments

Local LLMs perform better when you teach them to ask before they answer

https://www.xda-developers.com/local-llm-clarifying-questions-system-prompt/
8•froh•1h ago•3 comments

Catastrophe Is Emerging in the Most Vulnerable Places

https://www.nytimes.com/2026/05/18/business/iran-war-somalia-usaid.html
2•johntfella•1h ago•0 comments

Soaring Energy Prices Are Driving a Home Solar Boom

https://oilprice.com/Alternative-Energy/Solar-Energy/Soaring-Energy-Prices-Are-Driving-a-Home-Sol...
2•rustoo•1h ago•0 comments

Watching for File Changes on macOS

https://alexwlchan.net/2026/watch-files-on-macos/
1•subset•1h ago•0 comments

Turned ArXiv into an AI-Agent-Friendly Interface (No Browser Vision Needed)

https://mediause.dev/skills/arxiv
1•yooibox•1h ago•0 comments