Skip to content

Instantly share code, notes, and snippets.

@StefanBogdan
Last active January 31, 2024 07:53
Show Gist options
  • Save StefanBogdan/350acfb739ced3c990b664c0637aa9aa to your computer and use it in GitHub Desktop.
Save StefanBogdan/350acfb739ced3c990b664c0637aa9aa to your computer and use it in GitHub Desktop.
Migrate data between Weaviate instances
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulcalcraft
Copy link

paulcalcraft commented Nov 23, 2023

Thanks for this! There's a small error that breaks if you're not using tenancy for your target. The following lines:

additional_item_config = {
	"tenant": to_tenant
}

should be:

additional_item_config = {}
if to_tenant is not None:
	additional_item_config["tenant"] = to_tenant

@KristianMischke
Copy link

@StefanBogdan Can you provide a license for this code snippet, it's very helpful, but need to know the license in order to use it in other software. Thanks!

@litagent
Copy link

@StefanBogdan can you also share a migration script with cross references as example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment