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

[Do not merge] AI function calling based new field insertion #2421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jingyih
Copy link
Collaborator

@jingyih jingyih commented Aug 5, 2024

The goal is to establish a more structured and automated interaction with AI. However, the current implementation faces challenges in retrieving updated content from the AI.

Several approaches have been explored:

  • Full File Retrieval: Requesting the AI to send the entire updated file back proved unsuccessful, likely due to exceeding the function call size limit.
  • Line-Specific Updates: Requesting the AI to specify which lines require insertion proved problematic, as the AI struggles with accurate line counting. This is observed even for conversation-based solutions.
  • Go Struct Updates: Instructing the AI to return the updated Go struct yielded inconsistent results. Often, the AI only provided the new field, while conversation-based solutions consistently provided accurate results. This suggests a discrepancy in the function calling process.

Uploading the PR for those interested in this topic.

Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from jingyih. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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