get_text_embeddings_df

get_text_embeddings_df(prefix, *, model=None, **kwargs)[source]

Get embeddings for all entities in the resource.

Parameters:
  • prefix (str) – A reference, either as a string or Reference object

  • model (sentence_transformers.SentenceTransformer | None) – A sentence transformer model. Defaults to all-MiniLM-L6-v2 if not given.

  • kwargs (Unpack[GetOntologyKwargs]) – The keyword arguments to forward to ontology getter functions for names, definitions, and version

Returns:

A pandas dataframe with an index representing local unique identifiers and columns for the values of the model returned vectors

Return type:

pd.DataFrame