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!

Google's Unique Approach to Getting Data Centers Built

https://www.wsj.com/tech/ai/googles-unique-approach-to-getting-data-centers-built-2cfae652
1•maxloh•1m ago•0 comments

"AI is someone else's GPU"

https://waterpigs.co.uk/notes/5cVMNm/
1•jruohonen•6m ago•0 comments

Show HN: Web Speed – A shared web-map registry for AI agents (MCP, open source)

https://www.getwebspeed.io/
2•Dominic_P•9m ago•0 comments

Ask HN: Is ChatGPT suppose to spit out its own instructions that easy?

1•ipster_io•15m ago•0 comments

Richard Scolyer Has Died

https://www.bbc.com/news/articles/c14yz5jg476o
1•nicwilson•16m ago•1 comments

Centuries-old logbooks reveal how bowhead whales are recovering from near-extin…

https://theconversation.com/centuries-old-logbooks-reveal-how-bowhead-whales-are-recovering-from-...
1•rbanffy•17m ago•0 comments

We Are in the Anthropocene–Now What?

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2025EF007730
1•littlexsparkee•17m ago•0 comments

What we know about the plan to give Americans an equity stake in AI

https://www.ft.com/content/8559a3f9-86de-4a1c-8a75-6623e83e6a00
1•samvher•17m ago•1 comments

Show HN: Avibe – your AI agent lives on your machine, reachable from your phone

https://github.com/avibe-bot/avibe
1•alex_metacraft•17m ago•0 comments

Subscribe to My Substack:)

https://bionorthtech.substack.com/subscribe
1•hellocock•18m ago•0 comments

Qanah – WireGuard-Like P2P VPN

https://github.com/xlmnxp/qanah
1•xlmnxp•21m ago•0 comments

KNN early termination in Manticore Search

https://medium.com/@s_nikolaev/knn-early-termination-in-manticore-search-39e55ac18d62
1•snikolaev•22m ago•0 comments

Show HN: Agam – Activation-based memory for Claude Code, not retrieval

https://github.com/CrypticCortex/agam
1•aghoraguru•25m ago•0 comments

Nithya Raman knocks Spencer Pratt off second place in LA mayor's race

https://nypost.com/2026/06/07/us-news/nithya-raman-knocks-spencer-pratt-off-second-place-in-la-ma...
2•SilverElfin•27m ago•4 comments

Show HN: SoundScope - PS1 Audio Visualizer in your Browser

https://soundscope.greg.technology/
1•gregsadetsky•28m ago•0 comments

AI for the Operator

https://github.com/cerebrocybersolutions/cerebro-whitepaper
1•cerebrocyber•29m ago•0 comments

You Can Walk to the World Cup in New Jersey. But Should You?

https://www.nytimes.com/2026/06/07/opinion/world-cup-new-york-new-jersey-transit-walk.html
1•berns•29m ago•0 comments

Reward Hacking, the Loophole Lesson: Winning the Signal, Losing the Reason

https://medium.com/@yassien/reward-hacking-the-loophole-lesson-winning-the-signal-losing-the-reas...
1•yassien•32m ago•0 comments

Show HN: My home server got unplugged, so I built a recovery CLI

https://homebutler.dev
2•swq115•32m ago•0 comments

The deadliest poison known to AI

https://iocaine.madhouse-project.org/
1•jruohonen•36m ago•0 comments

Show HN: I put my Claude Code rate-limit burndown in the status line

https://www.aimhuge.com/blog/claude-code-status-line
2•fotoflo•37m ago•1 comments

Show HN: Organizer Timelines for everything you want to remember

https://www.useorganizer.com/
1•mcapodici•43m ago•0 comments

Flutter OTA Code Push, Shorebird Alternative Open Source Flutter Patcher

https://github.com/xuelinger2333/flutter_patcher
1•faangguyindia•47m ago•1 comments

Is this the correct interpretation? (users use too many tabs?)

https://ux.stackexchange.com/questions/123870/why-do-browsers-allow-users-to-open-more-tabs-than-...
1•LearnYouALisp•57m ago•3 comments

Nvidia/Nvidia-Nemotron-3-Ultra-550B-A55B-BF16

https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16
2•geoffbp•57m ago•0 comments

IMF warns inflation risks remain elevated ahead of Fed meeting

https://www.reuters.com/world/imf-urges-fed-caution-inflation-warsh-prepares-chair-first-policy-m...
1•latentframe•59m ago•0 comments

Bumblebees have tiny brains but can solve problems like chimps and elephants

https://www.npr.org/2026/06/07/nx-s1-5846947/bumblebees-problem-solving-research
4•RyeCombinator•59m ago•1 comments

SDSU Wired Its Dorms with 1,300 AI Cameras Without Telling Students

https://reclaimthenet.org/sdsu-adds-1300-ai-cameras-330-in-student-dorms
10•iamnothere•1h ago•1 comments

PEP 668 – Marking Python base environments as "externally managed"

https://peps.python.org/pep-0668/
1•thatxliner•1h ago•0 comments

Technical details of the attack described by Markoff in NYT

http://www.kohala.com/start/shimomura.95jan25.txt
2•jruohonen•1h ago•0 comments