Vectorstore Signals

Signals for the vectorstore app.

smarter.apps.vectorstore.signals.connected = <django.dispatch.dispatcher.Signal object>

Signal sent when a connection to the vector store backend is established.

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

  • instance (VectorStoreBackendConnection) – The instance of the connection that was established.

  • connection (object) – The underlying connection object .

Example:

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

Signal sent when vectorstore loading fails.

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

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

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

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

Example:

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

Signal sent when vectorstore loading starts.

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

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

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

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

Example:

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

Signal sent when vectorstore loading completes.

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

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

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

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

Example:

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