Skip to content

[Bug]: AttributeError: 'MultiModalVectorIndexRetriever' object has no attribute 'object_map' #22080

Description

@dodofung

Bug Description

I Use MultiModalVectorIndexRetriever, and when it runs, this error happend:
AttributeError: 'MultiModalVectorIndexRetriever' object has no attribute 'object_map'

Version

main

Steps to Reproduce

the code like the following

index = MultiModalVectorStoreIndex.from_documents(image_documents,storage_context=storage_context)
retriever_engine = index.as_retriever( similarity_top_k=5, image_similarity_top_k=3 )
query_str = "....."
retrieval_results = retriever_engine.retrieve(query_str)
###the probable reseaon
MultiModalVectorStoreIndex class init method don't call super().init, I add it, the error disappered

Relevant Logs/Tracebacks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions