Find answers from the community

Updated last week

Pydantic Validation Error with Redis Document Store

I treid following this guide (https://docs.llamaindex.ai/en/stable/examples/metadata_extraction/DocumentContextExtractor/) using a Redis Document Store and got a pydantic validation error
Plain Text
ValidationError: 1 validation error for DocumentContextExtractor
docstore
  Input should be an instance of SimpleDocumentStore [type=is_instance_of, input_value=<llama_index.storage.docs...bject at 0x72deaa8a9850>, input_type=RedisDocumentStore]
    For further information visit https://errors.pydantic.dev/2.10/v/is_instance_of


Is there any reason why only SimpleDocumentStore is supported?

PS: I spun up my Redis using Docker
L
t
3 comments
oh hmm, I totally missed that when reviewing that PR. It definitely should support any base document store. I can patch that
Thank you!
Could you let me know when it’s patched please!
Add a reply
Sign up and join the conversation on Discord