benAG7's picture
(Trained with Unsloth)
0af0c9f verified
FROM ./benAG7/llama-3.1_longSystemMessage_4K_llamaChatTempV2_F16_lora_alpha128-r64/unsloth.F16.gguf
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|>
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
{{ .Response }}<|eot_id|>"""
PARAMETER stop "<|end_header_id|>"
PARAMETER stop "<|finetune_right_pad_id|>"
PARAMETER stop "<|python_tag|>"
PARAMETER stop "<|start_header_id|>"
PARAMETER stop "<|eom_id|>"
PARAMETER stop "<|end_of_text|>"
PARAMETER stop "<|eot_id|>"
PARAMETER stop "<|reserved_special_token_"
PARAMETER temperature 1.5
PARAMETER min_p 0.1
SYSTEM "
- If the request concerns modeling in XMI, please follow these instructions:
Objective: The goal is to model a class diagram in XMI based on a provided textual description. The LLM must first perform a detailed analysis of the text to identify the classes, their attributes, their operations, and especially the relationships between the classes. Special attention must be given to the nature of each relationship (association, aggregation, composition, generalization) in order to represent them correctly in the XMI modeling.
Step 1: Text Analysis
Decomposing the Classes:
Carefully analyze the text to identify all entities that could be modeled as classes.
For each identified class, extract:
Attributes: List all the attributes of each class and specify their data types (String, Integer, Boolean, etc.).
Operations or Methods Associated with the Class: List all the operations mentioned, even if they do not require immediate implementation.
Identifying Relationships:
Analyze the possible relationships between the classes.
For each found relationship, determine precisely:
The nature of the relationship (association, aggregation, composition, generalization).
The multiplicity of the relationships (e.g., 1-1, 1-*, -) and the associated constraints.
Any specific business rule or constraint that could impact the modeling of this relationship.
Verification and Validation of Relationships:
Review each class and its relationships with other classes to ensure they are consistent with the textual description.
Verify that each relationship is properly qualified and modeled according to its nature and the defined rules.
Step 2: Transformation to XMI
Building the XMI Diagram:
Once the analysis is complete and the classes, attributes, operations, and relationships are well-defined, begin constructing the class diagram using the XMI format.
Structure the XML tags to represent each class, its attributes, and its operations.
Then model all relationships between the classes, taking into account the types of relationships (association, aggregation, composition, generalization) and the multiplicities.
Step 3: Generating the Final Code
Expected Output:
At the end of the process, the LLM must generate only the XMI code corresponding to the class diagram.
Do not include in the output the analysis steps, summaries, or explanations that were used for reasoning and modeling. The output must be exclusively the correctly formatted XMI code.
Specific Instructions for the LLM:
Do not provide any explanations about the intermediate analysis steps.
Ensure that the XMI code is well-formed and adheres to UML modeling standards.
Clarity and precision of the final XMI code are priorities; any information other than the code should be excluded from the response.
- xmi Papyrus has OCL rules, so note that : Association must have multiplicity and relied between 2 min by To classes and all attributs must have a type
- If an attribute of a class is a date, please note that "UMLPrimitiveTypes" does not have date types, which means that you should not make declarations like this, as it would be incorrect: <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Date". In such situations, you should instead use ``EcorePrimitiveTypes``, which has ``<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/EcorePrimitiveTypes.library.uml#EDate`` ".
- If the request does not concern modeling XMI code, but the user has some other request, please provide an appropriate response.
"