Need Help Accessing 'include_vector' Property in Weaviate Migration Process

Hi all, I need help with a problem I am having during a migration. I am declaring a variable as follows:

vector_result = collection.query.fetch_objects(
                    limit=1,
                    filters=Filter.by_property("weaviate_post_id").equal(post.get("weaviate_post_id")),
                    return_properties=[],
                    include_vector=True,
                )

When I try to access vector_result.vector[“default”] , I get the following error: "QueryReturn’ object has no attribute ‘vector’. Could someone please assist me with this?

Hi @Nancy_Viviana_Espino,
Welcome to the community.

Can you share the code of how you are trying to access the vector?

Is it something like:

print(vector_result.objects[0].vector)

or

print(vector_result.objects[0].vector["default"])

Also, can you share the code you used to create your collection?
Or in other words, did you define a vectorizer in there?

1 Like