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!

When Your Child Is a Psychopath

https://www.theatlantic.com/magazine/archive/2017/06/when-your-child-is-a-psychopath/524502/
2•JumpCrisscross•1m ago•0 comments

Andy Singer's FP flow chart

https://politicalcartoons.com/cartoon/25286/handy-us-foreign-policy-flow-chart
1•SanjayMehta•1m ago•0 comments

Debugging WinDbg with WinDbg: Fixing a Ctrl-C UI Freeze

https://www.island.io/blog/debugging-windbg-with-windbg-fixing-a-ctrl-c-ui-freeze
1•nikital•3m ago•0 comments

PHP 8.5: What's New and Changed

https://php.watch/versions/8.5
1•lemper•7m ago•0 comments

Richard Feynman Explains Time Like You've Never Seen Before [video]

https://www.youtube.com/watch?v=zUHtlXA1f-w
1•pknerd•12m ago•0 comments

A Confidence Calibration Exercise

http://confidence.success-equation.com/
1•tylerchr•13m ago•0 comments

PutHouse – AI Options Trader

https://puthouse.com/
1•jansonlau•15m ago•0 comments

Ask HN: How would you decouple from the US?

1•yawa_me_worht•16m ago•0 comments

Sales Observability Tool?

1•librarian1•16m ago•0 comments

Bose open-sources its SoundTouch home theater smart speakers ahead of EOL

https://arstechnica.com/gadgets/2026/01/bose-open-sources-its-soundtouch-home-theater-smart-speak...
2•gpi•19m ago•0 comments

ASCII-Driven Development

https://medium.com/@calufa/ascii-driven-development-850f66661351
3•_hfqa•21m ago•0 comments

Pakistan, Saudi in talks on JF-17 jets-for-loans deal, sources say

https://www.reuters.com/world/asia-pacific/pakistan-saudi-talks-jf-17-jets-for-loans-deal-sources...
1•JumpCrisscross•21m ago•1 comments

Built the behavior analytics tool I've always wanted as a product engineer

https://getallinsights.com/
3•psyentist•22m ago•1 comments

Early screentime linked to slower decision-making, higher anxiety in children

https://www.thelancet.com/journals/ebiom/article/PIIS2352-3964(25)00543-2/fulltext
1•hongsy•25m ago•0 comments

On (not) using Django in 2026

https://www.natemeyvis.com/on-not-using-django-in-2026/
1•ingve•27m ago•1 comments

Free Normal Map Generator Online for 3D

https://normalmapgenerator.io/
1•richardharmer•28m ago•1 comments

Show HN: Flowscape – A developer-first 2D canvas engine with full scene control

https://github.com/Flowscape-UI/core-sdk
2•flowscape_ui•29m ago•0 comments

I kept losing good AI prompts, so I built a prompt memory tool

https://promper.vercel.app/
1•SRMohitkr•32m ago•0 comments

Shelley: A Coding Agent for Exe.dev

https://blog.exe.dev/shelley
1•anupcshan•34m ago•0 comments

Show HN: FOSS Email-to-Webhook Bridge (Turn Monitoring Alerts into API Calls)

https://app.v3m.pw/
1•idrissmbellil•35m ago•0 comments

FreeBSD Home NAS, part 8: Backing up NFS and Samba data with restic

https://rtfm.co.ua/en/freebsd-home-nas-part-8-nfs-and-samba-data-backups-using-restic/
1•todsacerdoti•36m ago•0 comments

Show HN: Open-source autonomous dev teams for Claude Code

https://github.com/covibes/zeroshot
3•covibes•43m ago•0 comments

Show HN: A Python tool to turn your ChatGPT history to Word clouds and md files

https://github.com/mohamed-chs/chatgpt-history-export-to-md
1•mohamedchs•45m ago•0 comments

What daily progress means. (and how to track it)

https://medium.com/@loganholdsworth136/what-daily-progress-actually-means-and-how-to-track-it-58f...
1•boyodestroyer•49m ago•0 comments

BdayCanvas – Happy Birthday Images AI Generator

https://bdaycanvas.com/
1•alwaysaladdin•52m ago•1 comments

Woman in Minnesota fatally shot by ICE agent during raid, video shows

https://www.theguardian.com/us-news/2026/jan/07/minneapolis-shooting-immigration-crackdown
5•merusame•52m ago•0 comments

CISA tags max severity HPE OneView flaw as actively exploited

https://www.bleepingcomputer.com/news/security/cisa-tags-max-severity-hpe-oneview-flaw-as-activel...
1•fleahunter•53m ago•0 comments

Open source project chatbox is under attack

https://github.com/chatboxai/chatbox/issues
1•themez•56m ago•0 comments

How do you make your Agents to match interface in first try?

1•paulistaunb•57m ago•1 comments

Why are there 60 Seconds in a Minute, 60 Minutes in an Hour, and 24 Hours Days?

https://monochrome-watches.com/why-60-seconds-in-a-minute-why-60-minutes-in-an-hour-by-24-hours-i...
1•Pamar•59m ago•2 comments