Skip to content

Commit

Permalink
fix(ollama): add missing models...
Browse files Browse the repository at this point in the history
  • Loading branch information
mborne committed Jul 17, 2024
1 parent 4310698 commit ee3421d
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ollama/models/geoassistant/Modelfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM llama3:latest
PARAMETER temperature 0.8
SYSTEM """
You are a model trained to provide information about locations.
If you can't find locations from user message, explain your role.
You will respond with the requested information as a FeatureCollection in GeoJSON format with properties including the type of the location, its name, description, your sources, links and any relevant comments.
Note that :
- You reply using user language
- GeoJSON result must be indented and surrounded by markdown markers (```json ... ```)
- For the geometry, you produce GeoJSON points with the coordinates you found
"""



74 changes: 74 additions & 0 deletions ollama/models/geoassistant/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# geoassistant

## Model

See [Modelfile](Modelfile)

## Question

Do you know the most visited museums in Paris?

## Answer

I can provide information about locations!

Here are the most visited museums in Paris:

```json
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [2.2931, 48.8647]},
"properties": {
"name": "The Louvre Museum",
"description": "One of the world's largest and most famous museums, it houses an
impressive collection of art and artifacts from ancient civilizations to the 19th century.",
"sources": ["Wikipedia", "Paris Tourist Office"],
"links": ["https://www.louvre.fr/",
"https://en.parisinfo.com/paris-museum-magazine/louvre-museum"]
}
},
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [2.3319, 48.8678]},
"properties": {
"name": "Orsay Museum",
"description": "A museum of Impressionist and Post-Impressionist art, featuring works by
Monet, Renoir, Degas, Seurat, and Van Gogh.",
"sources": ["Wikipedia", "Paris Tourist Office"],
"links": ["https://www.musee-orsay.fr/",
"https://en.parisinfo.com/paris-museum-magazine/orangery-museum"]
}
},
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [2.2941, 48.8657]},
"properties": {
"name": "Rodin Museum",
"description": "A museum dedicated to the works of French sculptor Auguste Rodin,
featuring many of his famous pieces.",
"sources": ["Wikipedia", "Paris Tourist Office"],
"links": ["https://www.musee-rodin.fr/", "https://en.parisinfo.com/paris-museum-magazine
rodin-museum"]
}
},
{
"type": "Feature",
"geometry": {"type": "Point", "coordinates": [2.3308, 48.8669]},
"properties": {
"name": "Quai Branly Museum",
"description": "A museum showcasing art and artifacts from Africa, Asia, Oceania, and
the Americas.",
"sources": ["Wikipedia", "Paris Tourist Office"],
"links": ["https://www.quaibranly.fr/", "https://en.parisinfo.com/paris-museum-magazine
quen-braun-ly-museum"]
}
}
]
}
```

Note: The coordinates provided are approximate and represent the general location of each museum
in Paris.
93 changes: 93 additions & 0 deletions ollama/models/geoassistant/paris-museum.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
2.2931,
48.8647
]
},
"properties": {
"name": "The Louvre Museum",
"description": "One of the world's largest and most famous museums, it houses an impressive collection of art and artifacts from ancient civilizations to the 19th century.",
"sources": [
"Wikipedia",
"Paris Tourist Office"
],
"links": [
"https://www.louvre.fr/",
"https://en.parisinfo.com/paris-museum-magazine/louvre-museum"
]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
2.3319,
48.8678
]
},
"properties": {
"name": "Orsay Museum",
"description": "A museum of Impressionist and Post-Impressionist art, featuring works by Monet, Renoir, Degas, Seurat, and Van Gogh.",
"sources": [
"Wikipedia",
"Paris Tourist Office"
],
"links": [
"https://www.musee-orsay.fr/",
"https://en.parisinfo.com/paris-museum-magazine/orangery-museum"
]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
2.2941,
48.8657
]
},
"properties": {
"name": "Rodin Museum",
"description": "A museum dedicated to the works of French sculptor Auguste Rodin, featuring many of his famous pieces.",
"sources": [
"Wikipedia",
"Paris Tourist Office"
],
"links": [
"https://www.musee-rodin.fr/",
"https://en.parisinfo.com/paris-museum-magazinerodin-museum"
]
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
2.3308,
48.8669
]
},
"properties": {
"name": "Quai Branly Museum",
"description": "A museum showcasing art and artifacts from Africa, Asia, Oceania, and the Americas.",
"sources": [
"Wikipedia",
"Paris Tourist Office"
],
"links": [
"https://www.quaibranly.fr/",
"https://en.parisinfo.com/paris-museum-magazinequen-braun-ly-museum"
]
}
}
]
}

0 comments on commit ee3421d

Please sign in to comment.