Signals

Signals for Provider app.

smarter.apps.provider.signals.embed_failed = <django.dispatch.dispatcher.Signal object>

Signal sent when embedding fails.

Parameters:
  • sender (type) – The sender of the signal, typically the class initiating the embedding.

  • backend (SmarterVectorstoreBackend) – The backend being used for embedding.

  • provider (Provider) – The provider associated with the vectorstore.

  • user_profile (UserProfile) – The profile of the user associated with the embedding.

Example:

embed_failed.send(sender=self.__class__, backend=backend, provider=provider, user_profile=user_profile)
smarter.apps.provider.signals.embed_started = <django.dispatch.dispatcher.Signal object>

Signal sent when embedding starts.

Parameters:
  • sender (type) – The sender of the signal, typically the class initiating the embedding.

  • backend (SmarterVectorstoreBackend) – The backend being used for embedding.

  • provider (Provider) – The provider associated with the vectorstore.

  • user_profile (UserProfile) – The profile of the user associated with the embedding.

Example:

embed_started.send(sender=self.__class__, backend=backend, provider=provider, user_profile=user_profile)
smarter.apps.provider.signals.embed_success = <django.dispatch.dispatcher.Signal object>

Signal sent when embedding completes successfully.

Parameters:
  • sender (type) – The sender of the signal, typically the class initiating the embedding.

  • backend (SmarterVectorstoreBackend) – The backend being used for embedding.

  • provider (Provider) – The provider associated with the vectorstore.

  • user_profile (UserProfile) – The profile of the user associated with the embedding.

Example:

embed_success.send(sender=self.__class__, backend=backend, provider=provider, user_profile=user_profile)