Hi all, Running into a similar issue to <this one...
# community-help
e
Hi all, Running into a similar issue to this one, where I attempted to run this migration:
Copy code
const 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:
Copy code
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!
k
We do allow upgrading versions to RC builds on Typesense Cloud. For e.g. you can upgrade to the latest 0.27 RC which is
27.0.rc30
e
This is what I'm seeing when I try to modify it
k
You have to scroll, the RC builds are at the end.
You should see atleast
27.0.rc29
. I have just made rc30 also available now.
e
OH that makes sense
ty!