From 7badfa08ad65bc87d639fc4ebb8b1d5cbd6c5132 Mon Sep 17 00:00:00 2001 From: "alicja.kotyla" Date: Tue, 8 Oct 2024 15:29:31 +0200 Subject: [PATCH] Add docstring --- .../src/ragbits/core/vector_store/chromadb_store.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/ragbits-core/src/ragbits/core/vector_store/chromadb_store.py b/packages/ragbits-core/src/ragbits/core/vector_store/chromadb_store.py index 0f3f63a84..709f97f7e 100644 --- a/packages/ragbits-core/src/ragbits/core/vector_store/chromadb_store.py +++ b/packages/ragbits-core/src/ragbits/core/vector_store/chromadb_store.py @@ -49,6 +49,15 @@ def __init__( @classmethod def from_config(cls, config: dict) -> "ChromaDBStore": + """ + Creates and returns an instance of the ChromaDBStore class from the given configuration. + + Args: + config: A dictionary containing the configuration for initializing the ChromaDBStore instance. + + Returns: + An initialized instance of the ChromaDBStore class. + """ chroma_client = get_cls_from_config(config["chroma_client"]["type"], chromadb)( **config["chroma_client"].get("config", {}) )