Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
akotyla committed Oct 8, 2024
1 parent 60a37ec commit 7badfa0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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", {})
)
Expand Down

0 comments on commit 7badfa0

Please sign in to comment.