mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 13:23:35 +00:00
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:
parent
083726ecda
commit
df8e35fd81
@ -3,7 +3,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
import warnings
|
import warnings
|
||||||
from abc import ABC
|
|
||||||
from typing import (
|
from typing import (
|
||||||
TYPE_CHECKING,
|
TYPE_CHECKING,
|
||||||
Any,
|
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)
|
@deprecated("0.0.265", alternative="ElasticsearchStore class.", pending=True)
|
||||||
class ElasticVectorSearch(VectorStore, ABC):
|
class ElasticVectorSearch(VectorStore):
|
||||||
"""Wrapper around Elasticsearch as a vector database.
|
"""Wrapper around Elasticsearch as a vector database.
|
||||||
|
|
||||||
To connect to an Elasticsearch instance that does not require
|
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)
|
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
|
ElasticKnnSearch is a class for performing k-nearest neighbor
|
||||||
(k-NN) searches on text data using Elasticsearch.
|
(k-NN) searches on text data using Elasticsearch.
|
||||||
|
Loading…
Reference in New Issue
Block a user