Skip to content

Commit

Permalink
fix: index type
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-v2-3 committed Feb 21, 2024
1 parent 62ac735 commit 17a195f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion videodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

logger: logging.Logger = logging.getLogger("videodb")

__version__ = "0.0.3"
__version__ = "0.0.4"
__author__ = "videodb"

__all__ = [
Expand Down
6 changes: 3 additions & 3 deletions videodb/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def search_inside_video(
search_data = self._connection.post(
path=f"{ApiPath.video}/{video_id}/{ApiPath.search}",
data={
"type": SearchType.semantic,
"index_type": SearchType.semantic,
"query": query,
"score_threshold": score_threshold
or SemanticSearchDefaultValues.score_threshold,
Expand All @@ -137,7 +137,7 @@ def search_inside_collection(
search_data = self._connection.post(
path=f"{ApiPath.collection}/{collection_id}/{ApiPath.search}",
data={
"type": SearchType.semantic,
"index_type": SearchType.semantic,
"query": query,
"score_threshold": score_threshold
or SemanticSearchDefaultValues.score_threshold,
Expand All @@ -164,7 +164,7 @@ def search_inside_video(
search_data = self._connection.post(
path=f"{ApiPath.video}/{video_id}/{ApiPath.search}",
data={
"type": SearchType.keyword,
"index_type": SearchType.keyword,
"query": query,
"score_threshold": score_threshold,
"result_threshold": result_threshold,
Expand Down

0 comments on commit 17a195f

Please sign in to comment.