Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Create a Property with moduleConfig #105

Open
Kostjanix2 opened this issue Dec 20, 2023 · 2 comments
Open

Unable to Create a Property with moduleConfig #105

Kostjanix2 opened this issue Dec 20, 2023 · 2 comments

Comments

@Kostjanix2
Copy link

I am trying to add a Property to a Class with the propertyCreator, but I always recieve a Error, which I do not understand correctly.
return await this.weaviateClient.schema .propertyCreator() .withClassName(className) .withProperty({ dataType: ['text'], description: 'Der Hash des Produkts', name: 'hash', moduleConfig: { 'text2vec-openai': { vectorizePropertyName: false, skip: true, }, }, }) .do();
It does work, when I am not using the moduleConfig attribute
When executing this i recieve following error:
Error: usage error (422): {"error":[{"message":"none vectorizer module not part of the property"}]} at .../node_modules/weaviate-ts-client/dist/index.js:1:9070 at processTicksAndRejections (node:internal/process/task_queues:95:5)

@tsmith023
Copy link
Contributor

Hi @Kostjanix2, to help diagnose the issue could you please also post the class schema? Cheers 😁

@Kostjanix2
Copy link
Author

Hello @tsmith023 here is a example of the Schema i am using. :)
export const Schema = {
class: "Schema",
vectorizer: 'text2vec-openai',
properties: [
{
dataType: ['text'],
description: 'The ID',
name: 'customerId',
},
{
dataType: ['text'],
description: 'The Name',
name: 'title',
},
{
dataType: ['text'],
description: 'The description',
name: 'description',
},
{
dataType: ['text'],
description: 'The Url,
name: 'url',
moduleConfig: {
'text2vec-openai': {
vectorizePropertyName: false,
skip: true,
},
},
},
],
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants