seqdirectorythe command accepts each file as a document, so in fact you only have one document, so you only get one vector. In order for it to work correctly, you made each line of your CSV file the file itself, where the document key is the file name and the value is its contents, However, it is quite impractical if your case is large, since reading and writing a disk can become painful slow.
In practice, you better follow the links that I share in this comment.
source
share