Skip to content

Commit ff9b480

Browse files
[DAGE-115] RRE Vector Search Doctor refactor
1 parent f96a7e1 commit ff9b480

30 files changed

Lines changed: 58 additions & 58 deletions

File tree

rre-tools/docs/approximate_search_evaluator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The parameters needed are:
2222
> - **collection_name**: Name of the search engine index/collection (e.g., "testcore", the one used in Docker containers)
2323
> - **search_engine_url**: URL of the search engine (e.g., "http://localhost:8983/solr/")
2424
> - **search_engine_version** (Optional): to see supported releases, take a look at
25-
> [constants.py](../../src/rre_tools/approximate_search_evaluator/constants.py). By defaults, uses the latest version supported:
25+
> [constants.py](../../src/rre_tools/vector_search_doctor/approximate_search_evaluator/constants.py). By defaults, uses the latest version supported:
2626
> (9.9.0 for Solr and 7.4.2 for Elasticsearch)
2727
> - id_field (Optional): id field for the unique key. Defaults to "id" for Solr and "_id" for Elasticsearch search
2828
> search engines

rre-tools/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ addopts = "-v --tb=short"
4545

4646
[project.scripts]
4747
dataset_generator = "rre_tools.dataset_generator.main:main"
48-
embedding_model_evaluator = "rre_tools.embedding_model_evaluator.main:main"
49-
approximate_search_evaluator = "rre_tools.approximate_search_evaluator.main:main"
48+
embedding_model_evaluator = "rre_tools.vector_search_doctor.embedding_model_evaluator.main:main"
49+
approximate_search_evaluator = "rre_tools.vector_search_doctor.approximate_search_evaluator.main:main"
5050

5151

5252
[build-system]

rre-tools/src/rre_tools/approximate_search_evaluator/__init__.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

rre-tools/src/rre_tools/embedding_model_evaluator/custom_mteb_tasks/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

rre-tools/src/rre_tools/embedding_model_evaluator/__init__.py renamed to rre-tools/src/rre_tools/vector_search_doctor/__init__.py

File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from rre_tools.vector_search_doctor.approximate_search_evaluator.config import Config
2+
from rre_tools.vector_search_doctor.approximate_search_evaluator.constants import SOLR_SUPPORTED_VERSIONS, ELASTICSEARCH_SUPPORTED_VERSIONS
3+
4+
__all__ = [
5+
"Config",
6+
"SOLR_SUPPORTED_VERSIONS",
7+
"ELASTICSEARCH_SUPPORTED_VERSIONS",
8+
]

rre-tools/src/rre_tools/approximate_search_evaluator/config.py renamed to rre-tools/src/rre_tools/vector_search_doctor/approximate_search_evaluator/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import yaml
88
from pydantic import BaseModel, Field, FilePath, HttpUrl, model_validator
9-
from rre_tools.approximate_search_evaluator.constants import ELASTICSEARCH_SUPPORTED_VERSIONS, SOLR_SUPPORTED_VERSIONS
9+
from rre_tools.vector_search_doctor.approximate_search_evaluator.constants import ELASTICSEARCH_SUPPORTED_VERSIONS, SOLR_SUPPORTED_VERSIONS
1010

1111
log = logging.getLogger(__name__)
1212

rre-tools/src/rre_tools/approximate_search_evaluator/constants.py renamed to rre-tools/src/rre_tools/vector_search_doctor/approximate_search_evaluator/constants.py

File renamed without changes.

rre-tools/src/rre_tools/approximate_search_evaluator/main.py renamed to rre-tools/src/rre_tools/vector_search_doctor/approximate_search_evaluator/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from rre_tools.shared.data_store import DataStore
1111
from rre_tools.shared.logger import setup_logging
1212
from rre_tools.shared.writers import WriterConfig
13-
from rre_tools.approximate_search_evaluator.config import Config
13+
from rre_tools.vector_search_doctor.approximate_search_evaluator.config import Config
1414

1515
log = logging.getLogger(__name__)
1616

@@ -91,7 +91,7 @@ def run_rre_evaluate(eval_folder : Path) -> None:
9191
"""
9292
Run `mvn rre:evaluate` inside rre-evaluator-solr-external folder.
9393
"""
94-
eval_dir = Path(__file__).parent.parent.parent.parent / eval_folder
94+
eval_dir = Path(__file__).parent.parent.parent.parent.parent / eval_folder
9595
subprocess.run(
9696
["mvn", "rre:evaluate"],
9797
cwd=eval_dir,

rre-tools/src/rre_tools/vector_search_doctor/embedding_model_evaluator/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)