Skip to content

Commit

Permalink
EN-7354 include pois, resources and higher max_prompt_tokens to allow…
Browse files Browse the repository at this point in the history
… these resources
  • Loading branch information
nicolas-entourage committed Nov 29, 2024
1 parent e3ae86a commit 1dd5ec4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/matching_services/connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def perform
# run the thread
run = client.runs.create(thread_id: thread['id'], parameters: {
assistant_id: assistant_id,
max_prompt_tokens: 1024*16,
max_prompt_tokens: 1024*1024,
max_completion_tokens: 1024
})

Expand Down Expand Up @@ -101,8 +101,8 @@ def get_recommandations
contributions: get_contributions.pluck(:uuid_v2, :title, :description).map { |values| [:uuid_v2, :title, :description].zip(values).to_h },
solicitations: get_solicitations.pluck(:uuid_v2, :title, :description).map { |values| [:uuid_v2, :title, :description].zip(values).to_h },
outings: get_outings.pluck(:uuid_v2, :title, :description).map { |values| [:uuid_v2, :title, :description].zip(values).to_h },
pois: get_pois.pluck(:uuid_v2, :name, :description).map { |values| [:uuid_v2, :title, :description].zip(values).to_h },
resources: get_resources.pluck(:uuid_v2, :name, :description).map { |values| [:uuid_v2, :title, :description].zip(values).to_h }
pois: get_pois.pluck(:id, :name, :description).map { |values| [:id, :name, :description].zip(values).to_h },
resources: get_resources.pluck(:uuid_v2, :name, :description).map { |values| [:uuid_v2, :name, :description].zip(values).to_h }
}
}
end
Expand Down

0 comments on commit 1dd5ec4

Please sign in to comment.