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!

FL man arrested for running multi-state Ponzi scheme, defrauding victims in MA

https://www.boston25news.com/news/local/florida-man-arrested-running-multi-state-ponzi-scheme-def...
1•1vuio0pswjnm7•41s ago•0 comments

Ask HN: Apple force-updated me to Tahoe. Worth fighting?

2•strogonoff•5m ago•1 comments

Keynot – Kill PowerPoint with HTML

https://github.com/shawnzam/keynot
1•shawnzam•15m ago•0 comments

Dependency cooldowns turn you into a free-rider

https://calpaterson.com/deps.html
2•pabs3•18m ago•0 comments

One size fits none: let communities build for themselves

https://werd.io/one-size-fits-none-let-communities-build-for-themselves/
1•benwerd•18m ago•0 comments

Glyphosate resistance: a driver for multidrug-resistant clinical strains?

https://www.frontiersin.org/journals/microbiology/articles/10.3389/fmicb.2026.1740431/full
1•PaulHoule•19m ago•0 comments

Gauss' Secret Way to Calculate π Faster [video]

https://www.youtube.com/watch?v=7qiDDhIYx48
1•peter_d_sherman•21m ago•0 comments

Not all elementary functions can be expressed with exp-minus-log

https://www.stylewarning.com/posts/not-all-elementary/
1•mmastrac•22m ago•0 comments

StockFit API – structured SEC EDGAR data with a free tier

https://developer.stockfit.io
1•areimann•27m ago•1 comments

The GNU libc atanh is correctly rounded

https://inria.hal.science/hal-05591661
1•matt_d•33m ago•0 comments

Google Arts and Culture

https://artsandculture.google.com/
1•satvikpendem•40m ago•0 comments

How to recover from a Git force push

https://gist.github.com/tomj/758d16b7f8e474035db72688663bb3cb
1•nstj•41m ago•0 comments

Adam Tooze: Electrostates, Petrostates and the New Cold War [video]

https://www.youtube.com/watch?v=gLnxzkiB-GI
1•verdverm•42m ago•0 comments

The Legend of Meir Berliner

https://www.serargentino.com/en/people/urban-legends/the-legend-of-meir-berliner
1•wslh•42m ago•0 comments

Social media age limits: Well intentioned but ineffective?

https://www.dw.com/en/do-social-media-age-limits-work-tiktok-instagram-cyberbullying-depression-k...
2•pseudolus•42m ago•0 comments

OpenAI's $852B valuation faces investor scrutiny amid strategy shift, FT reports

https://www.reuters.com/legal/transactional/openai-investors-question-852-billion-valuation-strat...
24•abdelhousni•45m ago•6 comments

The Many Faces of Claude

https://eriskii.net/projects/claude-faces
4•TheAceOfHearts•48m ago•0 comments

Ask HN: When you get a SAST finding, what's harder

2•kirumachi•49m ago•1 comments

Sony killing features for antenna, set-top box users of Bravia smart TVs in May

https://arstechnica.com/gadgets/2026/04/sony-killing-features-for-antenna-set-top-box-users-of-br...
1•canucker2016•49m ago•0 comments

"The Last Airbender" movie leaked 9 months before release date

https://nofilmschool.com/full-length-avatar-movie-leaks
1•tennysont•50m ago•2 comments

What do you want out of a coding monospace font?

1•d0able•50m ago•3 comments

The Mythos Threshold

https://joereis.substack.com/p/the-mythos-threshold
1•gmays•1h ago•0 comments

We broke the O(2^N) barrier to compute AI consciousness (Phi)

https://github.com/InductivityAI/Phi-Scanner-1/
1•Robin_De•1h ago•0 comments

Vibe Coding doesn't democratize software engineering – it democratizes liability

https://widal.substack.com/p/vibe-coding-doesnt-democratize-software
2•niwid•1h ago•0 comments

Europe should regulate Big Tech instead of banning kids from social media

https://www.politico.eu/article/europe-should-stand-up-to-big-tech-instead-of-imposing-social-med...
3•pabs3•1h ago•3 comments

An open source CMS/Indexer for TCGs

https://github.com/maelswarm/tcg
1•mnmnmaaa•1h ago•0 comments

The FCC just saved Netgear from its router ban for no obvious reason

https://www.theverge.com/tech/911888/netgear-router-ban-conditional-approval
40•HotGarbage•1h ago•15 comments

Quetta Browser: Chromium browser for Android, iOS supporting Chrome extensions

https://www.quetta.net/
1•thunderbong•1h ago•0 comments

Show HN: An edge MCP file system with a 50ms undo button for AI agents

https://mcp.undisk.app
2•adlkiarash•1h ago•2 comments

Anthropic Revises Claude Enterprise Pricing Structure

https://letsdatascience.com/news/anthropic-revises-claude-enterprise-pricing-structure-f3022a32
2•handfuloflight•1h ago•0 comments