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!

Easy (Horizontal Scrollbar) Fixes for Your Blog CSS

https://aartaka.me/easy-fixes.html
1•severine•2m ago•0 comments

The Unix Timesharing System 1974: Denis M. Ritchie and Ken Thompson

https://dl.acm.org/doi/epdf/10.1145/361011.361061
1•KnuthIsGod•3m ago•0 comments

The placenta goes viral: Retroviruses control gene expression in pregnancy [pdf]

https://pmc.ncbi.nlm.nih.gov/articles/PMC6177113/
1•thunderbong•5m ago•0 comments

What is so special about Emacs? [video]

https://www.youtube.com/watch?v=mJZDmO5yOxE
1•signa11•6m ago•0 comments

AI guardrails stripped from Meta and Google models in minutes

https://www.ft.com/content/5630ed79-a263-41ed-9a1a-321617ae310e
1•uxhacker•8m ago•1 comments

Pope Leo Warns of Risks from A.I. In 42,300-Word Encyclical

https://www.nytimes.com/2026/05/25/world/europe/pope-leo-encyclical.html
1•adrianhon•11m ago•1 comments

Mark Zuckerberg's Right-Hand Man Who's Unleashing AI at Meta

https://www.wsj.com/tech/ai/meta-andrew-bosworth-ai-3df12d4f
1•swolpers•13m ago•0 comments

The Conquest of Hip-Hop – pt. I

https://medium.com/the-hitmagist/the-conquest-of-hip-hop-pt-i-70534b69f4f4
1•bryanrasmussen•13m ago•0 comments

AgentSlice – Make AI coding agents ask before they edit

https://github.com/espenandreass1/agentslice
1•espenand•20m ago•0 comments

IBM Spins Off the First Pure-Play Quantum Chip Foundry

https://futurumgroup.com/insights/2-billion-chips-act-investment-in-quantum-bets-on-ibms-300mm-su...
2•rbanffy•20m ago•0 comments

MCP, MC Me [video]

https://www.youtube.com/undefined
1•AddisonHoff•21m ago•0 comments

Rising seas will swallow New Orleans. People need to start relocating now

https://www.cnn.com/2026/05/25/climate/new-orleans-sea-level-rise-relocation
1•breve•21m ago•1 comments

Zinc – zero-copy shared memory for polyglot stacks

https://mine-27913f41.mintlify.app
1•mohd-aman-k•23m ago•0 comments

Startup Viability Scoring Engine

https://www.tooldocket.com/2026/05/startup-viability-scoring-engine.html
1•stoicstoic•23m ago•0 comments

Show HN: I Built a Debugging Challenge for the AI Coding Age

https://theincidentchallenge.com/
4•stealthy_•24m ago•2 comments

Gemma 4: A new, budget-focused model in Posit AI

https://posit.co/blog/gemma-4-new-budget-focused-model-posit-ai
1•ionychal•26m ago•0 comments

Composer-cve-gate – pre-install gate for Composer, built after Laravel-Lang

https://github.com/sharkyger/composer-cve-gate
1•sharkyger•29m ago•0 comments

Is This Prime

https://isthisprime.com/game/
1•paulmist•30m ago•0 comments

Ask HN: First-time EM, quite lost – what helped you?

1•TheKernelTrick•30m ago•1 comments

Shannon Got AI This Far. Kolmogorov Shows Where It Stops

https://medium.com/@vishalmisra/shannon-got-ai-this-far-kolmogorov-shows-where-it-stops-c81825f89ca0
1•t-3•31m ago•0 comments

My AI agent called my code shit and took an unannounced vacation mid-sprint

https://medium.com/@kukushkinav/my-ai-agent-called-my-code-shit-took-an-unannounced-vacation-mid-...
2•KukushkinAV•34m ago•0 comments

Monumental Proof Settles Geometric Langlands Conjecture

https://www.quantamagazine.org/monumental-proof-settles-geometric-langlands-conjecture-20240719/
2•tamnd•36m ago•0 comments

Too Much Work to Do? Have Your Digital Twin Handle It

https://www.wsj.com/tech/ai/ai-agents-work-executives-a38400e1
3•thm•44m ago•0 comments

The time when Shopify and EC2 disliked each other

https://chetan343.substack.com/p/ec2-and-shopify-dislike-each-other
1•TheChetan•48m ago•1 comments

Show HN: HTML Deployer – AI Code to Website Publisher

https://chromewebstore.google.com/detail/html-deployer-1-click-ai/gihmknkabkkghpiocgnoiejagngdegea
2•slimcrm•48m ago•0 comments

How one of the Bay Area's most boring towns became the center of streaming

https://sfstandard.com/2026/05/24/los-gatos-netflix-headquarters-roku-reed-hastings/
3•littlexsparkee•48m ago•2 comments

Your Old Devices Depend on Dying Sensors. The Silicon Labs Incident Proves It

https://www.cambridge.org/engage/coe/article-details/6a054b304770e67d92e8c7a2
2•openrockets•54m ago•0 comments

Putting Animals on the Map

https://imagico.de/blog/en/putting-animals-on-the-map/
1•altilunium•58m ago•0 comments

College Kids Don't Want Your AI [video]

https://www.youtube.com/watch?v=48gbASLLK7U
4•mgh2•59m ago•0 comments

Best CMS Review 2026

https://old.reddit.com/r/cms/comments/1tn2hit/best_cms_review_2026_selfhosted_vs_saas_with/
2•Strodt•1h ago•0 comments