Skip to content

Comments

Allow Mulit-Col Map Output#116

Open
sidjha1 wants to merge 3 commits intomainfrom
sid/multi-col-map
Open

Allow Mulit-Col Map Output#116
sidjha1 wants to merge 3 commits intomainfrom
sid/multi-col-map

Conversation

@sidjha1
Copy link
Collaborator

@sidjha1 sidjha1 commented Feb 19, 2025

Lets users specify a pydantic model for output schema specification on sem_map. If no user schema is provided then a defualt schema of map_output is used.

class SemanticMapPostprocessOutput:
raw_outputs: list[str]
outputs: list[str]
outputs: list[dict[str, str]]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The post-processed output will be a list[dict[str, str]] now since it will be like

[{'out_col_1': 'out_val_1', 'out_col_2': 'out_val_2'}, {'out_col_1': ...}`]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant