From b94b1215d890cdc94d7ad311abe39b3aeb90794f Mon Sep 17 00:00:00 2001 From: raveenplgithub <128684516+raveenplgithub@users.noreply.github.com> Date: Thu, 22 Feb 2024 03:18:02 +0100 Subject: [PATCH] Fix: TypeError: chromadb.api.client.Client.get_or_create_collection() argument after ** must be a mapping, not NoneType (#11104) --- .../llama_index/vector_stores/chroma/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/llama_index/vector_stores/chroma/base.py b/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/llama_index/vector_stores/chroma/base.py index dde3e0c8f5..c562c2f5f6 100644 --- a/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/llama_index/vector_stores/chroma/base.py +++ b/llama-index-integrations/vector_stores/llama-index-vector-stores-chroma/llama_index/vector_stores/chroma/base.py @@ -1,4 +1,5 @@ """Chroma vector store.""" + import logging import math from typing import Any, Dict, Generator, List, Optional, cast @@ -143,6 +144,7 @@ class ChromaVectorStore(BasePydanticVectorStore): **kwargs: Any, ) -> None: """Init params.""" + collection_kwargs = collection_kwargs or {} if chroma_collection is None: client = chromadb.HttpClient(host=host, port=port, ssl=ssl, headers=headers) self._collection = client.get_or_create_collection( -- GitLab