This message was deleted.
# community-help
s
This message was deleted.
j
Happy to add it!
Is that different from this model: https://huggingface.co/ProsusAI/finbert
w
prosus finbert seems to be fine-tuned for sentiment e.g. positive, neutral, negative. finbert-pretrain was the original base finbert. But the one on hugging face is for mask-filling. I am not sure how you've converted the other ones to get the embeddings. Do they have to be tagged with the "sentence similarity" pipeline?
j
@Walter Cavinaw We had to modify some of the internals to get it it to generate embeddings. Could you now try using
ts/finbert
?
w
wow. you guys are legends. I tried dropping our current embedding field and re-adding it with the model name replaced (swap e5-small for finbert). It says:
Error: e: Request failed with HTTP code 400 | Server said: Schema change is incompatible with the type of documents already stored in this collection. error: Field
embedding
must have 768 dimensions.
My guess is that e5-small has fewer dimensions. that vector is still stored in the typesense document, and if I want to use the finbert embeddings I need to use a different field?
j
Yeah, you would have to use a different field. Btw, there's a quirk with altering an existing collection and adding a new embedding field (it currently doesn't remebed existing docs). We're fixing this bug. So until then you want to create a new collection and reindex your docs in it
w
ok gotcha. if we update all the docs regularly, it should fix itself right? Is that bug fix a few days or few weeks away? If a few days, I'll wait, if a few weeks, I'll probably create new collections. Again, thanks for being so responsive and adding finbert so quickly 🙏
👍 1
j
if we update all the docs regularly, it should fix itself right?
If the field values change, then it will fix itself. Otherwise, if it's an upsert with the same data, then the embeddings won't be regenerated. The bug fix is about 1-2 weeks away
w
Ok great. I can wait for that.