From 2cecc572f91722a6b408253eaf5fca4a0cce5d29 Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Mon, 1 May 2023 21:19:28 -0700 Subject: [PATCH] Harrison/chroma get (#3938) Co-authored-by: sdan --- langchain/vectorstores/chroma.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/langchain/vectorstores/chroma.py b/langchain/vectorstores/chroma.py index b5d77a96..9f90f4e7 100644 --- a/langchain/vectorstores/chroma.py +++ b/langchain/vectorstores/chroma.py @@ -312,6 +312,10 @@ class Chroma(VectorStore): """Delete the collection.""" self._client.delete_collection(self._collection.name) + def get(self) -> Chroma: + """Gets the collection""" + return self._collection.get() + def persist(self) -> None: """Persist the collection.