Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Proof-of-concept for Intent detector API#63228

Merged
rafax merged 10 commits into
mainfrom
rg/intent_detector
Jun 12, 2024
Merged

Proof-of-concept for Intent detector API#63228
rafax merged 10 commits into
mainfrom
rg/intent_detector

Conversation

@rafax

@rafax rafax commented Jun 12, 2024

Copy link
Copy Markdown
Contributor

Add a GraphQL endpoint for intend-detection - Slack [context]

Test plan

  • tested locally using API Console / curl
{
  getCodyIntent(query: "How to get started on this Linear issue") {
    intent
    score
  }
}

@cla-bot cla-bot Bot added the cla-signed label Jun 12, 2024
@rafax rafax marked this pull request as ready for review June 12, 2024 13:42
@rafax rafax requested review from a team and rishabhmehrotra June 12, 2024 13:44

@rishabhmehrotra rishabhmehrotra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rafax rafax enabled auto-merge (squash) June 12, 2024 14:06
@rafax rafax merged commit b910760 into main Jun 12, 2024
@rafax rafax deleted the rg/intent_detector branch June 12, 2024 14:18
@sqs

sqs commented Jun 12, 2024

Copy link
Copy Markdown
Member

naming nits (not blocking):

  • This is not a Cody intent, it's just an intent or perhaps a chat intent
  • get seems off in GraphQL. This is a query not a mutation. Just name it the info that is returned.

@rafax

rafax commented Jun 12, 2024

Copy link
Copy Markdown
Contributor Author

naming nits (not blocking):

  • This is not a Cody intent, it's just an intent or perhaps a chat intent
  • get seems off in GraphQL. This is a query not a mutation. Just name it the info that is returned.

I followed the naming convention from the other method on the same resolver (GetCodyContext that takes a GetContextArgs), but I agree, depending on the next steps I'll either fix this or will move it to a more permanent place (this should really be a part of the upcoming Context API).

rafax referenced this pull request Jun 28, 2024
…63416)

Address remarks from
https://github.com/sourcegraph/sourcegraph/pull/63228#issuecomment-2163682435

## Test plan
- tested locally
- old code not deleted yet (until I confirm it's ok to remove it)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants