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!

Autohand

https://autohand.ai/
1•handfuloflight•1m ago•0 comments

Graideon – Frist Agentic AI Grading Assistant

https://graideon.com/
1•eyadabouker•1m ago•0 comments

Why the mad artistic genius trope doesn't stand up to scientific scrutiny

https://theconversation.com/why-the-mad-artistic-genius-trope-doesnt-stand-up-to-scientific-scrut...
1•bikenaga•3m ago•0 comments

There Are 29,000 People on a Waitlist for Beans—and It’s Not for the Fiber

https://www.wsj.com/business/entrepreneurship/rancho-gordo-beans-fiber-protein-e27ec1ff
2•paulpauper•4m ago•0 comments

Elon Musk's X faces bans and investigations over nonconsensual bikini images

https://www.npr.org/2026/01/12/nx-s1-5672579/grok-women-children-bikini-elon-musk
4•mikhael•7m ago•0 comments

Grounding LLMs with Recursive Code Execution

https://yogthos.net/posts/2026-01-12-recursive-language-model.html
1•yogthos•8m ago•0 comments

We're all just content for ICE

https://www.garbageday.email/p/we-re-all-just-content-for-ice
15•tastyface•13m ago•1 comments

Show HN: Endpoint Scaling Kubernetes Controller

https://github.com/nwindian/endpoint-scaler
2•IKnowMazin•13m ago•0 comments

The Pentagon Is Recruiting Elon Musk to Help Them Win a Nuclear War

https://www.mintpressnews.com/pentagon-recruiting-elon-musk-nuclear-war/289055/
2•testing43523•14m ago•0 comments

Asahi Linux – Porting Linux to Apple Silicon [video]

https://media.ccc.de/v/39c3-asahi-linux-porting-linux-to-apple-silicon
2•birdculture•14m ago•0 comments

Show HN: Signal – Newsletter digest with web dashboard and scheduling

https://hiddensignal.app
1•hookedonwinter•14m ago•0 comments

Anduril's Palmer Luckey thinks the future of tech is in the past

https://techcrunch.com/2026/01/08/andurils-palmer-luckey-thinks-the-future-of-tech-is-in-the-past/
4•bookofjoe•17m ago•0 comments

Show HN: Modern Philosophy Course

https://readphilosophy.org/?w=course%2Fmilesians%2Fthales%2Fthales
2•bridelamb•18m ago•0 comments

Universal Commerce Protocol (UCP)

https://developers.google.com/merchant/ucp
2•jcfrei•26m ago•0 comments

35 Theses on the WASPs

https://scholarstage.substack.com/p/35-theses-on-the-wasps
1•barry-cotter•30m ago•0 comments

U.S. Attacked Boat With Aircraft That Looked Like a Civilian Plane

https://www.nytimes.com/2026/01/12/us/politics/us-boat-attacks-law.html
8•jbegley•30m ago•3 comments

Controlling local web servers using xbar

https://blog.gingerbeardman.com/2026/01/12/xbar-local-web-server-controller/
1•msephton•32m ago•0 comments

The will to win is nothing without the will to sleep

https://therundownbytherunningeffect.substack.com/p/the-2025-run-down-recap
2•RalphHavensPT•33m ago•0 comments

Raid on the Medway

https://en.wikipedia.org/wiki/Raid_on_the_Medway
1•vinnyglennon•35m ago•0 comments

Even Linus Torvalds is trying his hand at vibe coding (but just a little)

https://arstechnica.com/ai/2026/01/hobby-github-repo-shows-linus-torvalds-vibe-codes-sometimes/
1•fleahunter•36m ago•0 comments

Veritensor – open-source tool to scan AI models for malware and license issues

https://github.com/ArseniiBrazhnyk/Veritensor
1•arseniibr•39m ago•1 comments

Minnesota sues Trump administration to block surge of federal immigration agents

https://www.reuters.com/world/minnesota-sues-trump-administration-block-surge-federal-immigration...
8•mickle00•39m ago•0 comments

Show HN: AI Elements Vue – A Port of Vercel's AI Elements UI Library

https://github.com/vuepont/ai-elements-vue
1•peoray•40m ago•0 comments

Discord dataset of 78M messages, voice sessions, actions and servers

https://twitter.com/H4ckmanac/status/2010691804132454708
2•circularfoyers•40m ago•0 comments

Generative AI and the end of permanent car paint

https://realizeai.substack.com/p/the-evolution-of-personalization
1•rafaelmdec•41m ago•0 comments

Ask HN: DevOps Learning Resources

1•jack_pp•42m ago•0 comments

PauseOS: Distraction-Free Phone OS

https://pauseos.com/
3•MinimalAction•44m ago•1 comments

You can now reserve a hotel room on the Moon for $250k

https://arstechnica.com/space/2026/01/you-can-now-reserve-a-hotel-room-on-the-moon-for-250000/
3•dangle1•45m ago•1 comments

Great Green Wall 2.0: China is geoengineering deserts with blue-green algae

https://www.scmp.com/news/china/science/article/3338326/great-green-wall-20-china-geoengineering-...
4•jnord•45m ago•1 comments

Who told you you couldn't do that?

https://theaiunderwriter.substack.com/p/who-told-you-you-couldnt-do-that
1•participant26•47m ago•0 comments