Module candle

Module candle 

Source
Expand description

GTE-small embedder using Candle.

Uses thenlper/gte-small model for text embeddings:

  • 384 dimensions
  • 512 max tokens
  • BERT architecture

Structsยง

CandleEmbedder
GTE-small embedder using Candle.

Constantsยง

EMBEDDING_DIM ๐Ÿ”’
Embedding dimension for gte-small.
MAX_TOKENS ๐Ÿ”’
Maximum sequence length.
MODEL_ID ๐Ÿ”’
Model identifier on HuggingFace Hub.