You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
df_bills['ada_v2'] = df_bills["text"].apply(lambda x : generate_embeddings (x, model = 'text-embedding-ada-002')) # engine should be set to the deployment name you chose when you deployed the text-embedding-ada-002 (Version 2) model
382
+
df_bills['ada_v2'] = df_bills["text"].apply(lambdax : generate_embeddings (x, model='text-embedding-ada-002')) #model should be set to the deployment name you chose when you deployed the text-embedding-ada-002 (Version 2) model
382
383
383
384
---
384
385
@@ -421,7 +422,7 @@ res = search_docs(df_bills, "Can I get information on cable company tax revenue?
421
422
defcosine_similarity(a, b):
422
423
return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))
0 commit comments