-
Notifications
You must be signed in to change notification settings - Fork 267
Dense Vector Field Support #356
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
you need to pass def __init__(self, attr=None, **kwargs):
dims = 1024
super(DenseVector, self).__init__(attr=attr, dims=dims, **kwargs) |
It looks like The Then, in class DenseVectorField(DEDField, DenseVector):
pass although I need to explore how to use |
Custom DenseVector Field
but got error: What am I doing wrong here? |
I note the closed issue
https://github.com/elastic/elasticsearch-dsl-py/issues/1278
I created a densevector field as mentioned above
I have a method on my model the calculates the embedding called get_embedding
I am trying to create a Field that will access the attribute on my model and store the calculated embedding similar to
in documents.py
I am getting TypeError: init() got an unexpected keyword argument 'attr'
where is attr being initialised, or am I going down the wrong path?
Many thanks
The text was updated successfully, but these errors were encountered: