Slackbot
11/28/2023, 7:27 PMJason Bosco
11/28/2023, 11:53 PMAyush Pratap Singh
11/29/2023, 6:07 AMAyush Pratap Singh
11/29/2023, 6:07 AM{
"created_at": 1692782291,
"default_sorting_field": "",
"enable_nested_fields": false,
"fields": [
{
"facet": true,
"index": true,
"infix": false,
"locale": "",
"name": "videoId",
"optional": false,
"sort": false,
"type": "string"
},
{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "text",
"optional": false,
"sort": false,
"type": "string"
},
{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "startTime",
"optional": false,
"sort": true,
"type": "int64"
},
{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "acl",
"optional": false,
"sort": false,
"type": "string[]"
},
{
"embed": {
"from": [
"text"
],
"model_config": {
"api_key": "sk-**********************************************",
"model_name": "openai/text-embedding-ada-002"
}
},
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "embedding",
"num_dim": 1536,
"optional": false,
"sort": false,
"type": "float[]"
}
],
"name": "transcript_plots",
"num_documents": 296,
"symbols_to_index": [],
"token_separators": []
}Jason Bosco
11/29/2023, 3:16 PMcurl -s 'https://qtg5aekc2iosjh93p.a1.typesense.net/multi_search?x-typesense-api-key=8hLCPSQTYcBuK29zY5q6Xhin7ONxHy99' \
--data-binary '
{
"searches": [
{
"query_by": "name,categories,description",
"exclude_fields": "vectors",
"collection": "products",
"q": "phone",
"per_page": 1
}
]
}
' | jq
If you remove the exclude_fields parameter it will then return the vectors.
Could you give me a set of curl commands like this that creates a sample collection, indexes one document, and does a search query that replicates the issue?Ayush Pratap Singh
11/30/2023, 6:24 AMAyush Pratap Singh
11/30/2023, 7:34 AMJason Bosco
11/30/2023, 3:30 PMexclude_fields inside a scoped API key, that will override the search parameter set outside the scoped API keyJason Bosco
11/30/2023, 3:30 PMAyush Pratap Singh
11/30/2023, 3:36 PMJason Bosco
11/30/2023, 3:39 PMAyush Pratap Singh
11/30/2023, 4:21 PMAyush Pratap Singh
11/30/2023, 4:51 PMJason Bosco
11/30/2023, 5:01 PMJason Bosco
11/30/2023, 5:02 PM