Error in Implementing Vector Search
TLDR Krish faced an error while implementing vector search. After recreating the collection as suggested by Kishore Nallan, the issue was resolved.
2
Apr 05, 2023 (8 months ago)
Krish
06:02 AMembeddings
does not have a vector query index.'}]}". Not sure where I am going wrong. Can you help please?search_requests = {
'searches': [{
'collection': 'wh-records',
'q': '*',
'vector_query': 'embeddings:([1.4580078, -1.7529297, -0.16894531, 2.4335938,....], k:50)',
'per_page': 50,
'exclude_fields': 'embeddings'
}]
}
common_search_params = {}
result = typesenseClient.multi_search.perform(search_requests, common_search_params)
print(result)
schema = {
"name": "wh-records",
"fields": [
{
"name" : "id",
"type" : "string"
},
{
"name" : "title",
"type" : "string",
"facet" : True
},
{
"name" : "url",
"type" : "string"
},
{
"name" : "date",
"type" : "string"
},
{
"name" : "summary",
"type" : "string",
"facet" : True
},
{
"name" : "embeddings",
"type" : "float[]",
"num_dim" : 4096
}
]
}
Kishore Nallan
06:09 AMKrish
06:09 AMKrish
06:10 AM {
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "embeddings",
"optional": false,
"sort": false,
"type": "float[]"
},
Krish
06:10 AMKishore Nallan
06:10 AMKrish
06:11 AMKrish
06:11 AMKishore Nallan
06:12 AMKrish
06:12 AMKrish
06:12 AMKishore Nallan
06:13 AMKrish
06:19 AM1
Krish
06:23 AM"field embeddings does not have a vector query index."
mean?Kishore Nallan
06:24 AMKishore Nallan
06:25 AMKrish
06:26 AMKrish
06:53 AM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Integrating Semantic Search with Typesense
Krish wants to integrate a semantic search functionality with typesense but struggles with the limitations. Kishore Nallan provides resources, clarifications and workarounds to the raised issues.
Utilizing Vector Search and Word Embeddings for Comprehensive Search in Typesense
Bill sought clarification on using vector search with multiple word embeddings in Typesense and using them instead of OpenAI's embedding. Kishore Nallan and Jason informed him that their development version 0.25 supports open source embedding models. They also resolved Bill's concerns regarding search performance, language support, and limitations in the search parameters.
Hybrid Search Distance Threshold Issue
Anish has an issue with search results not respecting the vector distance threshold when using hybrid search. Jason explains additional fields cause `vector_distance` to only apply to vector search results and suggests opening a feature request on GitHub.
Issue with Embedding Error in Version 0.25.0.rc63
Bill reported a bug in version 0.25.0.rc63 regarding a problem with updating or emplacing a document and receiving an embedding error. This was resolved in version 0.25.0.rc65, but further discussion ensued regarding the function of 'index' in the update feature.
Understanding Vector Naming in Typesense
Koushik was confused by inconsistent vector naming in Typesense documents. Jason clarified that the vector can be named anything, as long as it has a 'num_dim' property.