Skip to content

Commit

Permalink
fix get_embedding in class AzureSim, passing self.emb_call instead of…
Browse files Browse the repository at this point in the history
… the client
  • Loading branch information
hieutrtr committed Sep 19, 2024
1 parent cc8be2e commit 97b4062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/utils/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(
raise ValueError("key is required if no column 'embs' is present.")

if sim_key is not None:
self.df["embs"] = self.df[sim_key].apply(lambda x: get_embedding(client, x))
self.df["embs"] = self.df[sim_key].apply(lambda x: get_embedding(self.emb_call, x))


class OllamaSim(Sim):
Expand Down

0 comments on commit 97b4062

Please sign in to comment.