Train a basic engine
info
This is a preview of the new Shaped docs. Found an issue or have feedback? Let us know!
Engines are used for all retrieval and ranking in Shaped. Simple engines can be used for semantic search, while complex engines may do behaviour-based retrieval.
Engines are configured declaratively with YAML or JSON.
Here is an example of a minimal semantic search engine:
version: v2
name: movielens_movie_recommendation_v2
data:
# specify a Shaped table to represent the items in your catalog
item_dataset:
name: movies
# define how to index your data
index:
# specify a model to use to generate embeddings
embeddings:
- name: text_embedding
encoder:
type: hugging_face
model_name: sentence-transformers/all-MiniLM-L6-v2
item_fields:
- movie_title