🔧 chore(vector_store.py): remove unused code related to initializing ChromaDB object
🔧 chore(vector_store.py): remove unused import statement for chromadb module
This commit is contained in:
parent
0d131e101d
commit
2bc4420f62
1 changed files with 1 additions and 8 deletions
|
|
@ -170,13 +170,6 @@ def initialize_pinecone(class_object: Type[Pinecone], params: dict):
|
||||||
|
|
||||||
def initialize_chroma(class_object: Type[Chroma], params: dict):
|
def initialize_chroma(class_object: Type[Chroma], params: dict):
|
||||||
"""Initialize a ChromaDB object from the params"""
|
"""Initialize a ChromaDB object from the params"""
|
||||||
# chroma_server_host: str | None = None,
|
|
||||||
# chroma_server_http_port: str | None = None,
|
|
||||||
# chroma_server_ssl_enabled: bool | None = False,
|
|
||||||
# chroma_server_grpc_port: str | None = None,
|
|
||||||
# chroma_server_cors_allow_origins: List[str] = [],
|
|
||||||
# If any of the above params are in params, specially host and port,
|
|
||||||
# we need to build the Chroma settings
|
|
||||||
if ( # type: ignore
|
if ( # type: ignore
|
||||||
"chroma_server_host" in params
|
"chroma_server_host" in params
|
||||||
or "chroma_server_http_port" in params
|
or "chroma_server_http_port" in params
|
||||||
|
|
@ -184,7 +177,7 @@ def initialize_chroma(class_object: Type[Chroma], params: dict):
|
||||||
or "chroma_server_grpc_port" in params
|
or "chroma_server_grpc_port" in params
|
||||||
or "chroma_server_cors_allow_origins" in params
|
or "chroma_server_cors_allow_origins" in params
|
||||||
):
|
):
|
||||||
import chromadb
|
import chromadb # type: ignore
|
||||||
|
|
||||||
settings_params = {
|
settings_params = {
|
||||||
key: params[key]
|
key: params[key]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue