Skip to content

Commit

Permalink
Add tests for google ai studio method
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkkul committed Jan 13, 2025
1 parent 8482f4b commit e7af01f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/collection/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,15 @@ def test_basic_config():
}
},
),
(
Configure.Vectorizer.text2vec_google_aistudio(),
{
"text2vec-palm": {
"apiEndpoint": "generativelanguage.googleapis.com",
"vectorizeClassName": True,
}
},
),
(
Configure.Vectorizer.text2vec_palm(
project_id="project",
Expand Down Expand Up @@ -1509,6 +1518,26 @@ def test_vector_config_flat_pq() -> None:
}
},
),
(
[
Configure.NamedVectors.text2vec_google_aistudio(
name="test",
source_properties=["prop"],
)
],
{
"test": {
"vectorizer": {
"text2vec-palm": {
"apiEndpoint": "generativelanguage.googleapis.com",
"properties": ["prop"],
"vectorizeClassName": True,
}
},
"vectorIndexType": "hnsw",
}
},
),
(
[Configure.NamedVectors.text2vec_transformers(name="test", source_properties=["prop"])],
{
Expand Down

0 comments on commit e7af01f

Please sign in to comment.