if (FALSE) {
api_token <- ''
matrix <- api_huggingface_embeddings(tif,
text_hierarchy = c('doc_id', 'sentence_id'),
api_token = api_token)
query <- api_huggingface_embeddings(query = "Where's the party at?",
api_token = api_token)
neighbors <- sem_nearest_neighbors(x = query, matrix = matrix)
}
Run the code above in your browser using DataLab