I believe omitting the .value property works because the function is trying to access a value attribute on a string object, which does not exist. I don't know if this is the correct fix, or if the embedding() function is intended to be passed something else other than a string.
EDIT: embedding weighting doesn't work with my solution, but doing like <emb:xyz:0.5> doesn't seem to work for me with the deployed version either, so I'm not sure what the right approach is.
Thanks for the hard work making this project, it's amazing.
I noticed when I tried to use the alt syntax for embeddings,
<emb:xyz>
, i would be returned:I was able to fix the error by modifying the
embedding()
function to:I believe omitting the
.value
property works because the function is trying to access a value attribute on a string object, which does not exist. I don't know if this is the correct fix, or if theembedding()
function is intended to be passed something else other than a string.EDIT: embedding weighting doesn't work with my solution, but doing like
<emb:xyz:0.5>
doesn't seem to work for me with the deployed version either, so I'm not sure what the right approach is.