Skip to content

Commit

Permalink
Merge pull request #381 from vespa-engine/tgm/remove-query-module
Browse files Browse the repository at this point in the history
Tgm/remove query module
  • Loading branch information
thigm85 authored Oct 4, 2022
2 parents b1b4f85 + b049463 commit ec80c6a
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 1,356 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def get_target_version():
"cryptography",
"aiohttp",
"tenacity",
"learntorank"
],
extras_require={
"ml": ["transformers", "torch", "tensorflow", "tensorflow_ranking", "keras_tuner"],
Expand Down
2 changes: 1 addition & 1 deletion vespa/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from time import sleep

from vespa.io import VespaQueryResponse, VespaResponse
from vespa.query import QueryModel
from learntorank.query import QueryModel
from vespa.package import ApplicationPackage

retry_strategy = Retry(
Expand Down
4 changes: 2 additions & 2 deletions vespa/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
QueryProfileType,
QueryTypeField,
)
from vespa.query import QueryModel, AND, RankProfile as Ranking
from learntorank.query import QueryModel, AND, Ranking


class TextSearch(ApplicationPackage):
Expand Down Expand Up @@ -58,7 +58,7 @@ def __init__(
name=name,
schema=[schema],
default_query_model=QueryModel(
name="and_bm25", match_phase=AND(), rank_profile=Ranking(name="bm25")
name="and_bm25", match_phase=AND(), ranking=Ranking(name="bm25")
),
)

Expand Down
2 changes: 1 addition & 1 deletion vespa/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from io import BytesIO

from vespa.json_serialization import ToJson, FromJson
from vespa.query import QueryModel
from learntorank.query import QueryModel


class HNSW(ToJson, FromJson["HNSW"]):
Expand Down
269 changes: 0 additions & 269 deletions vespa/query.py

This file was deleted.

Loading

0 comments on commit ec80c6a

Please sign in to comment.