Skip to content

Qdrant vector source unsupport null value in metadata #3420

@lanyuanxiaoyao

Description

@lanyuanxiaoyao

Bug description
NullPointerException when null value in metadata.
toObjectMapuse Collectors.toMap to create map, but it unsupport null value. Qdrant allow null value in metadata.
it may help this

return payload.entrySet().stream().collect(Collectors.toMap(e -> e.getKey(), e -> object(e.getValue())));

Environment
Spring AI 1.0.0

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions