---
title: "Comment by Digit Patrox on \"How to Build a RAG System with pgvector and LangChain: The Production Architecture\" | Hashnode"
description: "One quick tip I totally left out of the ingestion section: watch your API rate limits. When you first move from the 'Toy' stage to a real database, it's really"
url: "https://hashnode.com/posts/how-to-build-a-rag-system-with-pgvector-and-langchain-the-production-architecture/6a02cfab937b84f77922ac28/comment/6a02d043937b84f779232fb2"
---

[Discussion](https://hashnode.com/posts/how-to-build-a-rag-system-with-pgvector-and-langchain-the-production-architecture/6a02cfab937b84f77922ac28)

Comment [How to Build a RAG System with pgvector and LangChain: The Production Architecture](https://hashnode.com/posts/how-to-build-a-rag-system-with-pgvector-and-langchain-the-production-architecture/6a02cfab937b84f77922ac28)

[Digit Patrox](https://hashnode.com/@digitpatrox)

[May 12](https://hashnode.com/posts/how-to-build-a-rag-system-with-pgvector-and-langchain-the-production-architecture/6a02cfab937b84f77922ac28/comment/6a02d043937b84f779232fb2)

One quick tip I totally left out of the ingestion section: watch your API rate limits.

When you first move from the 'Toy' stage to a real database, it's really easy to just loop through 500k chunks and send them to OpenAI or Cohere. You will hit a 429 rate limit error almost immediately. Save yourself the headache and set up a simple queue with exponential backoff before you do your first massive ingestion run
