Search code examples
weaviate

Why does weaviate not return an error message if data is inserted into a non existant class?


If I noticed that if I attempt to enter data into a class that doesn't exist in weaviate it simply ignores the command and does not return an error message to the client. It even returns a vectorized entry. Is this by design and if yes how can I check if it actually put something in its database?


Solution

  • If you upload into a class that does not exist, weaviate will automatically create that class. This feature is called auto schema and is turned on by default. If you turned it off, then weaviate will throw an error if you upload into a class that does not exist. More details in the docs here.