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

ChatGPT Tag "documentTagging" Support #125

Closed
mfriesen opened this issue May 19, 2023 · 0 comments
Closed

ChatGPT Tag "documentTagging" Support #125

mfriesen opened this issue May 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mfriesen
Copy link
Member

Using ChatGPT add a document action to allow documentTagging:

IE:
{
"actions":
[
{
"type": "documentTagging",
"parameters":
[
{
"engine": "chatgpt",
"tags":
[
"organization",
"location",
"person",
"subject",
"sentiment",
"document type"
]
}
]
}
]
}

Would Generate Response as:
{
"id": "cmpl-7HOmfBlUrif1MEDOLEFEtJ44A9iGq",
"object": "text_completion",
"created": 1684381201,
"model": "text-davinci-003",
"choices":
[
{
"text": "\n\n{\n "Organization": ["Great Auk Enterprises"],\n "Location": ["YellowBelly Brewery Pub, St. Johns, NL"],\n "Person": ["Thomas Bewick", "Ketill Ketilsson", "Farley Mowat", "Aaron Thomas"], \n "Subject": ["MINUTES OF A MEETING OF DIRECTORS"], \n "Sentiment": [], \n "Document Type": ["Memorandum"] \n}",
"index": 0,
"logprobs": null,
"finish_reason": "stop"
}
],
"usage":
{
"prompt_tokens": 255,
"completion_tokens": 106,
"total_tokens": 361
}
}

@mfriesen mfriesen self-assigned this May 19, 2023
@mfriesen mfriesen added the enhancement New feature or request label May 19, 2023
@mfriesen mfriesen added this to the v1.11.0 milestone May 19, 2023
mfriesen added a commit that referenced this issue Jun 15, 2023
* #123 - Add AWS XRay Support to Lambda functions

* #124 - OCR Tessaract Support

* #126 - add GET/PATCH /configs API endpoints

* #125 - ChatGPT Tag "documentTagging" Support

* #127 - Add "apiKey" access support

* #126 add GET/PATCH /configuration API endpoints

* #128 - Add GET/POST/DELETE /configuration/apiKeys

* added contentLength to GET /documents/{documentId}/fulltext, POST /searchFulltext

* #10 - Version delete corrupts all other versions of file, including current

* moved awstests under integration src package
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

1 participant