@ubiquity-os/issue-comment-embeddings
This is a plugin for Ubiquibot. It listens for issue comments, and adds them to a vector store. It handles comment edits and deletions as well.
.dev.vars
file, you will need to provide the following variables:SUPABASE_URL
: The URL for your Supabase instance.SUPABASE_KEY
: The key for your Supabase instance.VOYAGEAI_API_KEY
: The API key for Voyage..ubiquity-os.config.yml
file with the appropriate URL:
yarn install
to install the dependencies.yarn worker
to start the server.Application/JSON
{
"stateId": "",
"eventName": "issue_comment.created",
"eventPayload": {
"comment": {
"user": {
"login" : "COMMENTER"
},
"body": "<COMMENT_BODY>" ,
"id": <UNIQUE_COMMENT_ID>
},
"repository" : {
"name" : "REPONAME",
"owner":{
"login" : "USERNAME"
}
},
"issue": {
"number": <ISSUE_NUMBER>,
"body": "<ISSUE_TEXT>"
}
},
"env": {},
"settings": {},
"ref": "",
"authToken": ""
}
yarn test
to run the tests.