# Vector Databases

> What is a vector database, how does it work, and when would you use one (for example Pinecone or pgvector)?

Canonical: https://www.internhack.in/learn/interview/database-design/db-vector-database-intro
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

What is a vector database, how does it work, and when would you use one (for example Pinecone or pgvector)?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Vector Database, Embeddings, Approximate Nearest Neighbor, HNSW, pgvector, RAG

Previous: [Data Archiving](https://www.internhack.in/learn/interview/database-design/db-data-archiving-strategy) · Next: [Lock Escalation](https://www.internhack.in/learn/interview/database-design/db-lock-escalation) · [All of Database Design](https://www.internhack.in/learn/interview/database-design)

## More Database Design questions

- [Immutable Data](https://www.internhack.in/learn/interview/database-design/db-immutable-data-pattern)
- [Database Normalization](https://www.internhack.in/learn/interview/database-design/db-normalization-forms)
- [ACID Properties](https://www.internhack.in/learn/interview/database-design/db-acid-properties)
- [Indexing Deep Dive](https://www.internhack.in/learn/interview/database-design/db-indexing-types)
- [CAP Theorem](https://www.internhack.in/learn/interview/database-design/db-nosql-cap-theorem)
- [SQL vs. NoSQL](https://www.internhack.in/learn/interview/database-design/db-sql-vs-nosql-choice)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Database Design](https://www.internhack.in/learn/interview/database-design)
