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

feat(aws): improved size #1188

Merged
merged 1 commit into from
Sep 16, 2023
Merged

feat(aws): improved size #1188

merged 1 commit into from
Sep 16, 2023

Conversation

StanGirard
Copy link
Collaborator

Decreased cpu to 256 to increase number

@StanGirard StanGirard temporarily deployed to preview September 16, 2023 14:49 — with GitHub Actions Inactive
@StanGirard StanGirard merged commit 54a34c2 into main Sep 16, 2023
5 of 8 checks passed
@vercel
Copy link

vercel bot commented Sep 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs 🔄 Building (Inspect) Visit Preview Sep 16, 2023 2:49pm
quivrapp 🔄 Building (Inspect) Visit Preview Sep 16, 2023 2:49pm

@github-actions
Copy link
Contributor

Risk Level 2 - /home/runner/work/quivr/quivr/backend/celery_task.py

  1. The create_embedding_for_document function is using the user_openai_api_key as a parameter. This could potentially expose sensitive information. Consider using environment variables or a secure method to handle API keys.

  2. The create_embedding_for_document function is not handling any exceptions. It's a good practice to handle exceptions to avoid unexpected crashes. For example, what if Neurons().create_vector(doc, user_openai_api_key) fails? Or Brain(id=brain_id).create_brain_vector(created_vector_id, file_sha1) fails?

  3. The create_embedding_for_document function is not returning anything. If this function is expected to return a result, please add a return statement.

  4. The create_embedding_for_document function is not documented. Consider adding docstrings to describe what the function does, its parameters, its return value, and any exceptions that it raises.

Example:

@shared_task
def create_embedding_for_document(
    brain_id, doc_with_metadata, user_openai_api_key, file_sha1
):
    \"\"\"
    This function does ...
    :param brain_id: ...
    :param doc_with_metadata: ...
    :param user_openai_api_key: ...
    :param file_sha1: ...
    :return: ...
    :raises: ...
    \"\"\"
    ...

🔑💥📝


Powered by Code Review GPT

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.

None yet

1 participant