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

Comments

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

UK government targets VPNs in online safety consultation as Lords vote for ban

https://www.techradar.com/vpn/vpn-privacy-security/uk-government-targets-vpns-in-new-online-safet...
1•g-b-r•5m ago•0 comments

Don't Write Docs Twice

https://tombedor.dev/make-it-easy-for-humans/
1•jjfoooo4•5m ago•0 comments

Show HN: BuryIt – Bury your failures, regrets and secrets anonymously

https://www.buryit.space/
1•noanoanoa•10m ago•0 comments

1944 informational poster of the electromagnetic spectrum

https://en.wikipedia.org/wiki/Electromagnetic_spectrum
1•winemath•16m ago•0 comments

The lies I used to tell myself

https://usefulfictions.substack.com/p/the-lies-i-used-to-tell-myself
2•jger15•16m ago•0 comments

Kolab Now: Secure and private email, calendars and more

https://kolabnow.com/
1•doener•21m ago•0 comments

Playwright CLI

https://github.com/microsoft/playwright-mcp/releases/tag/v0.0.57
1•aragonite•21m ago•0 comments

Soverin: Your Mailbox is your Digital Castle

https://soverin.com/
1•doener•22m ago•0 comments

C++ has scope_exit for running code at scope exit

https://devblogs.microsoft.com/oldnewthing/20260123-00/?p=112008
1•firesteelrain•23m ago•0 comments

Grok Is Temporarily Unavailable

https://status.x.ai/grok-com
2•pmcjones•24m ago•0 comments

Laracasts: I'm Done [video]

https://www.youtube.com/watch?v=g_Bvo0tsD9s
1•samsolomon•24m ago•0 comments

I was wrong about AI agent sandboxing

https://tuananh.net/2026/01/22/i-was-wrong-about-ai-agent-sandboxing/
1•tuananh•25m ago•0 comments

Ageing promotes microglial accumulation of slow-degrading synaptic proteins

https://www.nature.com/articles/s41586-025-09987-9
1•bookofjoe•28m ago•0 comments

A Problem in Gas Town Society

https://xcancel.com/voooooogel/status/2014189072647078053
1•themaxdavitt•28m ago•0 comments

Open-source self-driving for 325 car models from 27 brands

https://comma.ai
2•JumpCrisscross•30m ago•0 comments

All you need is an Acre

https://twitter.com/theOpusLABS/status/2014756424836866425
1•opuslabs•34m ago•0 comments

Docs.surf

https://docs.surf/
1•danabramov•41m ago•0 comments

Korea Issues Strict New AI Rules, Outpacing the West

https://www.wsj.com/tech/ai/south-korea-issues-strict-new-ai-rules-outpacing-the-west-2af7d7eb
1•JumpCrisscross•43m ago•0 comments

Anti-vax sentiment pushes Moderna away from new late-stage infectious diseases

https://www.fiercebiotech.com/biotech/anti-vaccine-sentiment-pushes-moderna-away-new-late-stage-i...
7•dcgudeman•44m ago•1 comments

Use of PQC in SMTP STARTTLS

https://www.netmeister.org/blog/smtp-pqc.html
2•8organicbits•44m ago•0 comments

Face to Face with History's Most Dangerous Painter

https://www.nytimes.com/interactive/2026/01/22/arts/jacques-louis-david-painter-french-revolution...
1•DiscourseFan•44m ago•0 comments

Study shows how earthquake monitors can track space junk through sonic booms

https://apnews.com/article/space-junk-seismic-booms-dadb5f9499fa9b52200baada0fdf1f15
1•JumpCrisscross•48m ago•0 comments

Hollywood Try to Take Pirate Sites Down Globally Through Indian Court

https://torrentfreak.com/disney-netflix-crunchyroll-try-to-take-pirate-sites-down-globally-throug...
1•thisislife2•58m ago•0 comments

Open-source ad infra for LLMs (reverse-engineered from ChatGPT)

https://github.com/system32miro/ai-ads-engine
1•system32miro•1h ago•0 comments

Kauldron: Modular, scalable library to train ML models

https://github.com/google-research/kauldron
1•lairv•1h ago•0 comments

Show HN: AdaL Web, a local “Claude co-work” [video]

https://www.youtube.com/watch?v=smfVGCI08Yk
5•meame2010•1h ago•8 comments

Show HN: Agentic browser testing videos in GitHub PRs

https://twitter.com/morphllm/status/2014454667007426752
1•bhaktatejas922•1h ago•0 comments

Five Ways People Are Using Claude Code

https://www.nytimes.com/2026/01/23/technology/claude-code.html
2•hecanjog•1h ago•0 comments

A UX Case Study: How Notion's Billing Flaw Creates Epistemic Injustice

https://twitter.com/JacobRoss117/status/2014852639151079704
2•DocSeraphMercer•1h ago•1 comments

Brex CFO Erica Dorfman's Take on the Capital One Deal

https://www.cfo.com/news/brex-cfo-erica-dorfman-capital-one-deal-acquisition/810415/
2•brandonb•1h ago•0 comments