Skip to content

[MEDI] Establish pattern for handling LLM failures #6983

@adamsitnik

Description

@adamsitnik

Currently, a failure in one of the requests send to the LLM would tear down entire pipeline.

We should figure out a pattern for handling such failures and expose it to the end user.

The user should be allowed to:

  • retry
  • ignore the failure
  • provide default value

Since all our enrichers accept an IChatClient client and ChatOptions? chatOptions = null, we should consider creating an option bag that would take mandatory client and let the users specify chat options and error handling strategy.

Context: #6957 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions