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

Comments

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

1•mmethodz•33s ago

Google Launches Native Gemini AI App for Mac

https://www.macrumors.com/2026/04/15/google-gemini-mac-app/
1•tosh•1m ago•0 comments

Ticketmaster is an illegal monopoly, jury rules

https://www.theverge.com/policy/912689/live-nation-ticketmaster-antitrust-monopoly-trial-verdict
4•speckx•2m ago•0 comments

I analyzed the $60B Treasury Judgment Fund – 2020 was 10x a normal year

https://settlementinsight.com/research/federal-government-payments
1•govledger•3m ago•1 comments

Is Woody Brown the Author of His Novel?

https://www.theatlantic.com/books/2026/04/who-really-wrote-autistic-author-woody-brown-novel/686814/
1•paulpauper•3m ago•0 comments

We rebuilt a mobile app from scratch. What it means for work with AI

https://www.slash.com/engineering/blog/new-mobile-app
2•kevinbai0•4m ago•0 comments

Plain Text Accounting and Financial Reporting

https://ztoz.blog/posts/plaintext-accounting-reporting/
2•ingve•4m ago•0 comments

Live Nation Illegally Monopolized Ticketing Market, Jury Finds

https://www.bloomberg.com/news/articles/2026-04-15/live-nation-illegally-monopolized-ticketing-ma...
6•Alex_Bond•7m ago•0 comments

Cinematic Motion, Stuttery Motion, and the Soap Opera Effect

https://www.rtings.com/tv/learn/research/motion-handling
2•dgroshev•9m ago•0 comments

Show HN: BPR – deriving 87 physical constants from 2 integers (MIT, 1,225 tests)

https://github.com/jackalkahwati/BPR-Math-ine
2•iq19zero•9m ago•0 comments

The Bra-and-Girdle Maker That Fashioned the Impossible for NASA

https://nautil.us/the-bra-and-girdle-maker-that-fashioned-the-impossible-for-nasa-1279841
2•Brajeshwar•10m ago•0 comments

I wrote a open source iMessage for your AI agents

https://github.com/Potarix/agent-hub
2•YoungGato•10m ago•1 comments

The Internet Is a Place

https://catskull.net/the-internet-is-a-vast-place.html
2•speckx•12m ago•0 comments

Don't Use A.I. To Do This

https://www.nytimes.com/2026/04/15/opinion/art-artificial-intelligence.html
2•js2•12m ago•1 comments

Interval-Aware Caching for Druid at Netflix Scale

https://netflixtechblog.com/stop-answering-the-same-question-twice-interval-aware-caching-for-dru...
3•wb14123•12m ago•0 comments

AI Could Democratize One of Techs Most Valuable Resources

https://www.wired.com/story/ai-could-democratize-one-of-techs-most-valuable-resources/
3•technoabsurdist•14m ago•0 comments

Meta commits to 1 GW with Broadcom, Hock Tan to leave board

https://www.cnbc.com/2026/04/14/meta-commits-to-one-gigawatt-of-custom-chips-with-broadcom-as-hoc...
3•gmays•14m ago•0 comments

Ask HN: Sanity-check my numbers on EVs and solar power

2•zahlman•14m ago•0 comments

H.R.8250 – To require operating system providers to verify the age of any user

https://www.congress.gov/bill/119th-congress/house-bill/8250
3•Cyclone_•14m ago•0 comments

Show HN: Lookas – Terminal audio visualizer that's aligned for human perception

https://github.com/rccyx/lookas
2•rccyx•21m ago•1 comments

Node.js bindings for Nvidia cuVS > GPU-accelerated vector search

https://github.com/638Labs/cuvs-node
2•gmatt•21m ago•1 comments

A Survey of Workflow Optimization for LLM Agents

https://arxiv.org/abs/2603.22386
2•PaulHoule•21m ago•0 comments

Intel Desk – a live geopolitical and market desk with replayable source chains

https://www.inteldesk.app/
2•wudwerd01•21m ago•0 comments

Taxpayers to spend $477B on tax season

https://www.thecentersquare.com/national/article_27a78f27-ea2a-4adc-809a-aa77befdb3ff.html
2•speckx•23m ago•1 comments

Allbirds shares jump over 400% on plans to pivot to AI from sneakers

https://www.reuters.com/business/allbirds-shares-jump-over-400-plans-pivot-ai-sneakers-2026-04-15/
2•sph•24m ago•1 comments

Escaping the Fork: How Meta Modernized WebRTC Across 50 Use Cases

https://engineering.fb.com/2026/04/09/developer-tools/escaping-the-fork-how-meta-modernized-webrt...
2•ashvardanian•24m ago•0 comments

Empedocles fragments found in Egypt

https://metro.co.uk/2026/04/14/work-lost-philosopher-inspired-plato-aristotle-uncovered-egypt-279...
2•Iuz•28m ago•0 comments

Tesla 'Full Self-Driving' crashed through railroad gate seconds before train

https://electrek.co/2026/04/15/tesla-fsd-railroad-gate-oncoming-train-texas-owner/
4•Bender•28m ago•0 comments

Thomson Reuters Fired Worker for Speaking Out About ICE, Former Employee Says

https://www.404media.co/thomson-reuters-fired-worker-for-speaking-out-about-ice-former-employee-s...
17•Brajeshwar•29m ago•3 comments

Simdutf Can Now Be Used Without Libc++ or Libc++ABI

https://mitchellh.com/writing/simdutf-no-libcxx
3•cdrnsf•29m ago•0 comments