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!

Beyond the Appearances: The joys of an Ideal world

https://aurelien2022.substack.com/p/beyond-the-appearances
1•OgsyedIE•31s ago•0 comments

LLM Data Exfiltration via URL Previews (With OpenClaw Example and Test)

https://www.promptarmor.com/resources/llm-data-exfiltration-via-url-previews-(with-openclaw-examp...
1•takira•1m ago•0 comments

MLflow's Missing Validators: An Authorization Bypass Across API Surfaces

https://tachyon.so/blog/mlfow-bypass
1•logicx24•2m ago•0 comments

Agentic Coding in Xcode [video]

https://developer.apple.com/videos/play/tech-talks/111428/
1•Austin_Conlon•3m ago•0 comments

AI Came to Take My Job Here’s How I Responded [video]

https://www.youtube.com/watch?v=HjDD8xwU6s8
1•emsign•3m ago•1 comments

Many people have no mental imagery. What's going on in their brains?

https://www.nature.com/articles/d41586-026-00311-7
2•johngossman•3m ago•0 comments

Write about the future you want

https://daverupert.com/2026/02/futurescapes/
1•headalgorithm•4m ago•0 comments

Do people underestimate GPS metadata in shared photos?

https://exif-cleaner.com/
1•cope123•4m ago•1 comments

RCC: A Boundary Theory Explaining Why LLMs Still Hallucinate

http://www.effacermonexistence.com/rcc-hn-1
2•noncentral•5m ago•2 comments

Slate Auto – The Customizable EV That Works for You

https://www.slate.auto/en
1•lisper•6m ago•0 comments

France's Raid on X Escalates Trans-Atlantic Showdown over Social Media

https://www.nytimes.com/2026/02/04/world/europe/social-media-free-speech.html
2•JumpCrisscross•7m ago•0 comments

Professors Are Being Watched: 'We've Never Seen This Much Surveillance'

https://www.nytimes.com/2026/02/04/us/professors-classroom-surveillance-politics.html
2•JumpCrisscross•7m ago•0 comments

The World's First Viral AI Assistant Has Arrived, and Things Are Getting Weird

https://www.wsj.com/tech/ai/openclaw-ai-agents-moltbook-social-network-5b79ad65
1•fortran77•7m ago•1 comments

Dr. Zhivago: Dixiecrat of the Steppes (1958)

https://marxists.architexturez.net/archive/fraser/1958/zhivago.html
1•jruohonen•9m ago•0 comments

Distance Marching for Generative Modeling

https://arxiv.org/abs/2602.02928
1•E-Reverance•10m ago•0 comments

Zendesk Email Spam

3•Philpax•12m ago•1 comments

Show HN: Template for real-time agentic web apps using Convex

https://www.youtube.com/watch?v=MlH0za1vcUY
1•ohstep23•13m ago•0 comments

Size influences assessment of attractiveness and fighting ability

https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3003595
1•PaulHoule•13m ago•0 comments

Show HN: EpsteIn – Search the Epstein files for your LinkedIn connections

https://github.com/cfinke/EpsteIn
2•cfinke•14m ago•0 comments

Boilerplate Tax: Ranking popular programming languages by density

https://boyter.org/posts/boilerplate-tax-ranking-popular-languages-by-density/
1•ingve•16m ago•0 comments

F# Code I Love (2019) [video]

https://www.youtube.com/watch?v=1AZA1zoP-II
1•tosh•17m ago•0 comments

Beginner's Guide: Your First Web Scraper with Python and ScrapingDuck

https://scrapingduck.com/python-web-scraping-with-scrapingduck/
2•gsoftwarelab•17m ago•0 comments

Pandoc in the Browser

https://pandoc.org/app/
2•Tomte•18m ago•0 comments

Vim 9 Plugins for Lean

https://vim.castedo.com/
1•dougb5•18m ago•0 comments

Women rejecting the hijab have doomed Iran's brutal regime

https://www.telegraph.co.uk/news/2026/02/03/iranian-regime-doomed-when-it-lost-control-of-women/
3•binning•18m ago•3 comments

Commodore, IBM, OS/2, ARexx: Deal or No Deal?

https://datagubbe.se/os2/
2•rbanffy•19m ago•0 comments

Recreating Epstein PDFs from raw encoded attachments

https://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/
3•ComputerGuru•19m ago•0 comments

LLMs Can't Jump [pdf]

https://philsci-archive.pitt.edu/28024/1/Scientific_Invention_Position_Paper%20%2817%29.pdf
2•amichail•19m ago•0 comments

Checks for indicators of compromise related to the Notepad++ supply chain attack

https://github.com/roady001/Check-NotepadPlusPlusIOC
1•speckx•21m ago•0 comments

From 'nerdy' Gemini to 'edgy' Grok: how developers are shaping AI behaviours

https://www.theguardian.com/technology/2026/feb/03/gemini-grok-chatgpt-claude-qwen-ai-chatbots-id...
1•binning•22m ago•0 comments