VectorstoreIndexCreator - RuntimeError: Error loading OutdoorClothingCatalog_1000.csv

How do we resolve this issue? Below code is not working. Please suggest if there’s any workaround to get rid of this issue?

langchain==0.0.190
pydantic==1.10.10

index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])

RuntimeError: Error loading OutdoorClothingCatalog_1000.csv

Pass encoding for fix

file = ‘OutdoorClothingCatalog_1000.csv’

loader = CSVLoader(file_path=file,encoding=‘utf-8’)

2 Likes

This worked for me Thanks!.

Thanks for sharing this!