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!

Show HN: Atomic Editor – Obsidian-style live preview for CodeMirror 6

https://kenforthewin.github.io/atomic-editor/
1•kenforthewin•49s ago•0 comments

Gaze into the Face of Madness!

https://cinemasojourns.com/2022/04/12/stare-into-the-face-of-madness-if-you-dare/
1•jruohonen•1m ago•0 comments

Show HN: My tiny project MyTube Newsletter – daily AI digest of YouTube subs

1•questmas•3m ago•0 comments

AI Agents Plunged the Tech World into Chaos

https://www.wired.com/story/how-ai-agents-plunged-tech-world-into-chaos/
1•uxhacker•3m ago•1 comments

Jasper

https://lab.alexanderobenauer.com/jasper/
1•tosh•6m ago•0 comments

Creating got easier. Meaning got harder (AI and volume creation)

https://emot.substack.com/p/creating-got-easier-meaning-got-harder
1•emot•7m ago•0 comments

A zot extension that makes answering your coding agent's questions painless

https://github.com/patriceckhart/zot-answer
5•patriceckhart•8m ago•0 comments

Hey Database Go Ffffine tune yourself

https://maxdemarzi.com/2026/05/29/hey-database-go-fine-tune-yourself/
1•maxdemarzi•8m ago•1 comments

Keet: Tether's P2P communication app built to survive internet shutdowns – CIO

https://www.cio.com/article/4175793/keet-tethers-p2p-communication-app-built-to-survive-internet-...
1•janandonly•9m ago•0 comments

Error Analysis for the Global Positioning System

https://en.wikipedia.org/wiki/Error_analysis_for_the_Global_Positioning_System
1•thunderbong•11m ago•0 comments

The Risk of GCP Viewer role: Snapshot bypass of a cross-project disk replication

https://aneviaro.eu/posts/snapshot-based-cmek-bypass/
1•xrustalik•13m ago•0 comments

Homepage Sports Widget – Phase 1: Countdown

https://bugzilla.mozilla.org/show_bug.cgi?id=2036797
1•n_plus_1_acc•16m ago•1 comments

Reinforcement learning in language models recruits a functional welfare axis

https://functionalwelfare.com/
1•paraschopra•17m ago•0 comments

Why Did the Murders Stop in Baltimore?

https://www.thefp.com/p/baltimore-crime-rate-drop
1•RickJWagner•18m ago•0 comments

Show HN: I built a native project management app that respects your privacy

https://getmilestones.app/store/
1•yassiniz•19m ago•0 comments

America's tech-filled classrooms face backlash against school-assigned devices

https://apnews.com/article/school-screen-time-technology-edtech-07958fb159c7cfbceb7bfdb37b2bb726
3•geox•22m ago•0 comments

Backpressure is all you need

https://www.lucasfcosta.com/blog/backpressure-is-all-you-need
2•lucasfcosta•22m ago•0 comments

Copilot Billing Preview

https://copilot-billing-preview.github.com/
2•GaryBluto•22m ago•2 comments

Free WordPress plugin that removes unused CSS

https://wordpress.org/plugins/berq-used-css/
1•hamzamairaj•27m ago•0 comments

After 22 years, you can download Paint.net from the URL 'Paint.net'

https://www.xda-developers.com/after-22-years-paintnet-downloadable-from-url-paintnet/
3•thunderbong•29m ago•0 comments

TaskPaper Reference

https://guide.taskpaper.com/reference/
1•ankitg12•30m ago•0 comments

Show HN: Markal, a productivity tool for creating collaborative calendars

https://markal.app
1•adriandomc•30m ago•0 comments

SpaceX Has Two AI Compute Stories; Only One Generates Revenue

https://davefriedman.substack.com/p/spacex-has-two-ai-compute-stories
1•gmays•33m ago•0 comments

With Claude: Less Coding, More Testing

https://henrikwarne.com/2026/05/31/with-claude-less-coding-more-testing/
3•ingve•36m ago•0 comments

The 2026-07-28 MCP Specification Release Candidate

https://blog.modelcontextprotocol.io/posts/2026-07-28-release-candidate/
2•gmays•36m ago•0 comments

In Malaysia, there was the first violent reaction against age verification laws

https://old.reddit.com/r/privacy/comments/1tq9e24/in_malaysia_there_was_a_bomb_threat_incident/
1•mostcallmeyt•40m ago•0 comments

People Getting Falsely Accused of Using AI to Write

https://nymag.com/intelligencer/article/the-people-getting-falsely-accused-of-using-ai-to-write.html
2•ColinWright•42m ago•0 comments

SICP Video Lectures (1986)

https://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/
5•tosh•43m ago•0 comments

Europe versus America: A Response to the Critics

https://paulkrugman.substack.com/p/europe-versus-america-a-response
3•_tk_•46m ago•0 comments

The Impact of AI-Assisted Development on Software Security

https://arxiv.org/abs/2603.15298
1•lucamark•48m ago•1 comments