Closed DanShatford closed 1 year ago
Hi @DanShatford sorry for the late reply!
I would add an optional parameter to convert_files_to_docs
taking a List[Path]
and simply append those to the files that were found in dir_path
(if any).
I'll make a PR for this.
Is your feature request related to a problem? Please describe. I have a
DocumentSearchPipeline
built from files. I would like to process files at query time in the same way asconvert_files_to_docs
, normally many fewer than at index time.The
convert_files_to_docs
function only allows me to input adir_path
. I would like to be able to input a list of file paths with different extensions.Describe the solution you'd like A utility function or generic
FileConverter
that would allow me to process documents in the same way both when indexing and when querying.Describe alternatives you've considered
dir_path
toconvert_files_to_docs
convert_files_to_docs
logic for myself to allow passing lists of filepathsAdditional context I can make a PR if this feature would be accepted, but I'm interested in what the preferred API would look like.