diff --git a/tests/integration_tests/test_vectorstores.py b/tests/integration_tests/test_vectorstores.py index 0923e20..4f7ee50 100644 --- a/tests/integration_tests/test_vectorstores.py +++ b/tests/integration_tests/test_vectorstores.py @@ -608,3 +608,17 @@ def test_invalid_client_type(): str(excinfo.value) == "client should be an instance of weaviate.WeaviateClient, got " ) + + +def test_embedding_property(weaviate_client, embedding_openai): + index_name = "test_index" + text_key = "text" + + docsearch = WeaviateVectorStore( + client=weaviate_client, + index_name=index_name, + text_key=text_key, + embedding=embedding_openai, + ) + + assert type(docsearch.embeddings) == OpenAIEmbeddings