Skip to content

docs: QdrantDocumentStore initialization example doesn't work #10196

@TaMaN2031A

Description

@TaMaN2031A

Describe the bug
When I run the example here, the code doesn't work because it tries to insert a vector with a dimension different from the default dimension the document store was created with.

Error message
ValueError: could not broadcast input array from shape (5,) into shape (768,)

Expected behavior
The code should work normally.

Additional context
The vector size should be 768.

To Reproduce
Run the code.

FAQ Check

System:

  • OS: wsl2 on windows 11
  • Haystack version (commit or version number): 2.20.0
  • DocumentStore: QdrantDocumentStore

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