client = weaviate.connect_to_embedded( headers = {“X-OpenAI-Api-Key”: OPENAI_API_KEY})
client = weaviate.WeaviateClient(
embedded_options=EmbeddedOptions(
additional_env_vars={
“ENABLE_MODULES”: “backup-filesystem,text2vec-openai,text2vec-cohere,text2vec-huggingface,ref2vec-centroid,generative-openai,qna-openai”,
“BACKUP_FILESYSTEM_PATH”: “/tmp/backups”,
“persistence_data_path”:“./weaviate_data”
}
)
# Add additional options here (see Python client docs for syntax)
)
seems this code doesn’t work; but how to initiate embeded client with persistent local storage?