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

feat(2652): use LLM to infer arg and field names #2687

Closed

Conversation

beelchester
Copy link
Contributor

@beelchester beelchester commented Aug 14, 2024

fixes: #2652
/claim #2652

Output

 INFO Suggestions for Address: [Address, Location, Place, Site, Point] - 1/8
 INFO Suggestions for Comment: [Comment, Post, Reply, Message, Feedback] - 2/8
 INFO Suggestions for Company: [Company, Business, Entity, Organization, Profile] - 3/8
 INFO Suggestions for Geo: [Location, Coordinate, Point, Position, Geo] - 4/8
 INFO Suggestions for Photo: [Photo, Image, Picture, Media, Asset] - 5/8
 INFO Suggestions for Post: [Post, Article, Entry, Content, Item] - 6/8
 INFO Suggestions for Todo: [Task, Todo, Item, Entry, Activity] - 7/8
 INFO Suggestions for User: [Contact, User, Profile, Account, Person] - 8/8
 INFO Suggestions for todo's argument p1: [id, index, count, limit, offset] - 1/6
 INFO Suggestions for post's argument p1: [postId, postCount, postLimit, postOffset, postNumber] - 2/6
 INFO Suggestions for user's argument p1: [userId, userCount, id, limit, page] - 3/6
 INFO Suggestions for postComments's argument postId: [postId, commentId, post, comment, id] - 4/6
 INFO Suggestions for comment's argument p1: [commentId, commentCount, postId, replyId, threadId] - 5/6
 INFO Suggestions for photo's argument p1: [photoId, photoIndex, photoNumber, photoCount, photoOrder] - 6/6
type Query {
  comment(commentId: Int!): Reply @http(path: "/comments/{{.args.commentId}}")
  comments: [Reply] @http(path: "/comments")
  photo(photoId: Int!): Image @http(path: "/photos/{{.args.photoId}}")
  photos: [Image] @http(path: "/photos")
  post(postId: Int!): Article @http(path: "/posts/{{.args.postId}}")
  postComments(commentId: Int): [Reply] @http(path: "/comments", query: [{key: "commentId", value: "{{.args.commentId}}"}])
  posts: [Article] @http(path: "/posts")
  todo(id: Int!): Task @http(path: "/todos/{{.args.id}}")
  todos: [Task] @http(path: "/todos")
  user(userId: Int!): Contact @http(path: "/users/{{.args.userId}}")
  users: [Contact] @http(path: "/users")
}

@beelchester beelchester marked this pull request as draft August 14, 2024 05:45
@github-actions github-actions bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Aug 14, 2024
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 28.72928% with 258 lines in your changes missing coverage. Please review.

Project coverage is 86.48%. Comparing base (38ae551) to head (72b4d4c).
Report is 121 commits behind head on main.

Files with missing lines Patch % Lines
src/cli/llm/infer_arg_name.rs 0.00% 106 Missing ⚠️
src/cli/llm/infer_field_name.rs 0.00% 103 Missing ⚠️
src/cli/generator/generator.rs 0.00% 22 Missing ⚠️
src/core/config/transformer/rename_fields.rs 0.00% 20 Missing ⚠️
src/core/config/transformer/rename_args.rs 92.94% 6 Missing ⚠️
src/cli/llm/infer_type_name.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2687      +/-   ##
==========================================
- Coverage   87.30%   86.48%   -0.83%     
==========================================
  Files         254      258       +4     
  Lines       25311    25644     +333     
==========================================
+ Hits        22099    22177      +78     
- Misses       3212     3467     +255     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@beelchester beelchester marked this pull request as ready for review August 17, 2024 03:54
@tusharmath tusharmath marked this pull request as draft August 17, 2024 14:33
@github-actions github-actions bot added the ci: benchmark Runs benchmarks label Aug 21, 2024
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
@beelchester beelchester marked this pull request as ready for review August 21, 2024 05:27
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
@tusharmath tusharmath removed the ci: benchmark Runs benchmarks label Sep 3, 2024
@github-actions github-actions bot added the ci: benchmark Runs benchmarks label Sep 8, 2024
@beelchester beelchester changed the title feat(2652): use LLM to infer arg names feat(2652): use LLM to infer arg and field names Sep 9, 2024
Copy link

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Sep 14, 2024
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Sep 15, 2024
Copy link

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Sep 20, 2024
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Sep 21, 2024
@tusharmath tusharmath removed the ci: benchmark Runs benchmarks label Sep 21, 2024
@amitksingh1490
Copy link
Collaborator

Please resolve conflicts

@amitksingh1490 amitksingh1490 self-assigned this Sep 26, 2024
@amitksingh1490 amitksingh1490 requested review from tusharmath and amitksingh1490 and removed request for tusharmath September 26, 2024 08:32
Copy link

github-actions bot commented Oct 1, 2024

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 1, 2024
@beelchester beelchester marked this pull request as draft October 2, 2024 03:12
@github-actions github-actions bot removed the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 2, 2024
Copy link

github-actions bot commented Oct 7, 2024

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. and removed state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. labels Oct 7, 2024
Copy link

Action required: PR inactive for 5 days.
Status update or closure in 10 days.

@github-actions github-actions bot added the state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. label Oct 12, 2024
Copy link

PR closed after 10 days of inactivity.

@github-actions github-actions bot closed this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim state: inactive No current action needed/possible; issue fixed, out of scope, or superseded. type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use LLMs to infer arg names of generated configurations
3 participants