Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3588

Async weaviate query hybrid

$
0
0

I am using async weaviate 4.9.6.

i have created schema and ingest the data. when i am retriving the data i am getting the above error.

Schema created

{
            "name": "SessionData",
            "description": "Represents a page within a document",
            "vectorizer": "none",
            "vectorIndexType": "hnsw",
            "vectorIndexConfig": {"skip": False, **hnsw_config},
            "properties": [
                Property(name="context", data_type=DataType.TEXT, description="Content of the page"),
                Property(name="file_name", data_type=DataType.TEXT, description="Name to the document")  # Assuming it refers to the Document class
            ],
            "references": [
                ReferenceProperty(
                    name="user_info",
                    target_collection="UserInfo",
                    description="uuid of user"
                ),
            ]
        },
        {
            "name": "UserInfo",
            "description": "Represents user information",
            "properties": [
                Property(name="user_ID", data_type=DataType.TEXT, description="Unique ID of user")
            ]
        },

retrive the data

collection = client.collections.get('SessionData')
        result = await collection.query.fetch_objects(
            filters=Filter.by_ref(link_on="user_info").by_property("user_ID").equal(user_ID),
            return_references=QueryReference(link_on="user_info", return_properties=["user_info", "file_name"])
        )

error


An error occurred while fetching file names: Query call with protocol GRPC search failed with message <AioRpcError of RPC that terminated with:
        status = StatusCode.UNKNOWN
        details = "could not find class object in schema"
        debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2024-12-09T07:22:06.9330608+00:00", grpc_status:2, grpc_message:"could not find class object in schema"}"
>

what is the issue here?


Viewing all articles
Browse latest Browse all 3588

Trending Articles