mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-30 00:30:09 +00:00
docs: add deprecation notes to docstrings (#4708)
This commit is contained in:
parent
1b57b96210
commit
b54fdd3fa0
@ -35,6 +35,8 @@ except (ImportError, ModuleNotFoundError):
|
||||
class BaseKnowledgeGraph(BaseComponent):
|
||||
"""
|
||||
Base class for implementing Knowledge Graphs.
|
||||
|
||||
The BaseKnowledgeGraph component is deprecated and will be removed in future versions.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@ -31,6 +31,8 @@ class GraphDBKnowledgeGraph(BaseKnowledgeGraph):
|
||||
prefixes: str = "",
|
||||
):
|
||||
"""
|
||||
The GraphDBKnowledgeGraph component is deprecated and will be removed in future versions.
|
||||
|
||||
Init the knowledge graph by defining the settings to connect with a GraphDB instance
|
||||
|
||||
:param host: address of server where the GraphDB instance is running
|
||||
|
||||
@ -19,6 +19,8 @@ class InMemoryKnowledgeGraph(BaseKnowledgeGraph):
|
||||
|
||||
def __init__(self, index: str = "document"):
|
||||
"""
|
||||
The InMemoryKnowledgeGraph component is deprecated and will be removed in future versions.
|
||||
|
||||
Init the in memory knowledge graph
|
||||
|
||||
:param index: name of the index
|
||||
|
||||
@ -27,6 +27,8 @@ class Text2SparqlRetriever(BaseGraphRetriever):
|
||||
use_auth_token: Optional[Union[str, bool]] = None,
|
||||
):
|
||||
"""
|
||||
The Text2SparqlRetriever component is deprecated and will be removed in future versions.
|
||||
|
||||
Init the Retriever by providing a knowledge graph and a pre-trained BART model
|
||||
|
||||
:param knowledge_graph: An instance of BaseKnowledgeGraph on which to execute SPARQL queries.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user