# Prediction Service 

## Embedding Generation 

## Indexing Service 

- Index text, image, video by their embeddings 
- provides and keeps updating a look up table 
  - index new items upon arrival 
  - pros: efficient search by NN service 
  - cons: memory usage 
    - optimization techniques 


## Nearest Neighbor Service 

- Approximate Nearest Neighbors (ANN)
  - Tree-based ANN 
  - Locality-sensitive hashing (LSH)
  - Clustering based 