Skip to content

Commit f7c78a9

Browse files
committed
update
1 parent 5f11308 commit f7c78a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/ai-services/openai/tutorials/embeddings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def cosine_similarity(a, b):
425425
def get_embedding(text, model="text-embedding-ada-002"): # model = "deployment_name"
426426
return client.embeddings.create(input = [text], model=model).data[0].embedding
427427

428-
def search_docs(df, user_query, top_n=3, to_print=True):
428+
def search_docs(df, user_query, top_n=4, to_print=True):
429429
embedding = get_embedding(
430430
user_query,
431431
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

0 commit comments

Comments
 (0)