Skip to content

Commit 125cf89

Browse files
committed
fix: index type
1 parent 49fa491 commit 125cf89

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

videodb/_constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class SearchType:
1818

1919

2020
class IndexType:
21-
spoken = "spoken"
21+
spoken_word = "spoken_word"
2222
scene = "scene"
2323

2424

videodb/collection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def search(
101101
self,
102102
query: str,
103103
search_type: Optional[str] = SearchType.semantic,
104-
index_type: Optional[str] = IndexType.spoken,
104+
index_type: Optional[str] = IndexType.spoken_word,
105105
result_threshold: Optional[int] = None,
106106
score_threshold: Optional[float] = None,
107107
dynamic_score_percentage: Optional[float] = None,

videodb/video.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def search(
4949
self,
5050
query: str,
5151
search_type: Optional[str] = SearchType.semantic,
52-
index_type: Optional[str] = IndexType.spoken,
52+
index_type: Optional[str] = IndexType.spoken_word,
5353
result_threshold: Optional[int] = None,
5454
score_threshold: Optional[float] = None,
5555
dynamic_score_percentage: Optional[float] = None,
@@ -155,7 +155,7 @@ def index_spoken_words(
155155
self._connection.post(
156156
path=f"{ApiPath.video}/{self.id}/{ApiPath.index}",
157157
data={
158-
"index_type": IndexType.spoken,
158+
"index_type": IndexType.spoken_word,
159159
"language_code": language_code,
160160
"force": force,
161161
"callback_url": callback_url,

0 commit comments

Comments
 (0)