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!

Nopin – I made iOS Screen Time limits harder to bypass

1•wongerpi•1m ago•0 comments

Building for the Future

https://anirudh.fi/future
1•quaintdev•1m ago•0 comments

H-1B visa fee upheld by federal judge

https://www.latimes.com/business/story/2025-12-24/h-1b-visa-fee-upheld-by-federal-judge
2•1vuio0pswjnm7•8m ago•0 comments

Slack <> Spotify Integration

https://github.com/darshdeeph/slack-spotify-playlift
2•darshdeep351•16m ago•1 comments

How is Taiwan beating everyone at plastics recycling? AI [video]

https://www.youtube.com/watch?v=-YnYwWiSiuE
1•mgh2•19m ago•0 comments

TIL: Serde's borrowing can be treacherous

https://yossarian.net/til/post/serde-s-borrowing-can-be-treacherous/
1•birdculture•19m ago•0 comments

Open Tech Calendar, listing virtual tech events with community participation

https://opentechcalendar.co.uk/
1•jarofgreen•25m ago•1 comments

Koala.sh – Benchmark Performance-Oriented Suite Targeting the POSIX Shell

https://github.com/kbensh/koala
1•TheWiggles•47m ago•0 comments

Mythbusting: Is a cold night at Stoke tough for players?

https://www.bbc.co.uk/sport/football/35672813
1•austinallegro•49m ago•1 comments

The 1-year rule by Jotform's CEO

https://www.firstmillion.club/p/the-1-year-rule
2•elananandhan•50m ago•0 comments

Tinker: General Availability and Vision Input

https://thinkingmachines.ai/blog/tinker-general-availability/
1•Olshansky•51m ago•0 comments

New York Times reporter sues Google, xAI, OpenAI over chatbot training

https://www.reuters.com/legal/government/new-york-times-reporter-sues-google-xai-openai-over-chat...
4•1vuio0pswjnm7•52m ago•0 comments

Repos: Multi-Git repo management CLI

https://github.com/epilande/repos
1•handfuloflight•52m ago•0 comments

Ask HN: Any AI recommendation for both programmers and management team?

2•sawirricardo•54m ago•3 comments

Tech groups shift $120B of AI data centre debt off balance sheets

https://www.ft.com/content/0ae9d6cd-6b94-4e22-a559-f047734bef83
1•1vuio0pswjnm7•54m ago•0 comments

Common Home Appliances Emit Trillions of Harmful Particles, Study Finds

https://www.sciencealert.com/common-home-appliances-emit-trillions-of-harmful-particles-study-finds
1•XzetaU8•55m ago•0 comments

Teaching Llama 3.1 to generate 3D objects

https://www.llm3d.space/
2•mukhayy•1h ago•1 comments

History of abridged 'It's a Wonderful Life' that cuts pivotal scene

https://www.cnn.com/2025/12/26/media/its-a-wonderful-life-abridged-version
1•qingcharles•1h ago•2 comments

Stop benchmarking LLMs. Make them fight

https://github.com/AGI-Eval-Official/CATArena
2•jinqueeny•1h ago•0 comments

XMPlay 4.1

https://support.xmplay.com/files_view.php?file_id=755
1•XzetaU8•1h ago•0 comments

Taking more asymmetric bets, and reflections on 2025

https://techne98.com/blog/taking-more-asymmetric-bets/
1•fixedprog•1h ago•0 comments

I scraped startups for sale on Trust MRR to find SaaS opportunities

https://bigideasdb.com/saas-sellers-report
1•OmPatel555•1h ago•1 comments

How Meta tries to win back teens for Instagram

https://www.washingtonpost.com/technology/2025/12/26/meta-instagram-teen-strategy/
3•mmarvin•1h ago•4 comments

Behind the scramble to engineer the Pop-Tarts Bowl trophy

https://www.espn.com/college-football/story/_/id/47407119/pop-tarts-bowl-trophy-engineer-viral
2•1659447091•1h ago•0 comments

What Technologies Are Running Across 5.5M Websites (Nov 2025)

https://versiondb.io
1•_chse_•1h ago•0 comments

2026 resolution: if Mozilla tampers with "uBlock Origin", I'm giving it up

11•fl4tul4•1h ago•11 comments

Show HN: RustX – Help me test/architect this new Rust-based scripting language

https://github.com/GrandpaEJx/RustX
1•ZOROX•1h ago•0 comments

More Dynamic Cronjobs

https://george.mand.is/2025/09/more-dynamic-cronjobs/
11•0928374082•1h ago•2 comments

The nightmares were horrific: Dads open up about crippling post-natal depression

https://www.bbc.com/news/articles/cy8v8xe24gzo
1•1659447091•1h ago•0 comments

GenAI experts replace 'Halo: Evolved' staff to impact Xbox game development

https://www.notebookcheck.net/Generative-AI-experts-replace-Halo-Campaign-Evolved-staff-to-impact...
1•MilnerRoute•1h ago•0 comments