Skip to content

Small Issues in the Cookbook Example of AstraDB DocumentStore #256

@TaMaN2031A

Description

@TaMaN2031A

The following code snippet in the AstraDB 🤝 Haystack Integration cookbook is not working

# embedding_dim is the number of dimensions the embedding model supports.
document_store = AstraDocumentStore(
    astra_collection=ASTRA_DB_COLLECTION_NAME,
    duplicates_policy=DuplicatePolicy.SKIP,
    embedding_dim=384,
)

The error message is:
TypeError: AstraDocumentStore.__init__() got an unexpected keyword argument 'astra_collection'

Another issue in the cookbook code is the following code snippet:
rag_pipeline.draw("./rag_pipeline.png")
It returns this error:
TypeError: PipelineBase.draw() takes 1 positional argument but 2 were given

I'm using haystack 2.19.0

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