TCL/C extension for computing BERT vector embeddings
# Load model from file. # ::tbert::load_model model_name model_file ::tbert::load_model mymodel "./models/all-MiniLM-L12-v2/ggml-model-q4_0.bin" # Compute the BERT vector embedding for a given text. # ::tbert::ev model_name text ::tbert::ev mymodel "This is a test." # Unload model # ::tbert::unload_model model_name ::tbert::unload_model mymodel