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!

Game is a single 13 KiB file that runs on Windows, Linux and in the Browser

https://iczelia.net/posts/snake-polyglot/
2•snoofydude•2m ago•0 comments

The Models Resource – Archive of 3D models in video games

https://models.spriters-resource.com/
1•1bpp•7m ago•0 comments

Show HN: Coi – A compiled-reactive language for high-performance WASM apps

1•io_eric•12m ago•0 comments

Show HN: Blockframe v1.0.3 Released

https://github.com/crushr3sist/blockframe-rs/releases/tag/v1.0.3
1•DeusCodex•15m ago•1 comments

The Next Two Years of Software Engineering

https://addyosmani.com/blog/next-two-years/
1•napolux•17m ago•0 comments

iMessage-kit is an iMessage SDK for macOS

https://github.com/photon-hq/imessage-kit
1•rsync•18m ago•1 comments

How I'm Doing at the End of 2025

https://rmondello.com/2025/12/30/how-im-doing-at-the-end-of-2025/
1•gpi•19m ago•0 comments

Show HN: Engineering Schizophrenia: Trusting Yourself Through Byzantine Faults

7•rescrv•21m ago•0 comments

Show HN: Should I Buy It – Paste a link. Answer questions. Get a recommendation

https://shouldibuyit.net
1•samebaker22•22m ago•0 comments

The Cauldron in the Spectrogram Or: What Happens When You Think with Your Tools

https://mcauldronism.substack.com/p/the-cauldron-in-the-spectrogram
2•mcauldronism•24m ago•2 comments

Axioms of Polity

https://colinsteele.org/blog/axioms_of_polity/
1•cvillecsteele•27m ago•0 comments

Show HN: I Built a Mobile Coding App. What I Use It for Surprised Me

https://kibbler.dev/blog/beyond-coding-unexpected-uses-for-kibbler
1•kewun•30m ago•0 comments

Read Sundar Pichai's Remarks at the 2026 National Retail Federation

https://blog.google/company-news/inside-google/message-ceo/nrf-2026-remarks/
1•gmays•30m ago•0 comments

Colorado is looking for range riders to help reduce conflict with wolves

https://www.aspentimes.com/news/colorado-parks-wildlife-range-riding-program/
2•mooreds•31m ago•0 comments

Military Grade

https://en.wikipedia.org/wiki/Military_grade
4•simonebrunozzi•31m ago•2 comments

Influencers and OnlyFans models are dominating O-1 visa requests

https://www.theguardian.com/us-news/2026/jan/11/onlyfans-influencers-us-o-1-visa
5•Teever•31m ago•1 comments

Play chess via Slack DMs or SMS using an ASCII board

https://github.com/dvelton/dm-chess
2•dustfinger•32m ago•0 comments

Show HN: Sprig-config – Spring-like config for Python, layered YAML and secrets

https://pypi.org/project/sprig-config/
1•gigglesx•32m ago•0 comments

Embrace your lack: on Pluribus and LLMs

https://hollisrobbinsanecdotal.substack.com/p/embrace-your-lack
1•HR01•33m ago•0 comments

When msvc:musttail attribute silently fails

https://www.abareplace.com/blog/musttail/
1•todsacerdoti•35m ago•0 comments

Stablecoin transactions rose to $33T in 2025

https://www.bloomberg.com/news/articles/2026-01-08/stablecoin-transactions-rose-to-record-33-tril...
1•gametorch•36m ago•0 comments

Doom on Oscilloscope

https://twitter.com/speed_shit/status/2009987671435948419
1•defly•40m ago•1 comments

You should change your mobile app version format to year.week.iteration

https://www.photoroom.com/inside-photoroom/why-you-should-change-your-mobile-app-version-format-t...
1•ea016•41m ago•0 comments

Weird DNS Behavior on Alpine Linux – .local and mDNS

https://ozelot.fyi/blog/weird-dns-behavior-on-alpine-linux/
3•OzelotVillain•41m ago•1 comments

Supply Chain Games: What Have We Learned from the Semiconductor Shortage? (2021)

https://www.EmbeddedRelated.com/showarticle/1452.php
1•walterbell•41m ago•0 comments

Ask HN: Self Hosted Intercom.io Options

1•nodesocket•41m ago•0 comments

How to use changesets in Go workspaces

https://jakoblorz.de/posts/versioning-in-go-workspaces
1•jakoblorz•43m ago•0 comments

Walmart expands drone delivery with Wing to 150 more stores

https://www.axios.com/2026/01/11/walmart-drone-delivery-wing-los-angeles-miami
2•fortran77•43m ago•1 comments

Claude Coding A Blog Pipeline

https://clabs.org/blog/ClaudeCodingABlogPipeline
1•mooreds•43m ago•0 comments

Reification Not Decision Traces

https://twitter.com/TrustSpooky/status/2009477301378142679
1•ContextGraphs•44m ago•0 comments