Documentation search: When your Rails app needs which approach

Imagine spending an afternoon watching a developer tear out a perfectly functional search feature. They replace their solid Postgres full-text search with a vector database and RAG pipeline because...

By · · 1 min read
Documentation search: When your Rails app needs which approach

Source: DEV Community

Imagine spending an afternoon watching a developer tear out a perfectly functional search feature. They replace their solid Postgres full-text search with a vector database and RAG pipeline because, well, that's what you're supposed to do now, right? The new system is slower, cost them $200 a month in OpenAI API calls, and returned worse results for their specific use case. This keeps happening. The AI hype cycle has convinced developers that every search problem needs embeddings, vector databases, and agentic loops. Sometimes that's true. Often it's not. Let's build the same feature four different ways and see what each approach actually costs you. The use case: searching Ruby gem documentation We're building a search feature for a documentation site that indexes about 5,000 Ruby gems. Each gem has README content, API documentation, and code examples. Users ask questions like "How do I upload files to S3?" or "What's the best gem for handling webhooks?" This is a realistic scale for m