Skip to content

Error inserting DoclingLoader documents on Weaviate #18

@alex-ahumada

Description

@alex-ahumada

DoclingLoader uses a non valid GraphQL name in one of its Document metadata keys ($ref) that causes an error while saving the documents into Weaviate.

{'message': 'Failed to send all objects in a batch of 17', 'error': 'WeaviateInsertManyAllFailedError("Every object failed during insertion. Here is the set of all errors: \'$ref\' is not a valid nested property name of \'dl_meta.doc_items.parent\'. NestedProperty names in Weaviate are restricted to valid GraphQL names, which must be “/[_A-Za-z][_0-9A-Za-z]*/”")'}
{'message': 'Failed to send 17 objects in a batch of 17. Please inspect client.batch.failed_objects or collection.batch.failed_objects for the failed objects.'}
2025-Jul-04 10:50 AM - langchain_weaviate.vectorstores - ERROR - Failed to add object: None
Reason: WeaviateInsertManyAllFailedError("Every object failed during insertion. Here is the set of all errors: '$ref' is not a valid nested property name of 'dl_meta.doc_items.parent'. NestedProperty names in Weaviate are restricted to valid GraphQL names, which must be “/[_A-Za-z][_0-9A-Za-z]*/”")

After deleting the offending metadata or renaming $ref key to ref, documents are inserted successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions