if (FALSE) {
tif <- data.frame(doc_id = c('1'), text = c("Hello world."))
embeddings <- api_huggingface_embeddings(tif,
text_hierarchy = 'doc_id',
api_token = api_token)
}
Run the code above in your browser using DataLab