Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Consider failing the variant inference if DICL matches no examples after filtering#4434

GabrielBianconi started this conversation inFeature Requests
Discussion options

Fallback to another variant rather than the current behavior:

let(messages, system) =if examples.is_empty(){
// When there are no examples, behave like vanilla chat completion
// Use DICL-specific message preparation that stringifies templates
let messages =try_join_all(input.messages.iter().map(|message|{
Self::prepare_request_message_dicl(message,&inference_config.templates)
}))
.await?;
let system =Some(self.system_instructions().to_string());
(messages, system)
}else{

You must be logged in to vote

Replies: 1 comment

Comment options

To add more context to this discussion, here's my use case.

  • I'd like to have DICL to cover "complex" cases without bloated prompt instruction.
  • If there's some novel input message is received, we'd like to fallback to bloated version to prevent any mistake.
  1. Simply failing for empty case and follow existing fallback strategy should be work, but less flexible
  2. Designate a fallback variant if example doesn't match would be the most flexible approach I can think of.
You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Labels
None yet
2 participants
@GabrielBianconi@ckblockit

[8]ページ先頭

©2009-2025 Movatter.jp