Eric Hasegawa
08/12/2024, 12:49 AMconst updateSchema = {
fields: [
{
name: 'secondary_search_keywords',
type: 'string',
optional: true,
index: true,
},
{
name: 'secondary_search_keywords_embedding',
type: 'float[]',
embed: {
from: ['secondary_search_keywords'],
model_config: {
model_name: 'openai/text-embedding-3-small',
api_key: process.env.OPENAI_API_KEY as string,
},
},
},
],
} as CollectionUpdateSchema
and it failed with this error:
RequestMalformed: Request failed with HTTP code 400 | Server said: Schema change is incompatible with the type of documents already stored in this collection. error: Field `secondary_search_keywords_embedding` has invalid fields to create embeddings from.
Now, any migrations I try to run on this collection trigger the same error. I've tried dropping the column, running a migration thats unrelated (e.g. adding a test column), it's all blocked. The June 12th thread recommended upgrading to 27.0.rc20
, but I'm on Typesense Cloud so I can't do this 😞
CC @Jason Bosco @Kishore Nallan Any advice on this? Quite time sensitive, considering migrating to self hosted typesense so we can upgrade the version and fix, pls advise when possible!Kishore Nallan
08/12/2024, 4:33 AM27.0.rc30
Eric Hasegawa
08/12/2024, 4:35 AMKishore Nallan
08/12/2024, 4:36 AMKishore Nallan
08/12/2024, 4:37 AM27.0.rc29
. I have just made rc30 also available now.Eric Hasegawa
08/12/2024, 5:16 PMEric Hasegawa
08/12/2024, 5:16 PM