Home / Function/ _get_retriever_tags() — langchain Function Reference

_get_retriever_tags() — langchain Function Reference

Architecture documentation for the _get_retriever_tags() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  612a5115_56cc_8662_cf37_eedd6f8624e6["_get_retriever_tags()"]
  6c336ac6_f55c_1ad7_6db3_73dbd71fb625["VectorStore"]
  612a5115_56cc_8662_cf37_eedd6f8624e6 -->|defined in| 6c336ac6_f55c_1ad7_6db3_73dbd71fb625
  f04f6652_019e_eef8_c59b_9b31d2db2ea8["as_retriever()"]
  f04f6652_019e_eef8_c59b_9b31d2db2ea8 -->|calls| 612a5115_56cc_8662_cf37_eedd6f8624e6
  style 612a5115_56cc_8662_cf37_eedd6f8624e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/vectorstores/base.py lines 898–903

    def _get_retriever_tags(self) -> list[str]:
        """Get tags for retriever."""
        tags = [self.__class__.__name__]
        if self.embeddings:
            tags.append(self.embeddings.__class__.__name__)
        return tags

Subdomains

Called By

Frequently Asked Questions

What does _get_retriever_tags() do?
_get_retriever_tags() is a function in the langchain codebase, defined in libs/core/langchain_core/vectorstores/base.py.
Where is _get_retriever_tags() defined?
_get_retriever_tags() is defined in libs/core/langchain_core/vectorstores/base.py at line 898.
What calls _get_retriever_tags()?
_get_retriever_tags() is called by 1 function(s): as_retriever.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free