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!

A practical guide to converting YAML to JSON safely (with Kubernetes examples)

https://coderaviverma.github.io/yaml-to-json-guide/
1•jsonviewertool•40s ago•2 comments

Tailwind creator: we had six months left

https://twitter.com/adamwathan/status/2008909129591443925
1•brunojppb•53s ago•0 comments

Show HN: Vid2ascii – real-time video to ASCII with WebGPU

https://wspr-zeta.vercel.app/
1•luthiraabeykoon•2m ago•0 comments

Let AI speak in its mother tongue

https://manidoraisamy.com/ai-mother-tongue.html
1•QueensGambit•2m ago•1 comments

Gadgets for People Who Don't Trust the Government [video]

https://www.youtube.com/watch?v=W_F4rEaRduk
1•rbanffy•4m ago•0 comments

Why my Riseup account got suspended (and reinstated)

https://ravidwivedi.in/posts/suspension-of-my-riseup-account/
1•speckx•6m ago•0 comments

A visual roadmap to Mastering AWS

https://nemorize.com/roadmaps/mastering-aws
1•reverseblade2•6m ago•0 comments

SBoM – treating dependencies like code, not artifacts

https://mz.attahri.com/posts/software-bill-of-materials-as-code/
1•mohamedattahri•6m ago•1 comments

US will ban Wall Street investors from buying single-family homes

https://www.reuters.com/world/us/us-will-ban-large-institutional-investors-buying-single-family-h...
2•kpw94•7m ago•0 comments

South Korea's president identifies a new enemy: baldness

https://www.msn.com/en-us/health/other/south-korea-s-president-identifies-a-new-enemy-baldness/ar...
1•smurda•8m ago•0 comments

Show HN: YAML to JSON converter focused on Kubernetes configs

https://jsonviewertool.com/yaml-to-json/
1•jsonviewertool•8m ago•0 comments

20k Prime members want Amazon to do more on climate

https://primemembers.earth
1•fermier•9m ago•0 comments

DMCA 512(C) Safe Harbor Applies to Embedding–Harrington vs. Pinterest

https://blog.ericgoldman.org/archives/2026/01/dmca-512c-safe-harbor-applies-to-embedding-harringt...
1•hn_acker•9m ago•0 comments

Israel authorises electronic tracking of Palestinians – Middle East Monitor

https://www.middleeastmonitor.com/20260107-israel-authorises-electronic-tracking-of-palestinians/
4•vinnyglennon•10m ago•0 comments

De vijfde grote leugen van de vaccinologie

https://substack.com/inbox/post/183816695
1•Agnost•10m ago•0 comments

Advances in Real-Time Rendering in Games: IdTech8 Global Illumination [video]

https://www.youtube.com/watch?v=VTrdeqMMMK0
1•klaussilveira•12m ago•0 comments

Realtime Raytracing in Bevy 0.18 (Solari)

https://jms55.github.io/posts/2025-12-27-solari-bevy-0-18/
1•klaussilveira•12m ago•0 comments

Organizing Principles for Community Software

https://www.u2764.com/NFIC/2019-05-09/comsoft-principles/
1•mrzool•12m ago•0 comments

Ask HN: When was last time you paid weekly for access to a group support?

1•julienreszka•13m ago•0 comments

ShellSight (100% AI Generated Enterprise SaaS App)

https://shellsight.accuknox.com
1•takladev•13m ago•1 comments

Run FreeBSD VMs in Incus

https://gyptazy.com/blog/run-bsd-vms-in-incus/
2•gyptazy•14m ago•1 comments

Tolan builds voice-first AI with GPT-5.1

https://openai.com/index/tolan/
1•lilsquid•15m ago•0 comments

Uber, Ramen (Realtime Asynchronous MEssaging Network)

https://sushantdhiman.substack.com/p/how-uber-shows-millions-of-drivers
2•Alifatisk•15m ago•0 comments

Naming Conventions for Digital Resources (1995)

https://www.loc.gov/marc/naming.html
1•speckx•16m ago•0 comments

Git Rebase for the Terrified

https://www.brethorsting.com/blog/2026/01/git-rebase-for-the-terrified/
2•aaronbrethorst•17m ago•0 comments

Getting Started with MCP Development in C#

https://codebolt.github.io/mcp/csharp/open-webui/2026/01/07/getting-started-with-mcp.html
1•codebolt•17m ago•0 comments

Teach the Coal Miners to Code

https://codin.ro/teach-the-coal-miners-to-code/
1•CodinM•18m ago•0 comments

How to build internal developer tools with a small team

https://patrickm.de/building-internal-dev-tools/
1•rbanffy•19m ago•0 comments

Bose open-sources its SoundTouch smart speakers ahead of end-of-life

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

Running a Minecraft Server on a Smartwatch

https://www.youtube.com/watch?v=C-F94JLj5Bo
2•hydrolox•20m ago•0 comments