Skip to content

Commit

Permalink
update order
Browse files Browse the repository at this point in the history
  • Loading branch information
alperkaya committed Sep 19, 2024
1 parent 898dd23 commit 79b55eb
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,17 @@ def __init__(
)
raise ValueError(error_message)

# Ensure only one of persist_path or host is provided
if persist_path and host:
error_message = "You cannot provide both `persist_path` and `host`. Please choose one."
raise ValueError(error_message)

# Store the params for marshalling
self._collection_name = collection_name
self._embedding_function = embedding_function
self._embedding_function_params = embedding_function_params
self._persist_path = persist_path
self._distance_function = distance_function
# Create the client instance
# Ensure only one of persist_path or host is provided
if persist_path and host:
error_message = "You cannot provide both `persist_path` and `host`. Please choose one."
raise ValueError(error_message)
if host:
# Remote connection via HTTP client
self._chroma_client = chromadb.HttpClient(
Expand Down

0 comments on commit 79b55eb

Please sign in to comment.