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

Comments

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

Octopus Energy to sell stake in software spin-off Kraken at $8.65B valuation

https://www.theguardian.com/business/2025/dec/30/octopus-energy-sell-stake-kraken-valuation-fodel...
1•zeristor•1m ago•0 comments

Management: Tasks, Responsibilities, Practices by Peter F. Drucker [pdf]

https://ia801407.us.archive.org/1/items/in.ernet.dli.2015.137046/2015.137046.Management-Tasks-Res...
1•foster_nyman•4m ago•0 comments

Show HN: Wirey – GUI socket client for TCP/UDP testing

https://github.com/yunjywork/wirey
1•yunjywork•4m ago•1 comments

Pedagogy of Freedom: Ethics, Democracy, and Civic Courage [pdf]

https://abahlali.org/wp-content/uploads/2012/08/Paulo-Freire-Pedagogy-of-Freedom-Ethics-Democracy...
1•foster_nyman•7m ago•0 comments

You Need to Ditch VS Code

https://jrswab.com/blog/ditch-vs-code
1•kugurerdem•13m ago•0 comments

Why does analytics usually stop right before action?

2•Navaneeth_22•13m ago•0 comments

Bill would formally adopt spelling of 'CHamoru'

https://www.guampdn.com/news/bill-would-formally-adopt-spelling-of-chamoru/article_abd9b7c4-35a7-...
1•sipofwater•14m ago•1 comments

Go Away Python

https://lorentz.app/blog-item.html?id=go-shebang
1•baalimago•16m ago•0 comments

LETTER: The politics of evil

https://www.guampdn.com/opinion/letters/letter-the-politics-of-evil/article_dae5a91b-c835-4a4a-ac...
1•sipofwater•16m ago•1 comments

I built MCP Guard because giving AI agents direct database access terrified me

1•pritahir•16m ago•0 comments

I built MCP Guard because giving AI agents direct database access terrified me

1•pritahir•17m ago•0 comments

Daily Mosnodenvir as Dengue Prophylaxis in a Controlled Human Infection Model

https://www.nejm.org/doi/full/10.1056/NEJMoa2500179
1•thunderbong•19m ago•0 comments

Why Making Software Easier to Write Means We'll Write Exponentially More

https://addyosmani.com/blog/the-efficiency-paradox/
1•ingve•20m ago•0 comments

Users decide which online platforms to trust in 2025

1•taka-dev•20m ago•1 comments

Private and Professional Personal Finance Application

https://www.sayvsuite.com
1•gh0stwalk•21m ago•0 comments

Show HN: Who Captures the AI Efficiency Gains in Software Outsourcing?

https://kedehub.io/blog/who_captures_the_ai_efficiency_gains_in_software_outsourcing.html
2•dimitarbak•23m ago•2 comments

Virtually attend FOSDEM – schedule browser in any timezone

https://virtuallyattend.teacaketech.scot/fosdem/2026/
1•jarofgreen•23m ago•1 comments

Has Anyone Deployed AI in a Small Business and Seen Real Value?

4•wolfgangB33r•25m ago•0 comments

Garbage collection in Rust got a little better

https://claytonwramsey.com/blog/dumpster2/
2•shadanan•26m ago•0 comments

Tell HN: Wrapping up the year and resetting my goals

1•rankiwiki•30m ago•0 comments

InfiniBand: An Inexpensive Performance Boost for Your Home Network (2016)

https://blog.patshead.com/2016/04/infiniband-an-inexpensive-performance-boost-for-your-home-netwo...
2•panic•30m ago•0 comments

Louis vs. Gerstner, Who Revived a Faltering IBM in the '90s, Dies at 83

https://www.nytimes.com/2025/12/29/business/louis-v-gerstner-dead.html
1•Kaibeezy•33m ago•1 comments

China is running out of critical battery material

https://electrek.co/2025/12/29/china-running-out-critical-battery-material-countdowns/
2•gpvos•38m ago•0 comments

Ship Broken Things

https://matmul.net/$/ship-broken.html
2•pwnfunction•42m ago•0 comments

Have LLMs improved for Swift coding in the last 12 months?

https://www.cocoawithlove.com/blog/llms-twelve-months-later.html
1•ingve•43m ago•0 comments

Ask HN: Who has been fired "because of AI" recently?

5•unemp•43m ago•1 comments

Shock Wave Formation Simulator

https://kousen.github.io/shockwaves/
1•saikatsg•44m ago•0 comments

Reflections on 1 Year and 1k Hours of Vibe Coding

https://substack.com/inbox/post/182922824
1•sswiderek•45m ago•0 comments

Quickemu: Quickly create and run optimised Windows, macOS and Linux VMs

https://github.com/quickemu-project/quickemu
2•teekert•47m ago•0 comments

Excel 97 flight simulator (web port)

https://rezmason.github.io/excel_97_egg/
3•memalign•50m ago•0 comments