text-embeddings
text-embeddings copied to clipboard
Blog Branch Error
When I try to run the script, I had to solve tf v1 issues by using tf.compat.v1
everywhere. Still, when I create the index it shows the error :
elasticsearch.exceptions.RequestError: RequestError(400, 'mapper_parsing_exception', 'No handler for type [dense_vector] declared on field [title_vector]')
I want to understand why this error is being shown.
Okay so I found the solution for this thanks to this issue opened on the ES forum : https://discuss.elastic.co/t/no-handler-for-type-dense-vector-for-version-7-4-2/223819
We need the default build flavor for embeddings to work. As you can see below, mine was an OSS build :
@jtibshirani can you add this information about which build_flavor is needed for this script to run in the readme as it is very difficult to find the issue and it's solution online.