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!

MB RAM FreeBSD Desktop

https://vermaden.wordpress.com/2026/01/18/200-mb-ram-freebsd-desktop/
1•vermaden•1m ago•0 comments

ChaosBSD: FreeBSD drivers go to get beaten into shape before upstream

https://github.com/seuros/ChaosBSD-src
1•ksec•2m ago•0 comments

Stop using MySQL in 2026, it is not true open source

https://optimizedbyotto.com/post/reasons-to-stop-using-mysql/
2•irememberu•2m ago•0 comments

The Walls Are Closing in on Tesla

https://www.planetearthandbeyond.co/p/the-walls-are-closing-in-on-tesla
2•enopod_•3m ago•0 comments

SongKick (YC07) founder: Back UK founders to build the UK's first £1T tech giant

https://www.thetimes.com/sunday-times-100-tech/tech-feature/article/ian-hogarth-interview-ai-tech...
2•colesantiago•5m ago•1 comments

Erdõs Problem #281

https://www.erdosproblems.com/forum/thread/281
2•gone35•9m ago•1 comments

Show HN: Nosi – where AI publishes to the open web (human page and /raw text)

https://nosi.pub/260621
1•billhao•12m ago•1 comments

Prime-C-19 – Replacing Attention with a Physics Pilot on a Riemann Manifold

https://github.com/Kenessy/PRIME-C-19
1•DanielKenessy•14m ago•1 comments

Brand Safety Has Moved Upstream of Media

https://www.aivojournal.org/brand-safety-has-moved-upstream-of-media/
1•businessmate•16m ago•1 comments

Show HN: I built a list of student developer benefits beyond the GitHub Pack

https://resourify.com
1•faceline•16m ago•0 comments

A Social Filesystem

https://overreacted.io/a-social-filesystem/
1•icy•24m ago•0 comments

Show HN: WebTerm – Browser-based terminal emulator

https://www.webterm.app/en
1•DaiAoki•25m ago•1 comments

Built a Skills Database from Lenny's Podcast Episodes

https://sidbharath.com/blog/building-lenny-skills-database/
1•mikasisiki•30m ago•0 comments

Oilwell: Wellness app to help you embrace climate chaos

https://oilwell.app/
1•47282847•34m ago•0 comments

Cutting LLM token Usage by ~80% using REPL driven document analysis

https://yogthos.net/posts/2026-01-16-lattice-mcp.html
3•birdculture•37m ago•1 comments

Indirection

https://en.wikipedia.org/wiki/Indirection
2•tosh•41m ago•0 comments

Therac-25 Providing radiation therapy to cancer patients, Therac-25 malfunctiond

https://ethicsunwrapped.utexas.edu/case-study/therac-25
3•ncb9094•41m ago•1 comments

Hypnosis with Aphantasia

https://aphantasia.com/article/stories/hypnosis-with-aphantasia
2•danhite•43m ago•1 comments

You may just be renting your car even if you have a loan

https://www.washingtonpost.com/business/2026/01/17/7-year-car-loan-affordability-underwater/
4•_tk_•44m ago•0 comments

The Layers of the Web [video]

https://www.youtube.com/watch?v=ll1e8cYx3do
1•DavidPiper•48m ago•0 comments

Demystifying Evals for AI Agents

https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents
1•handfuloflight•48m ago•0 comments

Tribute to Roko's basilisk: How to write gen AI systems

https://lorentz.app/blog-item.html?id=writing-ai-systems-2026
1•baalimago•56m ago•0 comments

Holographik: Typography Inspiration – December 2025

https://medium.com/holographik/typography-inspiration-december-2025-da800922b4c5
2•handfuloflight•57m ago•0 comments

Bigocheck: Empirical complexity analysis for Python (Zero Ops)

https://github.com/adwantg/bigocheck
1•gadwant•57m ago•1 comments

Best approach for generating SVG graphics with LLMs?

2•huly11•1h ago•0 comments

From Code Foundation Models to Agents and Applications

https://arxiv.org/abs/2511.18538
1•tamnd•1h ago•0 comments

The Web's Grain (2015)

https://frankchimero.com/blog/2015/the-webs-grain/
1•tosh•1h ago•0 comments

The Discourse Is a Distributed Denial-of-Service Attack

https://www.joanwestenberg.com/the-discourse-is-a-distributed-denial-of-service-attack/
1•tardibear•1h ago•0 comments

Show HN: Qrystal Uplink – External watchdog for IoT fleets, setup in <5 mins

https://uplink.qrystal.partners/api/auth/polar/webhooks
1•mikayelgr•1h ago•0 comments

Beyond the Machine

https://frankchimero.com/blog/2025/beyond-the-machine/
1•tosh•1h ago•0 comments