Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml', 'uv.lock') }}
- name: Install dependencies
run: uv sync --frozen --all-extras --group dev
- name: Check style and run tests
Expand Down
4 changes: 3 additions & 1 deletion mellea/formatters/granite/retrievers/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

"""Classes and functions that implement the ElasticsearchRetriever."""

from typing import Any


class ElasticsearchRetriever:
"""Retriever for documents hosted on an ElasticSearch server."""

def __init__(self, corpus_name: str, host: str, **kwargs: dict[str, int]):
def __init__(self, corpus_name: str, host: str, **kwargs: Any):
"""Initialize ElasticsearchRetriever.

:param hosts: Full url:port to the Elasticsearch server.
Expand Down