Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/scripts/sheet2docs/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ outputs:
sort:
by: "Name"
direction: "ascending"
#
- filename: "decision-models.csv"
filter:
column: "Type"
values: ["Decision"]
sort:
by: "Name"
direction: "ascending"
#
# - filename: "all-models.csv"
# # No filter: includes all rows
Expand Down
14 changes: 10 additions & 4 deletions .github/scripts/sheet2docs/sync_sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,8 @@ def filter_columns(
def write_csv(
data: List[Dict[str, Any]],
output_path: str,
delimiter: str = ','
delimiter: str = ',',
fieldnames: Optional[List[str]] = None
) -> None:
"""
Write data to CSV file.
Expand All @@ -794,6 +795,8 @@ def write_csv(
data: List of row dictionaries
output_path: Path where CSV should be written
delimiter: CSV delimiter character (default: comma)
fieldnames: Column names, used to write a header-only file when
there are no rows (for example, a type with no models yet)

Raises:
SystemExit: If file cannot be written
Expand All @@ -807,9 +810,10 @@ def write_csv(
# Write CSV
if not data:
print("Warning: No data to write to CSV", file=sys.stderr)
# Write empty file with just headers
# Write a file with just the header row
with open(output_path, 'w', newline='', encoding='utf-8') as f:
f.write('')
if fieldnames:
csv.writer(f, delimiter=delimiter).writerow(fieldnames)
return

# Get field names from first row
Expand Down Expand Up @@ -899,7 +903,9 @@ def main():
output_dir = output_config.get('directory', '.')
output_path = os.path.join(output_dir, filename)
delimiter = output_config.get('delimiter', ',')
write_csv(output_data, output_path, delimiter)
fieldnames = [col.get('target', col['source'])
for col in output_config['columns']]
write_csv(output_data, output_path, delimiter, fieldnames)

generated_paths.append(output_path)

Expand Down
1 change: 1 addition & 0 deletions explore-analyze/elastic-inference/decision-models.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Author,Name,ID,Model Card,Provider Terms,Input Modalities,Output Modalities,EOL Date,Data Retention Period (Days),Data Used To Train Models?,Inference Regions,Release Status,Stack Version
6 changes: 6 additions & 0 deletions explore-analyze/elastic-inference/eis-supported-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ For region availability and request routing, refer to [Region and hosting](eis-r
:caption: Scroll horizontally to view more information.
:::

### Decision models

:::{csv-include} decision-models.csv
:caption: Scroll horizontally to view more information.
:::

::::{important}

* The applicable terms of use, uptime, and performance for each of the AI models available with EIS are each described in the applicable AI model's Provider Terms and Model Card.
Expand Down
Loading