Skip to main content

Requirements

  1. Deployed models in Azure AI
  2. Set environment variable AZURE_ENDPOINT_URL_AND_KEY to contain all the models that you have hosted on Azure
    • Example for multiple models deployed in Azure (separated by , ): AZURE_ENDPOINT_URL_AND_KEY=https://model_1_link:api_key_1,https://model_2_link:api_key_2

List available models

from edsl import Model

azure_models = Model.available(service="azure")
azure_models
Model NameService Name
0azure:gpt-4o-testazure
1azure:gpt-4o-mini-testazure
2Mistral-Large-2411-thgdvazure

Run survey using models hosted on Azure

from edsl import QuestionFreeText
from edsl import Model

for model_name in azure_models:
    print("#############")
    print(model_name[0])
    model = Model(model_name[0])

    question = QuestionFreeText(question_name="q1",question_text="How many satellites are in space?")

    res = question.by(model).run(disable_remote_inference=True,cache=False)

    print(res.select("answer.*").print())
#############
azure:gpt-4o-test
answer.q1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
As of 2023, there are over 7,000 satellites in space. This number includes both operational satellites and those that are no longer functioning but remain in orbit. The number of satellites is continuously increasing due to the growing demand for satellite-based services, such as communication, navigation, and Earth observation.
#############
azure:gpt-4o-mini-test
answer.q1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
As of October 2023, there are thousands of satellites currently in orbit around Earth. The exact number is constantly changing due to new satellite launches and decommissioning of older ones. Reports indicate that there are over 3,500 operational satellites in orbit, with many more non-operational or defunct satellites contributing to the overall count. Additionally, the number of small satellites and CubeSats has been increasing rapidly in recent years due to advancements in technology and reduced launch costs. For the most accurate and up-to-date information, it’s best to check resources like the Union of Concerned Scientists’ satellite database or relevant space agencies.
#############
Mistral-Large-2411-thgdv
answer.q1
-----------
As of my last update in October 2023, the exact number of satellites in space can vary frequently due to new launches and decommissioning of old satellites. However, it is estimated that there are thousands of operational satellites in orbit around Earth. This number includes satellites used for various purposes such as communication, navigation, Earth observation, scientific research, and military applications.

In addition to operational satellites, there are also numerous pieces of space debris, including defunct satellites and other objects, which add to the overall count of man-made objects in space.

For the most current and precise information, you can refer to databases maintained by organizations such as the United Nations Office for Outer Space Affairs (UNOOSA), the Union of Concerned Scientists, or space agencies like NASA and ESA.

AWS Bedrock

  1. Set envariable variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY

List available models

from edsl import Model

aws_bedrock_models = Model.available(service="bedrock")
aws_bedrock_models
Model NameService Name
0amazon.titan-tg1-largebedrock
1amazon.titan-image-generator-v1:0bedrock
2amazon.titan-image-generator-v1bedrock
3amazon.titan-image-generator-v2:0bedrock
4amazon.titan-text-premier-v1:0bedrock
5amazon.nova-pro-v1:0:300kbedrock
6amazon.nova-pro-v1:0bedrock
7amazon.nova-lite-v1:0:300kbedrock
8amazon.nova-lite-v1:0bedrock
9amazon.nova-canvas-v1:0bedrock
10amazon.nova-reel-v1:0bedrock
11amazon.nova-micro-v1:0:128kbedrock
12amazon.nova-micro-v1:0bedrock
13amazon.titan-embed-g1-text-02bedrock
14amazon.titan-text-lite-v1:0:4kbedrock
15amazon.titan-text-lite-v1bedrock
16amazon.titan-text-express-v1:0:8kbedrock
17amazon.titan-text-express-v1bedrock
18amazon.titan-embed-text-v1:2:8kbedrock
19amazon.titan-embed-text-v1bedrock
20amazon.titan-embed-text-v2:0:8kbedrock
21amazon.titan-embed-text-v2:0bedrock
22amazon.titan-embed-image-v1:0bedrock
23amazon.titan-embed-image-v1bedrock
24stability.stable-diffusion-xl-v1:0bedrock
25stability.stable-diffusion-xl-v1bedrock
26ai21.j2-ultra-v1:0:8kbedrock
27ai21.jamba-instruct-v1:0bedrock
28ai21.jamba-1-5-large-v1:0bedrock
29ai21.jamba-1-5-mini-v1:0bedrock
30anthropic.claude-instant-v1:2:100kbedrock
31anthropic.claude-instant-v1bedrock
32anthropic.claude-v2:0:18kbedrock
33anthropic.claude-v2:0:100kbedrock
34anthropic.claude-v2:1:18kbedrock
35anthropic.claude-v2:1:200kbedrock
36anthropic.claude-v2:1bedrock
37anthropic.claude-v2bedrock
38anthropic.claude-3-sonnet-20240229-v1:0:28kbedrock
39anthropic.claude-3-sonnet-20240229-v1:0:200kbedrock
40anthropic.claude-3-sonnet-20240229-v1:0bedrock
41anthropic.claude-3-haiku-20240307-v1:0:48kbedrock
42anthropic.claude-3-haiku-20240307-v1:0:200kbedrock
43anthropic.claude-3-haiku-20240307-v1:0bedrock
44anthropic.claude-3-opus-20240229-v1:0:12kbedrock
45anthropic.claude-3-opus-20240229-v1:0:28kbedrock
46anthropic.claude-3-opus-20240229-v1:0:200kbedrock
47anthropic.claude-3-opus-20240229-v1:0bedrock
48anthropic.claude-3-5-sonnet-20240620-v1:0bedrock
49anthropic.claude-3-5-sonnet-20241022-v2:0bedrock
50anthropic.claude-3-7-sonnet-20250219-v1:0bedrock
51anthropic.claude-3-5-haiku-20241022-v1:0bedrock
52cohere.command-text-v14:7:4kbedrock
53cohere.command-text-v14bedrock
54cohere.command-r-v1:0bedrock
55cohere.command-r-plus-v1:0bedrock
56cohere.command-light-text-v14:7:4kbedrock
57cohere.command-light-text-v14bedrock
58cohere.embed-english-v3:0:512bedrock
59cohere.embed-english-v3bedrock
60cohere.embed-multilingual-v3:0:512bedrock
61cohere.embed-multilingual-v3bedrock
62meta.llama3-8b-instruct-v1:0bedrock
63meta.llama3-70b-instruct-v1:0bedrock
64meta.llama3-1-8b-instruct-v1:0bedrock
65meta.llama3-1-70b-instruct-v1:0bedrock
66meta.llama3-2-11b-instruct-v1:0bedrock
67meta.llama3-2-90b-instruct-v1:0bedrock
68meta.llama3-2-1b-instruct-v1:0bedrock
69meta.llama3-2-3b-instruct-v1:0bedrock
70meta.llama3-3-70b-instruct-v1:0bedrock
71mistral.mistral-7b-instruct-v0:2bedrock
72mistral.mixtral-8x7b-instruct-v0:1bedrock
73mistral.mistral-large-2402-v1:0bedrock
74mistral.mistral-small-2402-v1:0bedrock

Run Survey using AWS hosted models

from edsl import QuestionFreeText
from edsl import Model

for model_name in aws_bedrock_models[0:2]:
    print("#############")
    print(model_name[0])
    model = Model(model_name[0])

    question = QuestionFreeText(question_name="q1",question_text="How many satellites are in space?")

    res = question.by(model).run(disable_remote_inference=True,cache=False)

    print(res.select("answer.*").print())
#############
amazon.titan-text-express-v1
answer.q1
---------------------------------------------------------------------------------------------------------
There are over 5000 satellites in space. The majority of these are owned by the United States and Russia.
#############
amazon.titan-text-lite-v1
answer.q1
------------------------------------------------------------------------------------------------------------------
As of my knowledge cutoff date of 1/1/2023, there were an estimated 2,354 operational satellites in Earth's orbit.
I