Description
I have a KnowledgeBase
-collection with the following keywords text-array property:
{
name: 'keywords',
dataType: 'text[]',
indexSearchable: true,
tokenization: 'word',
}
and I am trying to query this collection with the following gql-query:
query Get($tenant: String!, $where: GetObjectsKnowledgeBaseWhereInpObj) {
Get {
KnowledgeBase(limit: 10, tenant: $tenant, where: $where) {
content
keywords
}
}
}
and these variables:
{
"tenant": "xxx",
"where": {
"operator": "ContainsAny",
"path": [
"keywords"
],
"valueText": [
"keyword1",
"keyword2"
]
}
}
The response shows the following error:
"explorer: list class: search: object search at index knowledgebase_xxx: local shard object search knowledgebase_xxx: value type should be []string but is string",
here the collection config:
{
"class": "KnowledgeBase",
"invertedIndexConfig": {
"bm25": {
"b": 0.75,
"k1": 1.2
},
"cleanupIntervalSeconds": 60,
"stopwords": {
"additions": null,
"preset": "en",
"removals": null
}
},
"multiTenancyConfig": {
"autoTenantActivation": false,
"autoTenantCreation": true,
"enabled": true
},
"properties": [
{
"dataType": [
"text"
],
"indexFilterable": true,
"indexRangeFilters": false,
"indexSearchable": true,
"moduleConfig": {
"text2vec-aws": {
"skip": false,
"vectorizePropertyName": false
}
},
"name": "content",
"tokenization": "word"
},
{
"dataType": [
"text[]"
],
"indexFilterable": true,
"indexRangeFilters": false,
"indexSearchable": true,
"moduleConfig": {
"text2vec-aws": {
"skip": false,
"vectorizePropertyName": false
}
},
"name": "keywords",
"tokenization": "word"
}
],
"replicationConfig": {
"asyncEnabled": false,
"deletionStrategy": "NoAutomatedResolution",
"factor": 1
},
"shardingConfig": {
"actualCount": 0,
"actualVirtualCount": 0,
"desiredCount": 0,
"desiredVirtualCount": 0,
"function": "",
"key": "",
"strategy": "",
"virtualPerPhysical": 0
},
"vectorConfig": {
"content_vector": {
"vectorIndexConfig": {
"distance": "cosine",
"flat": {
"bq": {
"cache": false,
"enabled": false,
"rescoreLimit": -1
},
"distance": "cosine",
"pq": {
"cache": false,
"enabled": false,
"rescoreLimit": -1
},
"sq": {
"cache": false,
"enabled": false,
"rescoreLimit": -1
},
"vectorCacheMaxObjects": 1000000000000
},
"hnsw": {
"bq": {
"enabled": false
},
"cleanupIntervalSeconds": 300,
"distance": "cosine",
"dynamicEfFactor": 8,
"dynamicEfMax": 500,
"dynamicEfMin": 100,
"ef": -1,
"efConstruction": 128,
"filterStrategy": "sweeping",
"flatSearchCutoff": 40000,
"maxConnections": 32,
"multivector": {
"aggregation": "maxSim",
"enabled": false
},
"pq": {
"bitCompression": false,
"centroids": 256,
"enabled": false,
"encoder": {
"distribution": "log-normal",
"type": "kmeans"
},
"segments": 0,
"trainingLimit": 100000
},
"skip": false,
"sq": {
"enabled": false,
"rescoreLimit": 20,
"trainingLimit": 100000
},
"vectorCacheMaxObjects": 1000000000000
},
"threshold": 10000
},
"vectorIndexType": "dynamic",
"vectorizer": {
"text2vec-aws": {
"model": "cohere.embed-multilingual-v3",
"region": "eu-central-1",
"service": "bedrock",
"sourceProperties": [
"content"
],
"vectorizeClassName": false
}
}
}
}
}
I also tried the same request via Postman with the same results.
Server Setup Information
- Weaviate Server Version: 1.29.0
- Deployment Method: cloud
- Client Language and Version: bare gql weaviate cloud query console
- Multitenancy: true
Any additional Information
I also tried the same request via Postman with the same results.