Allow passing a list of file paths
diff --git a/gpt_index/readers/file/base.py b/gpt_index/readers/file/base.py
index d8acc1d439bb0..93453fea26cde 100644
--- a/gpt_index/readers/file/base.py
+++ b/gpt_index/readers/file/base.py
@@ -32,6 +32,7 @@ class SimpleDirectoryReader(BaseReader):
 
     Args:
         input_dir (str): Path to the directory.
+        input_files (List): List of file paths to read (Optional; overrides input_dir)
         exclude_hidden (bool): Whether to exclude hidden files (dotfiles).
         errors (str): how encoding and decoding errors are to be handled,
               see https://docs.python.org/3/library/functions.html#open
@@ -51,7 +52,8 @@ class SimpleDirectoryReader(BaseReader):
 
     def __init__(
         self,
-        input_dir: str,
+        input_dir: Optional[str] = None,
+        input_files: Optional[List] = None,
         exclude_hidden: bool = True,
         errors: str = "ignore",
         recursive: bool = False,
@@ -63,7 +65,10 @@ def __init__(
     ) -> None:
         """Initialize with parameters."""
         super().__init__(verbose=verbose)
-        self.input_dir = Path(input_dir)
+
+        if not input_dir and not input_files:
+            raise ValueError("Must provide either `input_dir` or `input_files`.")
+
         self.errors = errors
 
         self.recursive = recursive
@@ -71,7 +76,15 @@ def __init__(
         self.required_exts = required_exts
         self.num_files_limit = num_files_limit
 
-        self.input_files = self._add_files(self.input_dir)
+        if input_files:
+            self.input_files = []
+            for path in input_files:
+                input_file = Path(path)
+                self.input_files.append(input_file)
+        elif input_dir:
+            self.input_dir = Path(input_dir)
+            self.input_files = self._add_files(self.input_dir)
+
         self.file_extractor = file_extractor or DEFAULT_FILE_EXTRACTOR
         self.file_metadata = file_metadata
 

SimpleDirectoryReader can take a path to a directory. Allow passing a list of file paths as well.