Home / Function/ reset_collection() — langchain Function Reference

reset_collection() — langchain Function Reference

Architecture documentation for the reset_collection() function in vectorstores.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  00972e63_5290_781a_797b_6a15236bafe9["reset_collection()"]
  d25f9e94_3ec0_b9ca_7d2f_eb7ef487ccab["Chroma"]
  00972e63_5290_781a_797b_6a15236bafe9 -->|defined in| d25f9e94_3ec0_b9ca_7d2f_eb7ef487ccab
  52d11c13_911b_65df_7856_22e4051beba5["delete_collection()"]
  00972e63_5290_781a_797b_6a15236bafe9 -->|calls| 52d11c13_911b_65df_7856_22e4051beba5
  style 00972e63_5290_781a_797b_6a15236bafe9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/chroma/langchain_chroma/vectorstores.py lines 1129–1135

    def reset_collection(self) -> None:
        """Resets the collection.

        Resets the collection by deleting the collection and recreating an empty one.
        """
        self.delete_collection()
        self.__ensure_collection()

Subdomains

Frequently Asked Questions

What does reset_collection() do?
reset_collection() is a function in the langchain codebase, defined in libs/partners/chroma/langchain_chroma/vectorstores.py.
Where is reset_collection() defined?
reset_collection() is defined in libs/partners/chroma/langchain_chroma/vectorstores.py at line 1129.
What does reset_collection() call?
reset_collection() calls 1 function(s): delete_collection.

Analyze Your Own Codebase

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

Try Supermodel Free