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!

Nobel Prize–winning chemist dreams of making water from thin air

https://www.technologyreview.com/2025/12/17/1129259/omar-yaghi-chemist-nobel-prize-crystals-water...
1•fleahunter•36s ago•0 comments

Kubernetes v1.35

https://scaleops.com/blog/kubernetes-1-35-release-overview/
1•lauluzzzzz•1m ago•0 comments

to-clipboard-for-ai.sh

https://github.com/danielfalbo/distributed-systems/commit/685923e1c06c487d2591770fd8ef629668811f33
1•danielfalbo•2m ago•0 comments

From Ts_rank to BM25. Introducing Pg_textsearch: True BM25 Ranking and Retrieval

https://www.tigerdata.com/blog/introducing-pg_textsearch-true-bm25-ranking-hybrid-retrieval-postgres
1•ashvardanian•2m ago•0 comments

Show HN: Free MVP Cost Calculator (no signup required)

https://www.mvpdevelopmentcost.com/
1•megaseo•4m ago•0 comments

Luxembourg's digital ID monopoly down for 24h+, paralyzing national services

https://today.rtl.lu/news/luxembourg/no-transactions-or-authentications-currently-possible-via-lu...
1•svnee•4m ago•1 comments

Korea Zinc to build rare earths processing facility in Tennessee

https://www.tomshardware.com/tech-industry/trump-secures-deal-with-korea-zinc-to-build-rare-earth...
2•airhangerf15•4m ago•0 comments

Prompt caching: 10x cheaper LLM tokens

https://ngrok.com/blog/prompt-caching/
1•nkko•6m ago•0 comments

Android: The Google app is intentionally replacing Pixel Launcher search

https://9to5google.com/2025/12/16/pixel-launcher-search-google-app/
1•birdboat00•16m ago•0 comments

I launched a €9.9k/mo executive retreat using a free WordPress stack

1•QMLegacy•19m ago•0 comments

Authentication Model in OpenTelemetry

https://signoz.io/blog/auth-model-opentelemetry/
1•ankit01-oss•21m ago•0 comments

Fluxer is Dwitter for shaders – procedural art in 512 characters or less

https://fluxer.kodar.ninja
2•rezolver•26m ago•0 comments

Spooked by AI and Layoffs, White-Collar Workers See Their Security Slip Away

https://www.wsj.com/economy/jobs/white-collar-workers-job-anxiety-d8f83885
2•thm•29m ago•0 comments

I Put Claude in a Game Theory Tournament

https://matthodges.com/posts/2025-12-14-claude-axelrod-prisoners-dilemma/
2•m-hodges•31m ago•1 comments

Authentication – when logging in becomes the lock out

https://seemeplease.com/blog/authentication-when-logging-in-becomes-the-lockout
3•SeeMePlease•35m ago•2 comments

November in Servo: Monthly Releases, Context Menus, Parallel CSS Parsing, & More

https://servo.org/blog/2025/12/15/november-in-servo/
1•birdculture•35m ago•0 comments

Vm.overcommit_memory=2 is always the right setting for servers

https://ariadne.space/2025/12/16/vmovercommitmemory-is-always-the-right.html
3•signa11•35m ago•1 comments

Google's Official MCP Servers

https://github.com/google/mcp
1•bakigul•35m ago•0 comments

Jeffrey Epstein-linked accounts transferred funds to Noam Chomsky

https://www.timesofisrael.com/epstein-linked-accounts-transferred-funds-to-noam-chomsky-bard-coll...
1•nephihaha•36m ago•2 comments

Biologists discover neurons use physical signals to stabilize communication

https://dornsife.usc.edu/news/stories/synapse-stability-governed-by-physical-signals-not-electrical/
1•robtherobber•37m ago•0 comments

What are the pro and cons to immutable distro?

https://old.reddit.com/r/Fedora/comments/1pnqjyw/what_are_the_pro_and_cons_to_immutable_distro/
1•sipofwater•38m ago•0 comments

I managed a day and a half on Windows 11

https://old.reddit.com/r/Fedora/comments/1poapiq/i_managed_a_day_and_a_half_on_windows_11/
2•sipofwater•45m ago•1 comments

Belarusian Secret Service spied on cell phones

https://www.zeit.de/digital/2025-12/belarus-spionagesoftware-handy-app-opposition
7•doener•46m ago•3 comments

The Complete Bash Scripting Course-Full Length Guide to Learning the Bash Shell [video]

https://www.youtube.com/watch?v=Sx9zG7wa4FA
1•thunderbong•47m ago•0 comments

India unveils a homegrown dual-core 1GHz RISC-V processor, the DHRUV64

https://www.theregister.com/2025/12/17/dhruv64_india_homegrown_processor/
2•JoachimS•49m ago•0 comments

UK sex offenders may have to tell police about social media and dating accounts

https://www.theguardian.com/uk-news/2025/dec/16/sex-offenders-police-social-media-dating-accounts...
1•chrisjj•51m ago•1 comments

From pr0n to playlists and paperclips, trio of breaches spills data of millions

https://www.theregister.com/2025/12/16/trio_of_breaches/
2•JoachimS•51m ago•0 comments

Introduction to Jock

https://docs.jock.org
1•Antibabelic•52m ago•0 comments

Can I delete the Chrome's OptGuideOnDeviceModel safely? It's taking up 4GB

https://superuser.com/questions/1930445/can-i-delete-the-chromes-optguideondevicemodel-safely-its...
1•bluehex•54m ago•0 comments

AI: A Semiclassical Synthesis of Objective Collapse and Galactic Dynamics

https://drive.google.com/file/d/1yE3Yamp_qX46J1keVFvvqztV69QjNZI_/view?usp=drive_link
1•d4rkn0d3z•55m ago•1 comments