Remove incorrect ABC from two Elasticsearch classes. (#9470)

Neither is an ABC because their own example code instantiates them directly.
This commit is contained in:
Predrag Gruevski 2023-08-18 15:01:02 -04:00 committed by GitHub
parent 083726ecda
commit df8e35fd81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@ from __future__ import annotations
import uuid
import warnings
from abc import ABC
from typing import (
TYPE_CHECKING,
Any,
@ -53,7 +52,7 @@ def _default_script_query(query_vector: List[float], filter: Optional[dict]) ->
@deprecated("0.0.265", alternative="ElasticsearchStore class.", pending=True)
class ElasticVectorSearch(VectorStore, ABC):
class ElasticVectorSearch(VectorStore):
"""Wrapper around Elasticsearch as a vector database.
To connect to an Elasticsearch instance that does not require
@ -340,7 +339,7 @@ class ElasticVectorSearch(VectorStore, ABC):
self.client.delete(index=self.index_name, id=id)
class ElasticKnnSearch(VectorStore, ABC):
class ElasticKnnSearch(VectorStore):
"""
ElasticKnnSearch is a class for performing k-nearest neighbor
(k-NN) searches on text data using Elasticsearch.