Fixed Import Error type
diff --git a/libs/langchain/langchain/llms/pipelineai.py b/libs/langchain/langchain/llms/pipelineai.py
index 0d257e336471fa..cff6c0f5b18cde 100644
--- a/libs/langchain/langchain/llms/pipelineai.py
+++ b/libs/langchain/langchain/llms/pipelineai.py
@@ -91,7 +91,7 @@ def _call(
         try:
             from pipeline import PipelineCloud
         except ImportError:
-            raise ValueError(
+            raise ImportError(
                 "Could not import pipeline-ai python package. "
                 "Please install it with `pip install pipeline-ai`."
             )
diff --git a/libs/langchain/langchain/utilities/redis.py b/libs/langchain/langchain/utilities/redis.py
index e6c5cb138833c6..a45391c8bcdae6 100644
--- a/libs/langchain/langchain/utilities/redis.py
+++ b/libs/langchain/langchain/utilities/redis.py
@@ -108,7 +108,7 @@ def get_client(redis_url: str, **kwargs: Any) -> RedisType:
     try:
         import redis
     except ImportError:
-        raise ValueError(
+        raise ImportError(
             "Could not import redis python package. "
             "Please install it with `pip install redis>=4.1.0`."
         )
diff --git a/libs/langchain/langchain/vectorstores/weaviate.py b/libs/langchain/langchain/vectorstores/weaviate.py
index 200ffedc6ef91d..3f965212241df1 100644
--- a/libs/langchain/langchain/vectorstores/weaviate.py
+++ b/libs/langchain/langchain/vectorstores/weaviate.py
@@ -99,7 +99,7 @@ def __init__(
         try:
             import weaviate
         except ImportError:
-            raise ValueError(
+            raise ImportError(
                 "Could not import weaviate python package. "
                 "Please install it with `pip install weaviate-client`."
             )

I have restructured the code to ensure uniform handling of ImportError. In place of previously used ValueError, I've adopted the standard practice of raising ImportError with explanatory messages. This modification enhances code readability and clarifies that any problems stem from module importation.

@baskaryan, @eyurtsev, @rlancemartin.