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!

Skeg: A vector database that gives the RAM back to your model

https://github.com/skegdb/skeg
1•lupodevelop•2m ago•0 comments

Alexandr Wang's bid to revive Meta's AI edge

https://www.ft.com/content/d26faf9d-6ef0-4480-ab80-bac6a36fe173
2•merksittich•7m ago•0 comments

Show HN: OpenSOP, We got tired of agents lying to us, so we built them a harness

https://opensop.ai/
3•carlosamg•8m ago•1 comments

Akaganite, a managed Rust toolchain for licensed console developers (Xbox, PS 5)

https://akaganite.com
2•pjmlp•8m ago•0 comments

Project Sunrise Nears Reality as Qantas' Airbus A350-1000ULR Makes Maiden Flight

https://simpleflying.com/project-sunrise-qantas-a350-1000ulr-maiden-flight/
2•rbanffy•9m ago•0 comments

A chart detailing countries' attitudes toward international cuisines

https://old.reddit.com/r/Infographics/comments/1m2qpse/a_chart_detailing_countries_attitudes_toward/
3•surprisetalk•10m ago•0 comments

Which sparkling water is the best?

https://www.maximevidal.com/sparkling-water
1•vmaxmc2•10m ago•0 comments

32GB of DDR5 now costs $375 – AI shortage continues to squeeze PC building

https://www.tomshardware.com/pc-components/ddr5/32gb-of-ddr5-now-costs-usd375-minimum-ai-shortage...
3•papersail•11m ago•0 comments

Session Vault – Stop Chrome from Discarding Heavy Claude and AI Tabs

https://chromewebstore.google.com/detail/session-vault/mnjlmmekjefpcjopgdbadafkdjibbhpa
1•Flowent•11m ago•0 comments

Show HN: Threshold Concepts in CS – ideas that permanently change how you think

https://github.com/nikitph/awesome-threshold-concepts
1•loaderchips•12m ago•0 comments

Meta workers can opt out of being tracked at work up to 30 min

https://www.bbc.com/news/articles/c93x0k194yno
3•reconnecting•13m ago•0 comments

India's High-Stakes Push for Sovereign AI Faces Reality Check

https://www.bloomberg.com/news/features/2026-06-02/modi-wants-india-to-join-japan-uk-in-ai-superp...
1•jmsflknr•13m ago•0 comments

New York to require 3D printers to be equipped with filter software

https://www.governor.ny.gov/news/keeping-new-yorkers-safe-governor-hochul-signs-legislation-stren...
1•15155•14m ago•0 comments

AI Bots Cite Dentists More Than Fortune 500s. The Data Surprised Us

https://engagemii.com/blog/dentists-vs-fortune-500-ai-citations
2•Greg_engagemii•15m ago•0 comments

Show HN: Python PCAP Analyzer

https://github.com/Raduurjan/Python_PCAP_analyzer
1•RaduUrj•16m ago•0 comments

AI licensing coalition SPUR in expansion

https://pressgazette.co.uk/news/ai-licensing-coalition-spur-in-huge-expansion/
1•thm•16m ago•0 comments

Basic Soldering Lesson 1 – "Solder and Flux" [video]

https://www.youtube.com/watch?v=vIT4ra6Mo0s
2•__natty__•17m ago•0 comments

Europe's First Apple Developer Center to Open in Berlin

https://www.apple.com/uk/newsroom/2026/06/europes-first-apple-developer-center-to-open-in-berlin/
1•thm•17m ago•0 comments

ChatGPT Isn't Just Changing How We Work. It's Harming How We Think

https://thewalrus.ca/chatgpt-isnt-just-changing-how-we-work-its-harming-how-we-think/
1•debo_•19m ago•0 comments

Google's Top DMCA Sender Plateaus at 70M Takedowns per Week

https://torrentfreak.com/googles-top-dmca-sender-plateaus-at-70-million-takedowns-per-week/
2•isaacfrond•19m ago•0 comments

API/MCP to check if a physical product is legal to sell in 103 countries

https://legaldata-public.cleolabs.co/products
1•naomiehl•19m ago•0 comments

EU plots long game against US digital supremacy

https://www.politico.eu/article/eu-plots-long-game-against-us-digital-supremacy/
3•thm•20m ago•0 comments

German startup advancing compressor-free electrocaloric heat pump technology

https://www.pv-magazine.com/2026/06/02/german-startup-advancing-compressor-free-electrocaloric-he...
2•rustoo•20m ago•0 comments

Are Electrons Real?

https://physics.aps.org/articles/v19/70
1•sohkamyung•21m ago•0 comments

Amazon's Ring sued over facial recognition feature

https://www.reuters.com/legal/government/amazons-ring-sued-over-facial-recognition-feature-latest...
2•1vuio0pswjnm7•23m ago•1 comments

Show HN: Self tuning chat exposing it's semantic and agentic cache

https://chat.betterdb.com
3•kivanowbetterdb•23m ago•0 comments

I aint gonna work on Maggie's Datacenter no more [video]

https://www.youtube.com/watch?v=FbUHfsJ44x8
2•gdiamos•23m ago•0 comments

Why 374,000 Californians have dropped their Covered CA insurance

https://ktla.com/news/california/californians-drop-covered-california-health-insurance/
1•Bender•24m ago•0 comments

Show HN: Browser-based image converters (WASM) and a URL image scanner

https://imagedimensions.com
1•Bishop81•24m ago•0 comments

Ask HN: Simple architecture for group messaging with no need to trust operator?

1•julienreszka•26m ago•1 comments