using GPT-4's pre-trained embeddings? #1435
Unanswered
chonchonj23
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It does not. What you are using is a representation model, not an embedding model. I would advise reading the documentation instead. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Maarten,
The code below has generated some excellent results, and I want to confirm if the code uses GPT-4's pre-trained embeddings.
from bertopic.representation import OpenAI
representation_model = OpenAI(model="gpt-4", chat=False)
model = BERTopic(embedding_model=representation_model)
topics, probs = model.fit_transform(docs)
Best regards,
Chon
Beta Was this translation helpful? Give feedback.
All reactions