How could reuse embeddings generated by openai? #2029
Replies: 1 comment
-
Solved. I should pass the
Another question is that when I switch the backend model, it's invalid until I restart the jupyter kernal. But its a tiny issues. Thanks for Bertopic! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a quick question: I use the openai embedding as backend. It's successed if I followed the guide. However, It's a little expensive if I request openai embeddings when I modify the hyper-parameter everytime, so I want to save the text embeddings for reuse.
I save the embeddings at a variable
embeddings
, and create the topic_modeling. But there are some errors:object of type 'numpy.float64' has no len()
Here are some codes I wrote:Beta Was this translation helpful? Give feedback.
All reactions