Skip to content

[Question]: DocumentSummaryIndex: unexpected keyword argument 'show_progress' #20510

@omegazerore

Description

@omegazerore

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

Today when I was trying the DocumenSummaryIndex, I got the following error:

TypeError: got an unexpected keyword argument 'show_progress'

Here is the code

response_synthesizer = get_response_synthesizer(
    response_mode="tree_summarize", 
    use_async=True
)

d = 1024
faiss_index = faiss.IndexFlatL2(d)
vector_store = FaissVectorStore(faiss_index=faiss_index)

storage_context = StorageContext.from_defaults(
        vector_store=vector_store,
    )

doc_summary_index = DocumentSummaryIndex.from_documents(
    docs,
    llm=ollama_llm,
    # embed_model=embed_model,
    transformations=[splitter],
    response_synthesizer=response_synthesizer,
    show_progress=True,
    storage_context=storage_context
)

Both my llama-index or llama-index-core are version 0.14.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions