Find answers from the community

Updated 4 months ago

Hello again, I have a question about

Hello again, I have a question about DocumentSummaryIndex
D
t
8 comments
This is my code
Plain Text
 documents = [Document(doc_id=str(i), text=str(conversation)) for i, conversation in enumerate(messages_history.values())]

    summary_index = DocumentSummaryIndex.from_documents(documents)

    # Get model from template 
    model = get_template_content_by_name("summary_model")
    query_engine = summary_index.as_query_engine(llm=OpenAI(model=model))

    summary = query_engine.query(text)
during operation I received an sentry error of SystemExit
1
with the stacktrace
Attachment
Screen_Shot_2024-07-25_at_17.35.38.png
I have no other information about this error so I'm not sure what went wrong with
DocumentSummaryIndex.from_documents(documents)
Are you sure you are not missing any other arguments in that function
pretty sure no, as documents is the only required argument. Also I want to add that this is not the first time this function has been called. During previous weeks this worked fine, until this week.
The only different would be the size of message_history and the resulting documents list. It's much more heavier this week than others but if that is the case simply exiting with exit code 1 is still puzzling.
Please give me some help on this.
Add a reply
Sign up and join the conversation on Discord