Troubleshooting Typesense Node Embedding Field Error after Upgrade
TLDR Denny was having an error with the embedding field after upgrading a typesense node. Jason revealed that this was a bug in the v0.25.0 version. They suggested upgrading to 0.25.1.rc4 to fix the issue, which Denny did successfully.
1
Aug 27, 2023 (3 months ago)
Denny
02:26 PM{“results”:[{“code”:400,“error”:“Field
embedding should be a string or a string array.“}]}
Same as the issue below, however not sure what the solution is.
https://github.com/typesense/typesense/issues/1172
Jason
02:40 PMJason
02:40 PMDenny
03:25 PM{"state":1,"version":"0.25.0"}
Denny
03:26 PMcurl "https://{XXXXXXX}." \
-X POST \
-H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: {API_KEY}" \
-d '{
"searches": [
{
"collection": "products_v1",
"q": "clothes",
"query_by": "embedding",
"prefix": false,
"exclude_fields": "embedding"
}
]
}'
Denny
03:26 PM{"results":[{"code":400,"error":"Field `embedding` should be a string or a string array."}]}
Kishore Nallan
04:10 PMDenny
04:27 PMJason
09:04 PMv0.25.0
has a bug where if an auto-embedding field was added to an existing collection via a schema change, then the auto-embedding doesn't kick-in.We've fixed this issue in
0.25.1.rc4
. Could you upgrade to this and try again?(You might have to drop this field and re-add it back after the upgrade)
Aug 28, 2023 (3 months ago)
Denny
05:19 AMKishore Nallan
05:26 AMDenny
11:26 AM1
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Issues with Cluster Upgrade and Embedding Field
Gustavo had issues upgrading their cluster and their embedding field wasn't being filled. Jason helped to solve the upgrade issue and advised re-indexing the documents to solve the embedding field issue. Both problems were successfully resolved.
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.
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.
Error in Implementing Vector Search
Krish faced an error while implementing vector search. After recreating the collection as suggested by Kishore Nallan, the issue was resolved.
Troubleshooting Typesense Query Freezes
Manish experienced an issue where their Typesense query freezes. After several checks and attempts to fix the issue, Jason identified that the problem was due to 'embedding' being included in 'query_by'. Removing 'embedding' resolved the issue.