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

Missing environment variables #242

Closed
imda-sitaraja opened this issue Jun 13, 2024 · 1 comment · Fixed by #243 or #250
Closed

Missing environment variables #242

imda-sitaraja opened this issue Jun 13, 2024 · 1 comment · Fixed by #243 or #250
Assignees
Labels
good first issue Good for newcomers

Comments

@imda-sitaraja
Copy link
Collaborator

I understand that Moonshot requires an environment file to link test assets in moonshot-data to moonshot. However, when we encounter a failure in installing requirements and fix the issues related to dependencies, we notice that this environment file is not created. We therefore cannot reference test assets in moonshot-data.

@imda-sitaraja imda-sitaraja added the good first issue Good for newcomers label Jun 13, 2024
@imda-normanchia
Copy link
Collaborator

thanks for bringing up this issue, we will fix this in the next release. For now, a solution for you is that you can manually create the .env file to point to the asset folders.

An example of how the .env file will look like:


ATTACK_MODULES="./moonshot-data/attack-modules"
    CONNECTORS="./moonshot-data/connectors"
    CONNECTORS_ENDPOINTS="./moonshot-data/connectors-endpoints"
    CONTEXT_STRATEGY="./moonshot-data/context-strategy"
    COOKBOOKS="./moonshot-data/cookbooks"
    DATABASES="./moonshot-data/generated-outputs/databases"
    DATABASES_MODULES="./moonshot-data/databases-modules"
    DATASETS="./moonshot-data/datasets"
    IO_MODULES="./moonshot-data/io-modules"
    METRICS="./moonshot-data/metrics"
    PROMPT_TEMPLATES="./moonshot-data/prompt-templates"
    RECIPES="./moonshot-data/recipes"
    RESULTS="./moonshot-data/generated-outputs/results"
    RESULTS_MODULES="./moonshot-data/results-modules"
    RUNNERS="./moonshot-data/generated-outputs/runners"
    RUNNERS_MODULES="./moonshot-data/runners-modules"
    TOKENIZERS_PARALLELISM = false 
   
    # For Web API
    HOST_ADDRESS=127.0.0.1 # The interface the server will bind to
    HOST_PORT=5000

    # Below is the uri of the Web UI webhook.
    # In the next section, if Web UI listens on a different port,
    # update this uri accordingly and restart.

    MOONSHOT_UI_CALLBACK_URL=http://localhost:3000/api/v1/benchmarks/status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
2 participants