Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding samples on embeddings architectures #2

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dereklegenzoff
Copy link
Member

No description provided.

import azure.functions as func

account_name = os.environ["azure_table_account_name"]
account_key = os.environ["azure_table_key"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not table key, rather "Azure_Storage_key" or "Storage_Account_Key"

import openai
import azure.functions as func

account_name = os.environ["azure_table_account_name"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Azure_Storage_Name" or "Storage_Account_Name"

"source": [
"for i, row in documents_df.iloc[0:100].iterrows(): # for simplicity, only processing the first 100 documents\n",
"\n",
" embedding = get_embedding(row['content'], TEXT_SEARCH_EMBEDDING_ENGINE)\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Limit embedding to some specific float values otherwise it exceeds the 32KB limit of the table column

@shshubhe
Copy link
Collaborator

@paragagrawal11 @dereklegenzoff : This PR seems stuck. @gojira Can you please review and approve?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants