Skip to content

Commit

Permalink
[Obs AI Assistant] Use sparse_vector instead of text_expansion (e…
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Jan 7, 2025
1 parent 9e1ff1f commit 30c7ce6
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ async function recallFromLegacyConnectors({
bool: {
should: [
{
text_expansion: {
[vectorField]: {
model_text: text,
model_id: modelId,
boost,
},
sparse_vector: {
field: vectorField,
query: text,
inference_id: modelId,
boost,
},
},
],
Expand Down

0 comments on commit 30c7ce6

Please sign in to comment.