-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from alan-turing-institute/anthropic-multimodal
Add anthropic multimodal option
- Loading branch information
Showing
12 changed files
with
622 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
examples/anthropic/data/input/anthropic-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 0, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["describe what is happening in this image", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}], "parameters": {"temperature": 1, "max_tokens": 100}} | ||
{"id": 1, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": [{"type": "image", "source": {"media": "mortadella.jpg", "media_type": "image/jpeg"}}, "what is this?"]}], "parameters": {"temperature": 1, "max_tokens": 100}} | ||
{"id": 2, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["what is in this image?", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}, {"role": "assistant", "content": "This is image shows a group of cyclists."}, {"role": "user", "content": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"temperature": 1, "max_tokens": 100}} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...ropic-multimodal-example/29-10-2024-15-36-27-completed-anthropic-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 0, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["describe what is happening in this image", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}], "parameters": {"temperature": 1, "max_tokens": 100}, "timestamp_sent": "29-10-2024-15-36-29", "response": "This image shows professional cyclists competing in what appears to be a cycling race, likely from the 1990s based on the equipment and team jerseys visible. There are several riders in the frame, including one wearing the distinctive pink jersey (known as the maglia rosa in the Giro d'Italia). The cyclists are riding along a stone wall with an iron fence on top, and they're using classic road racing bikes with distinctive team color schemes - notably some turquoise Bian"} | ||
{"id": 1, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": [{"type": "image", "source": {"media": "mortadella.jpg", "media_type": "image/jpeg"}}, "what is this?"]}], "parameters": {"temperature": 1, "max_tokens": 100}, "timestamp_sent": "29-10-2024-15-36-31", "response": "These appear to be mortadella and other Italian cold cuts or processed meats. The larger ones with the string/twine pattern wrapped around them are likely mortadella (a type of Italian bologna), while the pink spotted ones appear to be a different variety of cold cut or processed meat product. The spotted pattern is characteristic of certain Italian deli meats where small pieces of fat or other ingredients are distributed throughout the meat. These are commonly sliced and served in sandwiches or on"} | ||
{"id": 2, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["what is in this image?", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}, {"role": "assistant", "content": "This is image shows a group of cyclists."}, {"role": "user", "content": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"temperature": 1, "max_tokens": 100}, "timestamp_sent": "29-10-2024-15-36-33", "response": "From the image, I can see this appears to be from a professional cycling race, likely from the 1990s based on the equipment and jerseys. While there are professional cyclists in the image, including one wearing the pink jersey (which is the leader's jersey in the Giro d'Italia), I should refrain from identifying specific individuals by name. The image shows a group of riders from various teams including Mercatone Uno and what appears to be racing in a major"} |
3 changes: 3 additions & 0 deletions
3
...anthropic-multimodal-example/29-10-2024-15-36-27-input-anthropic-multimodal-example.jsonl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{"id": 0, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["describe what is happening in this image", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}], "parameters": {"temperature": 1, "max_tokens": 100}} | ||
{"id": 1, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": [{"type": "image", "source": {"media": "mortadella.jpg", "media_type": "image/jpeg"}}, "what is this?"]}], "parameters": {"temperature": 1, "max_tokens": 100}} | ||
{"id": 2, "api": "anthropic", "model_name": "claude-3-5-sonnet-20241022", "prompt": [{"role": "user", "content": ["what is in this image?", {"type": "image", "source": {"media": "pantani_giro.jpg", "media_type": "image/jpeg"}}]}, {"role": "assistant", "content": "This is image shows a group of cyclists."}, {"role": "user", "content": "are there any notable cyclists in this image? what are their names?"}], "parameters": {"temperature": 1, "max_tokens": 100}} |
1 change: 1 addition & 0 deletions
1
...put/anthropic-multimodal-example/29-10-2024-15-36-27-log-anthropic-multimodal-example.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
29-10-2024, 15:36: Completed experiment: anthropic-multimodal-example.jsonl! Experiment processing time: 9.878 seconds, Average time per query: 3.293 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters