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!

"Drink Up" Says a Lobbied FDA: Relaxed Guidelines on Alcohol Consumption

https://jacobin.com/2026/01/fda-guidelines-kennedy-alcohol-lobby
3•wahnfrieden•9m ago•0 comments

OpenAI is reportedly asking contractors to upload real work from past jobs

https://techcrunch.com/2026/01/10/openai-is-reportedly-asking-contractors-to-upload-real-work-fro...
2•pseudolus•12m ago•0 comments

Datadog, Thank You for Blocking Us

https://www.deductive.ai/blogs/datadog-thank-you-for-blocking-us
5•gpi•14m ago•0 comments

Google moonshot spinout SandboxAQ claims an ex-exec is attempting 'extortion'

https://techcrunch.com/2026/01/09/google-moonshot-spinout-sandboxaq-claims-an-ex-exec-is-attempti...
1•Geekette•14m ago•0 comments

The new vs. used car debate is dead. They're both expensive debt traps

https://washingtonpost.com/business/2026/01/10/1000-payments-car-debt-trap/
2•pseudolus•15m ago•1 comments

Show HN: Reverse-engineering images into model-specific syntax(MJ,Nano,Flux,SD)

https://promptslab.app/image-to-prompt
1•jackzhuo•15m ago•1 comments

Npmgraph – a web-based tool that visualizes NPM package dependencies

https://npmgraph.js.org/
2•javatuts•17m ago•0 comments

Show HN: Hashing Go Functions Using SSA and Scalar Evolution

https://github.com/BlackVectorOps/semantic_firewall
1•BlackVectorOps•20m ago•1 comments

Show HN: mister.jar – Modular MRJAR Files Made Easy

http://lingocoder.com/mrjar/mrjar.usage.html
1•burnerToBetOut•20m ago•0 comments

Culture Isn't Stagnating, You Guys Are Just Old

https://www.jenn.site/culture-isnt-stagnating-you-guys-are-just-old/
3•Analemma_•28m ago•1 comments

Show HN: I made an Android app which sends Health Connect data to your webhooks

https://github.com/mcnaveen/health-connect-webhook
1•mcnx097•32m ago•0 comments

AI is intensifying a 'collapse' of trust online, experts say

https://www.nbcnews.com/tech/tech-news/experts-warn-collapse-trust-online-ai-deepfakes-venezuela-...
1•pseudolus•32m ago•1 comments

Can Walking Be My Whole Workout?

https://www.nytimes.com/2026/01/06/well/move/is-walking-enough-exercise.html
1•thelastgallon•34m ago•0 comments

What a Programmer Does (1967)[pdf]

http://archive.computerhistory.org/resources/text/Knuth_Don_X4100/PDF_index/k-9-pdf/k-9-u2769-1-B...
3•nz•35m ago•1 comments

Is the Iranian Regime About to Collapse?

https://www.theatlantic.com/international/2026/01/iran-revolution-protests-collapse/685578/
4•Anon84•41m ago•4 comments

A Year of Work on the Arch Linux Package Management (ALPM) Project

https://devblog.archlinux.page/2026/a-year-of-work-on-the-alpm-project/
2•susam•42m ago•0 comments

How to build agents with filesystems and bash

https://vercel.com/blog/how-to-build-agents-with-filesystems-and-bash
1•bob1029•43m ago•0 comments

Nvidia in advanced talks to buy Israel's AI21 Labs for up to $3B

https://www.reuters.com/business/nvidia-advanced-talks-buy-israels-ai21-labs-up-3-billion-report-...
2•gmays•48m ago•0 comments

Sisyphus Now Lives in Oh My Claude

https://github.com/Yeachan-Heo/oh-my-claude-sisyphus
2•deckardt•50m ago•1 comments

Computing, Convivially

https://v5.chriskrycho.com/essays/computing-convivially/
1•noperator•50m ago•1 comments

Intel makes sharp reversal, is 'going big time into 14A,' says CEO Lip-Bu Tan

https://www.tomshardware.com/tech-industry/semiconductors/intel-is-going-big-time-into-14a-says-c...
2•WoodenChair•51m ago•0 comments

Features for no one (AI edition)

https://www.pcloadletter.dev/blog/ai-features-for-no-one/
1•ronbenton•51m ago•0 comments

A good exchange is built for failure

https://www.coindesk.com/opinion/2026/01/10/institutions-know-a-good-exchange-is-built-for-failure
1•7777777phil•53m ago•0 comments

Grateful Dead founding member Bob Weir dies at 78

https://apnews.com/article/bob-weir-grateful-dead-obit-af908fd1bba6cd338bc08024e2d77234
4•RickJWagner•53m ago•1 comments

Show HN: HAPI - Vibe Coding Anytime, Anywhere

https://github.com/tiann/hapi
1•weishu•57m ago•0 comments

Show HN: Ferrite – Markdown editor in Rust with native Mermaid diagram rendering

https://github.com/OlaProeis/Ferrite
18•OlaProis•1h ago•2 comments

U.S. airstrikes hit ISIS targets in Syria, officials say

https://www.cbsnews.com/news/us-airstrikes-isis-targets-syria-central-command/
7•mhb•1h ago•0 comments

Cybercriminals stole the sensitive information of 17.5M Instagram users

https://bsky.app/profile/malwarebytes.com/post/3mbywfybiil26
8•gnabgib•1h ago•1 comments

Synthetic.new <3 OpenCode

https://synthetic.new/blog/2026-01-10-synthetic-heart-opencode
5•reissbaker•1h ago•0 comments

Check Out PCWorld's New Linux Podcast, the Dual Boot Diaries

https://www.pcworld.com/article/2888221/check-out-pcworlds-new-linux-podcast.html
7•jcurbo•1h ago•0 comments