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•9mo ago

Comments

zljdanceholic•9mo 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!

Show HN: Jam – AI Agent Orchestrator with Voice Control

https://github.com/Dag7/jam
1•johntheagent•25s ago•0 comments

Dota 2 thread on lesser known names

https://old.reddit.com/r/DotA2/comments/1abwer/dota_2_heroes_lesser_known_names_titles_and/
1•marysminefnuf•44s ago•0 comments

Puerto Vallarta travel advisory after violence erupts in Mexican city

https://www.cbc.ca/news/world/livestory/puerto-vallarta-violence-9.7101866
1•therealarthur•9m ago•1 comments

AMD announces Radeon Pro SSG: A GPU with 1TB of SSD storage attached (2016)

https://www.extremetech.com/extreme/232416-amd-announces-new-ssg-a-gpu-with-1tb-of-ssd-storage-at...
1•alhazrod•11m ago•1 comments

The Missing Layer in Enterprise AI: Decision Authority

1•rkka•13m ago•0 comments

The Canterbury Tales and the AI Panic

https://www.theflyingfrisby.com/p/is-ai-going-to-take-your-job
2•mellosouls•13m ago•0 comments

Ask HN: How to Structure Gnarly PDFs

1•rllearner•13m ago•1 comments

Show HN: Why don't you just self-host it?" is the whole business model

1•bothangles•14m ago•0 comments

Show HN: Prettyping-rs A portable dependency-free Rust version of prettyping

https://github.com/kim0/prettyping-rs
1•kim0•14m ago•1 comments

Show HN: Devly – 50 native macOS developer utilities in your menu bar

https://apps.apple.com/us/app/devly/id6759269801?mt=12
1•aarush-prakash•16m ago•0 comments

Violent spring: The nature book that predicted the future (2017)

https://www.theguardian.com/books/2017/apr/15/the-peregrine-by-ja-baker-nature-writing
3•mellosouls•18m ago•0 comments

Track Karpenter efficiency of cluster bin-packing with kube-binpacking-exporter

https://github.com/sherifabdlnaby/kube-binpacking-exporter
1•SHERIFABDLNABY•19m ago•1 comments

AWS won't discuss my bill, suspended my account, took $1,600, still no human

74•gadjonesq•21m ago•16 comments

Stimulant medications affect arousal and reward, not attention networks

https://www.cell.com/cell/fulltext/S0092-8674(25)01373-X
3•wjb3•28m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
1•JuankyDestroyer•29m ago•0 comments

Mexican Forces Kill Nation's Most-Wanted Cartel Boss

https://www.nytimes.com/2026/02/22/world/americas/jalisco-new-generation-cartel-leader-killed.html
2•downboots•29m ago•0 comments

Steve Jobs testing Photo Booth (2005)

https://www.facebook.com/media/set/?set=a.10150344003354357.371772.500729356&l=c6edf34df0&type=1
2•Austin_Conlon•31m ago•0 comments

Course Collection Is Worthless. Here's What Matters

https://effective-programmer.com/your-course-collection-is-worthless-heres-what-actually-matters-...
1•naveed125•32m ago•0 comments

'An AlphaFold 4' – scientists marvel at DeepMind drug spin-offs exclusive new AI

https://www.nature.com/articles/d41586-026-00365-7
3•artninja1988•33m ago•0 comments

Running autonomous AI agents on Apple Silicon for $1.50/month (14 errors later)

https://ianlpaterson.com/blog/openclaw-setup-apple-silicon-local-llm/
2•ianlpaterson•35m ago•2 comments

Mine. Mine. Mine. How One Corrupt Billionaire Kicked Off the Global Cobalt Spree

https://www.vanityfair.com/news/story/dan-gertler-cobalt
1•NN88•36m ago•2 comments

One day, a computer will fit on a desk (1974)

https://www.youtube.com/watch?v=sTdWQAKzESA
1•peterisza•36m ago•1 comments

Show HN: Tskflow – People won't drop your tasks anymore

https://tskflow.com/
1•hashim21•36m ago•0 comments

A Development Methodology for the Agentic AI Era

2•ish-xyz•37m ago•1 comments

Ask HN: What if we can't make anymore GPUs?

1•general_reveal•39m ago•1 comments

Hidden Alpha

https://www.sciencedirect.com/science/article/abs/pii/S0304405X25002338
1•paulpauper•39m ago•0 comments

Greenland says 'no thanks' to Trump US hospital boat

https://www.bbc.com/news/articles/cy7jnvdzpr7o
3•tartoran•39m ago•0 comments

The Flawed Paper Behind Trump's $100k H-1B Fee

https://eig.org/the-flawed-paper-behind-trumps-100000-h-1b-fee/
1•paulpauper•39m ago•0 comments

Sacralized Digital Authoritarianism

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6017054
1•paulpauper•40m ago•0 comments

Algolia Hacker News Search GitHub Project Archived

https://github.com/algolia/hn-search
2•maguszin•43m ago•0 comments