Skip to content

Commit

Permalink
test embeddings property
Browse files Browse the repository at this point in the history
  • Loading branch information
hsm207 committed Feb 7, 2024
1 parent bbdc33c commit 4ad55c8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/integration_tests/test_vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,17 @@ def test_invalid_client_type():
str(excinfo.value)
== "client should be an instance of weaviate.WeaviateClient, got <class 'str'>"
)


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

0 comments on commit 4ad55c8

Please sign in to comment.