Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cdx1 notes #1627

Merged
merged 4 commits into from
Feb 9, 2025
Merged

cdx1 notes #1627

merged 4 commits into from
Feb 9, 2025

Conversation

prabhu
Copy link
Collaborator

@prabhu prabhu commented Feb 9, 2025

The purpose of this PR is to teach cdx1 about cdxgen. cdx1 must first learn the logic, biases, safeguards, and omissions in cdxgen, to help the users and developers with their sbom and build troubleshooting needs. Once such training is complete, we can train cdx1 to reason and think about alternatives, errors, etc.

mlx_lm.generate --model ./CycloneDX/cdx1-mlx-8bit --prompt "What is a PackageURL and why is a PackageURL object being created in the `determineParentComponent` function?" --temp 0.05 --system-prompt "You are a helpful assistant." --max-tokens 128000
==========
PackageURL (purl) is a standardized string format for identifying software packages. It includes components like type, namespace, name, version, qualifiers, and subpath. The function creates a PackageURL object to represent the package information in a structured and standardized way, making it easier to work with and share package data.
==========
mlx_lm.generate --model ./CycloneDX/cdx1-mlx --prompt "Why does 'cleanParentComponent' delete properties like 'evidence' and '_integrity' from the parent component object?" --temp 0.05 --system-prompt "You are a helpful assistant." --max-tokens 128000
==========
The 'cleanParentComponent' function is designed to remove properties that are not part of the CycloneDX specification from the parent component object. This includes properties like 'evidence' and '_integrity', which are used for internal purposes or are specific to the CycloneDX BOM generation process. By removing these properties, the function ensures that the resulting parent component object conforms to the CycloneDX specification and can be used in a CycloneDX BOM.
==========
mlx_lm.generate --model ./CycloneDX/cdx1-mlx --prompt "Does 'cleanParentComponent' delete any other properties other than 'evidence' and '_integrity'?" --temp 0.05 --system-prompt "You are a helpful assistant." --max-tokens 128000
==========
No, 'cleanParentComponent' only deletes the 'evidence' and '_integrity' properties from the parent component.
==========

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu marked this pull request as ready for review February 9, 2025 07:32
@prabhu prabhu merged commit 4e0e697 into master Feb 9, 2025
33 checks passed
@prabhu prabhu deleted the feature/cdx1-tool-calling branch February 9, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant