prompt bifluor+

This commit is contained in:
Louis Dureuil 2023-12-07 23:05:04 +01:00
parent fb539f61fe
commit 687d92f217
No known key found for this signature in database

View File

@ -172,10 +172,11 @@ pub fn extract_vector_points<R: io::Read + io::Seek>(
prompt.render(obkv, DelAdd::Addition, &field_id_map)?; prompt.render(obkv, DelAdd::Addition, &field_id_map)?;
if old_prompt != new_prompt { if old_prompt != new_prompt {
log::trace!( log::trace!(
"Changing prompt from\n{old_prompt}\n===\nto\n{new_prompt}" "🚀 Changing prompt from\n{old_prompt}\n===to===\n{new_prompt}"
); );
VectorStateDelta::NowGenerated(new_prompt) VectorStateDelta::NowGenerated(new_prompt)
} else { } else {
log::trace!("⏭️ Prompt unmodified, skipping");
VectorStateDelta::NoChange VectorStateDelta::NoChange
} }
} }
@ -204,10 +205,11 @@ pub fn extract_vector_points<R: io::Read + io::Seek>(
let new_prompt = prompt.render(obkv, DelAdd::Addition, &field_id_map)?; let new_prompt = prompt.render(obkv, DelAdd::Addition, &field_id_map)?;
if old_prompt != new_prompt { if old_prompt != new_prompt {
log::trace!( log::trace!(
"Changing prompt from\n{old_prompt}\n===\nto\n{new_prompt}" "🚀 Changing prompt from\n{old_prompt}\n===to===\n{new_prompt}"
); );
VectorStateDelta::NowGenerated(new_prompt) VectorStateDelta::NowGenerated(new_prompt)
} else { } else {
log::trace!("⏭️ Prompt unmodified, skipping");
VectorStateDelta::NoChange VectorStateDelta::NoChange
} }
} }