You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MEDI] Don't stop document processing on enricher error (#7005)
* introduce EnricherOptions option bag
* implement batching
* don't validate results returned by IChatClient
* don't expose FileInfo as source via IngestionResult, as it could be Stream in the future. Just expose the document id
* Enricher failures should not fail the whole ingestion pipeline, as they are best-effort enhancements
/// Initializes a new instance of the <see cref="ClassificationEnricher"/> class.
31
28
/// </summary>
32
-
/// <param name="chatClient">The chat client used for classification.</param>
29
+
/// <param name="options">The options for the classification enricher.</param>
33
30
/// <param name="predefinedClasses">The set of predefined classification classes.</param>
34
-
/// <param name="chatOptions">Options for the chat client.</param>
35
31
/// <param name="fallbackClass">The fallback class to use when no suitable classification is found. When not provided, it defaults to "Unknown".</param>
StringBuildersb=new("You are a classification expert. Analyze the given text and assign a single, most relevant class. Use only the following predefined classes: ");
79
+
StringBuildersb=new("You are a classification expert. For each of the following texts, assign a single, most relevant class. Use only the following predefined classes: ");
0 commit comments