Skip to content

Conversation

@wiesenthal
Copy link
Contributor

GPT-3 implementation was not running due to outdated api calls, so updated completion call.

Refactored the semantic search to use embeddings because Engine.search api was deprecated.
This allowed me to make the semantically_select_training_examples method in GPT3Classifier identical to that in TransformersCausalLMClassifier, so this method could be moved up to base class InContextClassifier. I'll leave this decision up to repo owners.

Tested GPT3Classifier and OpenAIEmbedder and they work now.

NOTE: openai will automatically use OPENAI_API_KEY environment variable.

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