Hi Team, I ran into an error message when running the below code, would appreciate your help! @Mubsi
index = VectorstoreIndexCreator(
vectorstore_cls=DocArrayInMemorySearch
).from_loaders([loader])
error message:
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
Cell In[31], line 1
----> 1 index = VectorstoreIndexCreator(
2 vectorstore_cls=DocArrayInMemorySearch
3 ).from_loaders([loader])
File ~/anaconda3/envs/...
339 values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
340 if validation_error:
--> 341 raise validation_error
342 try:
343 object_setattr(__pydantic_self__, '__dict__', values)
ValidationError: 1 validation error for VectorstoreIndexCreator
embedding
field required (type=value_error.missing)
I double checked that the document load is successful. I’m using openai 1.25.1 and langchain 0.1.19