Ragex.Embeddings.Bumblebee (Ragex v0.13.0)

View Source

Embedding adapter using Bumblebee with configurable models.

Supports multiple embedding models from the Registry:

  • all_minilm_l6_v2 (default): 384-dimensional, fast
  • all_mpnet_base_v2: 768-dimensional, high quality
  • codebert_base: 768-dimensional, code-specific
  • paraphrase_multilingual: 384-dimensional, multilingual

Model is configured via config.exs or RAGEX_EMBEDDING_MODEL environment variable. Model weights are downloaded on first use and cached locally.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns the current model information.

Returns true if the model is loaded and ready.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

model_info()

Returns the current model information.

ready?()

Returns true if the model is loaded and ready.

start_link(opts \\ [])