mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
prompt bifluor+
This commit is contained in:
parent
fb539f61fe
commit
687d92f217
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user