Skip to content

Commit

Permalink
Merge pull request #400 from microsoft/brrohrer/modelcheckerror
Browse files Browse the repository at this point in the history
brrohrer/modelcheckerror
  • Loading branch information
dayland authored Dec 15, 2023
2 parents 3e32c3b + cefa92c commit e495630
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/enrichment/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,10 @@ def poll_queue() -> None:

# create embedding
embedding = embed_texts(target_embeddings_model, [text])
embedding_data = embedding['data']
if 'data' in embedding:
embedding_data = embedding['data']
else:
raise ValueError(embedding['message'])

tag_list = get_tags_and_upload_to_cosmos(blob_service_client, chunk_dict["file_name"])

Expand Down

0 comments on commit e495630

Please sign in to comment.