Skip to content

Randomatic error in OpenaiRagQueryExecutor #11

@alkampfergit

Description

@alkampfergit

It seems that we had some error in the enumerateArray, probably the api did not respond something useful, but the problem is that we have a generic error and absolutely no clue on what really happened.

[12:07:07 ERR][Jarvis.AI.Host.Controllers.RagController] Internal error answering question: Exception in handler KernelMemory.Extensions.QueryPipeline.OpenaiRagQueryExecutor - System.InvalidOperationException: The requested operation requires an element of type 'Array', but the target element has type 'Number'.
   at System.Text.Json.ThrowHelper.ThrowJsonElementWrongTypeException(JsonTokenType expectedType, JsonTokenType actualType)
   at System.Text.Json.JsonElement.EnumerateArray()
   at KernelMemory.Extensions.QueryPipeline.OpenaiRagQueryExecutor.GenerateAnswerAsync(String question, String documents, CancellationToken token)
   at KernelMemory.Extensions.QueryPipeline.OpenaiRagQueryExecutor.OnHandleAsync(UserQuestion userQuestion, CancellationToken cancellationToken)
   at KernelMemory.Extensions.UserQuestionPipeline.ExecuteQuery(UserQuestion userQuestion, CancellationToken cancellationToken)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions