References - Modules
Overviewโ
This section describes Weaviate's individual modules, including their capabilities and how to use them.
- The Retrievers & Vectorizaters modules such as
text2vec-*
orimg2vec-*
convert data objects to vectors. - The Readers & Generators modules process data after retrieving the data from Weaviate, such as to answer questions or summarize text.
- The other modules include everything else, such as a spellcheck module.
Generalโ
Modules can be "vectorizers" (defines how the numbers in the vectors are chosen from the data) or other modules providing additional functions like question answering, custom classification, etc. Modules have the following characteristics:
- Naming convention:
- Vectorizer (Retriever module):
<media>2vec-<name>-<optional>
, for exampletext2vec-contextionary
,image2vec-RESNET
ortext2vec-transformers
. - Other modules:
<functionality>-<name>-<optional>
, for exampleqna-transformers
. - A module name must be url-safe, meaning it must not contain any characters which would require url-encoding.
- A module name is not case-sensitive.
text2vec-bert
would be the same module astext2vec-BERT
.
- Vectorizer (Retriever module):
- Module information is accessible through the
v1/modules/<module-name>/<module-specific-endpoint>
RESTful endpoint. - General module information (which modules are attached, version, etc.) is accessible through Weaviate's
v1/meta
endpoint. - Modules can add
additional
properties in the RESTful API and_additional
properties in the GraphQL API. - A module can add filters in GraphQL queries.
- Which vectorizer and other modules are applied to which data classes is configured in the schema.
Default vectorizer moduleโ
Unless you specify a default vectorization module in Weaviate's configuration, you'll need to specify which vectorization module is used per class you add to the data schema (or you need to enter a vector for each data point you add manually). Set the default with the environment variable DEFAULT_VECTORIZER_MODULE
to text2vec-contextionary
in the docker-compose configuration file:
services:
weaviate:
environment:
DEFAULT_VECTORIZER_MODULE: text2vec-contextionary
Backup Modulesโ
Backup and restore operations in Weaviate are facilitated by the use of backup provider modules.
These are interchangeable storage backends which exist either internally or externally. The following sections will explain the difference between these two types of backup provider modules, and their intended usages.
External providerโ
External backup providers coordinate the storage and retrieval of backed-up Weaviate data with external storage services.
This type of provider is ideal for production environments. This is because storing the backup data outside of a Weaviate instance decouples the availability of the backup from the Weaviate instance itself. In the event of an unreachable node, the backup is still available.
Additionally, multi-node Weaviate clusters require the use of an external provider. Storing a multi-node backup on internally on a single node presents several issues, like significantly reducing the durability and availability of the backup, and is not supported.
As of Weaviate v1.18
, the supported external backup providers are:
Thanks to the extensibility of the module system, new providers can be readily added. If you are interested in an external provider other than the ones listed above, feel free to reach out via our forum, or open an issue on GitHub.
Internal providerโ
Internal providers coordinate the storage and retrieval of backed-up Weaviate data within a Weaviate instance. This type of provider is intended for developmental or experimental use, and is not recommended for production. Internal Providers are not compatible for multi-node backups, which require the use of an external provider.
As of Weaviate v1.16
, the only supported internal backup provider is the filesystem provider.
More Resourcesโ
If you can't find the answer to your question here, please look at the:
- Frequently Asked Questions. Or,
- Knowledge base of old issues. Or,
- For questions: Stackoverflow. Or,
- For more involved discussion: Weaviate Community Forum. Or,
- We also have a Slack channel.