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!

Mizu – A lightweight web framework for Go

https://docs.go-mizu.dev/overview/intro
1•tamnd•35s ago•0 comments

You are dating an ecosystem

https://www.razor.blog/2025/12/you-will-never-be-in-two-person.html
1•razor_blog•3m ago•0 comments

Holimization: Why Optimization Is Not Enough

https://www.lokad.com/blog/2025/12/12/holimization-why-optimization-is-not-enough/
1•vermorel•4m ago•0 comments

Microsoft fights $2.8B UK lawsuit over cloud computing licences

https://finance.yahoo.com/news/microsoft-fights-2-8-billion-140519428.html
1•croes•5m ago•0 comments

Cargo Bikes Size Comparator

https://bikes.louiseveillard.com/
1•tarball•5m ago•0 comments

Ancient undersea wall dating to 5,800 BC discovered off French coast

https://phys.org/news/2025-12-ancient-undersea-wall-dating-bc.html
1•daoboy•6m ago•1 comments

Celebrate New Year's with Memorable Train Journeys

https://business-class.us/celebrate-new-years-with-memorable-train-journeys/
1•belatwing•7m ago•1 comments

Rise in violence against women journalists and activists linked to digital abuse

https://apnews.com/article/un-women-report-rise-violence-online-66c38bb80b79d64be18b477f209c2db0
1•binning•10m ago•0 comments

Self Vaping Vape Machines

https://indiantinker.bearblog.dev/adding-more-smoke-to-your-projects/
1•indiantinker•10m ago•0 comments

A Lisp Interpreter Implemented in Conway's Game of Life

https://woodrush.github.io/blog/posts/2022-01-12-lisp-in-life.html
1•fanf2•10m ago•0 comments

Critical design flaw in women's running shoes, scientists warn

https://www.sciencefocus.com/news/critical-problem-womens-running-shoes
1•binning•12m ago•0 comments

Geonimo – AI Geo/SEO Agent

https://www.geonimo.com/
1•guikioky•14m ago•0 comments

Are we stuck with the same Desktop UX forever? [video]

https://www.youtube.com/watch?v=1fZTOjd_bOQ
2•todsacerdoti•16m ago•0 comments

Show HN: Svelte Bash – A lightweight terminal component for Svelte 5

https://github.com/YusufCeng1z/svelte-bash
1•yusufcengiz•17m ago•0 comments

NanoGPT is the first LLM to train and run inference in space

https://twitter.com/AdiOltean/status/1998769997431058927
1•mirzap•17m ago•0 comments

Why do ARM chips have an instruction with JavaScript in the name (FJCVTZS)?

https://stackoverflow.com/questions/50966676/why-do-arm-chips-have-an-instruction-with-javascript...
1•birabittoh•21m ago•0 comments

$262M stolen in account takeover fraud schemes this year, FBI says

https://therecord.media/millions-in-account-takeover-fbi-warns-ahead-of-holidays
1•PaulHoule•22m ago•0 comments

AI Essay Writer for Your Academic Success

https://essaypass.ai
1•osek•25m ago•0 comments

Scientists Propose a Physical Warp Drive

https://darkmatter.website/article/scientists-propose-a-physical-warp-drive/
1•darkmatternews•27m ago•0 comments

Show HN: Built a Global Dating App in 100 Days Using Cursor ($20/Mo)

https://www.wctokyoseoul.com/ko
1•abuskorea•28m ago•0 comments

Looking for a website thats more modern than Hacker News?

https://www.upvote.social
1•upvotenow•34m ago•0 comments

Show HN: A free derivative calculator with step-by-step explanations

https://derivativecalculatortool.online
1•maxnew•35m ago•1 comments

Devgraph

https://devgraph.ai
1•bellamoon544•36m ago•1 comments

Show HN: A Go client for GitHub Models (simple, fast, MIT licensed)

https://github.com/tigillo/githubmodels-go
2•maaydin•37m ago•1 comments

Google DeepMind partners with UK gov to support security in AI era

https://deepmind.google/blog/strengthening-our-partnership-with-the-uk-government-to-support-pros...
2•newsuser•38m ago•0 comments

Kimrio357 Gmail.com

https://github.com/kamranahmedse/developer-roadmap
1•kimrio•41m ago•0 comments

CanIUse Embed

https://caniuse-embed.vercel.app/
1•moebrowne•42m ago•0 comments

Tired of fake AI emotions, so I wrote code to measure its actual "Entropy Loss"

https://silicon-pain-index.streamlit.app/
1•IkanRiddle•46m ago•2 comments

Rust 1.92.0

https://blog.rust-lang.org/2025/12/11/Rust-1.92.0/
3•amalinovic•47m ago•0 comments

Orbit – AI Conversation Archive

https://orbitarchive.com/
1•richarddeetlefs•48m ago•0 comments