Vectors Module#

Note

If you haven’t yet, please check the section How to configure your auth key before running the code snippets in this page.

The Vectors module is built to setup collections without models internally and making it possible to consume them in your Jai environment.

For more information, see the full Vectors class reference.

Vectors#

Bellow, a simple example to instantiate the Vectors class:

>>> from jai import Vectors
...
>>> vectors = Vectors(name)

insert_vectors#

Insert raw vectors database directly into JAI without any need of fit.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.insert_vectors(data)

delete_raw_data#

Removes any remaining raw data that might be stored.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.delete_raw_data()

delete_database#

Removes the collection.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.delete_database()

Inherited from TaskBase#

name#

This attribute contains the value of the database’s name.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.name

db_type#

This attribute returns the type of the database.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.db_type

is_valid#

This method returns a boolean indicating if the database exists or not.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.is_valid()

describe#

This method returns the full configuration information of the database.

>>> from jai import Vectors
...
>>> vectors = Vectors(name)
>>> vectors.describe()