← Search

Data · dataset · 2024

Replication Data for: Compositio Prompto: An Architecture to Employ Large Language Models in Automated Service Computing

Listed in DaRUS

A classic, central Service-Oriented Computing (SOC) challenge is the service composition problem.

Description

It concerns solving a user-defined task by selecting a suitable set of services, possibly found at runtime, determining an invocation order, and handling request and response parameters. The solutions proposed in the past two decades mostly resort to additional formal modeling of the services, leading to extra effort, scalability issues, and overall brittleness.

With the rise of Large Language Models (LLMs), it has become feasible to process semistructured information like state-of-practice OpenAPI documentation containing formal parts like endpoints and free-form elements like descriptions. We propose Compositio Prompto to generate service compositions based on those semi-structured documents. Compositio Prompto acts as an encapsulation of the prompt creation and the model invocation such that the user only has to provide the service specifications, the task, and which input and output format they expect, eliminating any manual and laborious annotation or modeling task by relying on already existing documentation.

Read the rest (8 more)

To validate our approach, we implement a fully operational prototype, which operates on a set of OpenAPIs, a plain text task, and an input and output JSON schema as input and returns the generated service composition as executable Python code. We measure the effectiveness of our approach on a parking spot booking case study. Our experiments show that models can solve several tasks, especially those above 70B parameters, but none can fulfill all tasks.

Furthermore, compared with manually created sample solutions, the ones generated by LLMs appear to be close approximations. Methodology (summarized): We perform an automated service composition for parking spot booking using LLMs for the study. There are six parking services and two payment services.

The six parking services are duplicated with different distances and prices to create distinct sets 1 and 2. We define eight prompts and perform the composition using 14 different LLMs. We use a best-of-three-shot approach to reduce the influence of randomness.

Finally, we assess functionality manually and apply code similarity metrics to a manually crafted sample solution. All experiments are described in detail in the full paper. Content: code/*: Code to perform the experiments.

For details, see "code/README.md". code/evaluation/prompt_generation.py: Services and prompt generation. code/evaluation/sample_solution/*: Sample solution and similarity evaluation. results/*: Results for the runs with the LLMs. Filename structure: "results/{model_name}-{run}/prompt_{prompt_number}_set_{set_number}_{artifact}". The artifact can be "code_0.py" for the generated code, "code_1.py" if tasked to improve the code, or "prompt.txt" for the used prompt.

For the best run, the code metrics are in "comparison.json". prompt_template.txt: Pseudo code for the prompt template. Implemented in code/evaluation/prompt_generation.py.

Note

Please use the tree view to access the files. License: License for the "code/*": MIT. License for the "results/*": CC BY 4.0.

Links

Where it is published

Catalogue records · 1

Topics

From keywords
Humanities
Provenance · 1 source records, 10 field assertions
SourceKeyLast seenRaw
DaRUSdoi:10.18419/DARUS-449712 d agoJSON v1
FieldAssertionExtractorEvidence
concepts[field].anzsrc:group:4606enrichment · darus uni stuttgart detaxonomy-embedding@1.1.0title+keywords+description (73%)
concepts[field].dataverse_subject:computer-and-information-sciencesource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0/subjects
concepts[field].local:field:humanitiesmapping · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0/subjects
concepts[modality].local:modality:textenrichment · darus uni stuttgart dekeyword-concept-rules@1.0.0title+description (75%)
created_datesource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0
descriptionsource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0/description
publication_datesource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0
titlesource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0/name
updated_datesource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0
version_labelsource · darus uni stuttgart deconnector:darus_uni_stuttgart_de@1.0.0