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

Incorporate ChatGPT for Catalogue Entry Metadata properties #84

Open
bgajdero opened this issue Jun 12, 2024 · 0 comments
Open

Incorporate ChatGPT for Catalogue Entry Metadata properties #84

bgajdero opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bgajdero
Copy link
Contributor

bgajdero commented Jun 12, 2024

Use the test repo and code in program.py to create descriptions for catalogue entries.

The get_catalog_summary_from_openai() method takes a CKAN package and metadata and creates a prompt to ChatGPT, and retrieves the response.

Ensure parameters for max_tokens=1000 and temperature=0.0 are kept.
Ensure to securely store OPENAI key to work with CKAN architecture.

Store resulting description in a new property called cudc:hasMetadataSummary, with range xsd:string.

Display the text above "Additional Information" section, under new section title "Metadata Maturity Summary". Add a disclaimer underneath, stating "This summary automatically generated by an AI model."

Allow site admin and Organization admin to have access to generate an entry description.

Ensure the following tasks are complete:

  1. Implement the relevant program.py code.
  2. Test the generation of code.
  3. On each entry "Manage" page, add a button to generate the summary, with label "Generate Summary"
  4. On the admin Config page, add a button to generate summary for any entry that does not have one, or has an empty value for cudc:hasMetadataSummary property.
@bgajdero bgajdero added the enhancement New feature or request label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants