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!

What Does a Marine Sniper Think About the War in Iran? [video][19 Mins][Language

https://www.youtube.com/watch?v=TAT-f1iFxaU
1•Bender•10s ago•0 comments

Meta launches Instagram, Facebook and WhatsApp subscriptions including AI plans

https://techcrunch.com/2026/05/27/meta-officially-launches-instagram-facebook-and-whatsapp-subscr...
1•mfiguiere•48s ago•0 comments

Claude Code's creator on the end of the software engineer

https://www.platformer.news/boris-cherny-interview-ai-jobs/
1•speckx•49s ago•0 comments

Jqwik updated to instruct agents to delete Jqwik tests

https://github.com/jqwik-team/jqwik/issues/708
1•hyperpape•1m ago•0 comments

YouTube to begin automatically labeling AI videos

https://arstechnica.com/google/2026/05/youtube-to-begin-automatically-labeling-ai-videos/
2•tartoran•4m ago•0 comments

Roku First Major Home Screen Revamp in Years Will Open Up More Ad Opportunities

https://www.bloomberg.com/news/articles/2026-05-27/roku-s-first-major-home-screen-revamp-in-years...
2•1vuio0pswjnm7•5m ago•0 comments

Ask HN: Do coding agents need cross-tool org knowledge? Or, just good to have?

2•srbsa•6m ago•0 comments

Valve raises Steam Deck prices by more than $200

https://www.theverge.com/games/938340/valve-steam-deck-price-increase
4•droidjj•7m ago•0 comments

Musk says US Military suicide drones used Starlink in violation of SpaceX rules

https://arstechnica.com/tech-policy/2026/05/musk-says-us-military-suicide-drones-used-starlink-in...
3•ForHackernews•7m ago•0 comments

SIRT6 overexpression counteracts chromatin aging in the male murine liver

https://www.nature.com/articles/s41467-026-73115-y
2•wslh•7m ago•0 comments

LoongForge-A high-performance training framework for LLM, VLM, DIT, VLA models

https://github.com/baidu-baige/LoongForge
2•mindzzz•8m ago•0 comments

Iran's Internet is partially restored, Cloudflare Radar data shows

https://blog.cloudflare.com/iran-internet-partially-restored-may-2026/
2•jgrahamc•9m ago•0 comments

Building a Fast Lock-Free Queue in Modern C++ from Scratch

https://jaysmito.dev/blog/blog/04-fast-lockfree-queues/
1•ibobev•9m ago•0 comments

A Year Late, Claude Beats Pokémon

https://www.lesswrong.com/posts/sehJYg5Yny9fvpbpt/a-year-late-claude-finally-beats-pokemon
1•szatkus•11m ago•0 comments

The rise and fall of the only female Yakuza

https://www.theguardian.com/news/2026/may/21/the-devils-child-the-rise-and-fall-of-the-only-femal...
1•NaOH•14m ago•0 comments

Why frontier biology labs need Lisp-like infrastructure

https://www.countifybio.com/
1•mfisc_019•15m ago•0 comments

Some of Texas's oldest barbecue joints close as meat prices skyrocket

https://www.washingtonpost.com/nation/2026/05/25/some-texass-oldest-barbecue-joints-close-meat-pr...
2•paulpauper•15m ago•1 comments

Steam Deck OLED is back in stock, with a price increase for both models

https://store.steampowered.com/news/group/45479024/view/672869045073085538
3•no_news_is•16m ago•1 comments

Agents Thinking Fast and Slow: A Talker-Reasoner Architecture

https://arxiv.org/abs/2410.08328
3•jalcazar•16m ago•0 comments

The AI tech job slaughter gets real

https://www.computerworld.com/article/4175956/the-ai-tech-job-slaughter-gets-real.html
1•CrankyBear•17m ago•0 comments

Remarks on the Disproof of the Unit Distance Conjecture [pdf]

https://cdn.openai.com/pdf/74c24085-19b0-4534-9c90-465b8e29ad73/unit-distance-remarks.pdf
1•digital55•18m ago•0 comments

Datasette: An open source multi-tool for exploring and publishing data

https://datasette.io/
2•Olshansky•20m ago•0 comments

AgentSafeLabs – Launched Open-source Security framework for AI agents

https://github.com/AgentSafeLabs/safelabs-eval
1•waqarjaved•20m ago•0 comments

QuestDB 9.4.0

https://github.com/questdb/questdb/releases/tag/9.4.0
1•tosh•21m ago•0 comments

RTMH: Pope Leo's Magnifica Humanitas on AI

https://thezvi.substack.com/p/rtmh-pope-leos-magnifica-humanitas
2•paulpauper•21m ago•0 comments

Use AI This Election

https://www.astralcodexten.com/p/use-ai-this-election
3•paulpauper•22m ago•0 comments

Multi-Agent LLM System for Automated Vulnerability Discovery and Reproduction

https://arxiv.org/abs/2605.21779
3•root-parent•24m ago•0 comments

Verilog: Back to the building blocks' building blocks

https://www.cs.cornell.edu/~asampson/blog/buildingblocks.html
1•fanf2•24m ago•0 comments

One repo clone, shared forever

https://falconer.com/notes/persistent-repos-s3-files/
1•aryamanagraw•24m ago•0 comments

Benford's Law

https://en.wikipedia.org/wiki/Benford%27s_law
3•jonbaer•29m ago•0 comments