OSDK defineObject does not support embeddings

I attempted to define an object using defineObject that includes vectors, ie:

embeddings: {
          displayName: 'Embeddings',
          description: 'Embeddings',
          type: {
            type: 'vector',
            vector: {
              dimension: 1536,
              supportsSearchWith: ['COSINE_SIMILARITY'],
            },
          } as any,
        },

I didn’t get any TS errors with this definition so I assume it is correct. But I get a validation error saying unsupported type. I changed it to string and figure I have to manually fix this in the ontology manager. Is the type definition correct? If so can the OSDK be updated to support vector types?

as any is why TypeScript accepted this. The nested structure resembles the lower-level Ontology API representation, but it is not actually supported. If you look in the docs you will see that vectors are unfortunately not supported at the moment.

For now, I would manage the vector-backed object type in Ontology Manager.