Difficulty Inserting Documents into Typesense Collection
TLDR Moyenul had trouble inserting documents in a Typesense collection. Jason identified that Moyenul was using an outdated Typesense version and suggested updating it, which resolved the issue.
1
Aug 20, 2023 (1 month ago)
Moyenul
03:05 PMHere is my schema:
{
"name": "products",
"fields": [
{
"name": "brand",
"type": "string"
},
{
"name": "categories",
"type": "string"
},
{
"name": "embedding",
"type": "float[]",
"embed": {
"from": ["brand", "categories"],
"model_config": {
"model_name": "ts/e5-small"
}
}
}
]
}
Attempt to insert a document into the "products" collection:
{
"brand": "apple",
"categories": "computer"
}
Observe the following error message: 'Field embedding has been declared in the schema, but is not found in the document.'
I have also tried by cloning your repository https://github.com/typesense/showcase-hn-comments-semantic-search . But got the same error.
Jason
03:55 PMGET /debug
Moyenul
03:59 PMJason
04:00 PMMoyenul
04:00 PMJason
04:00 PMMoyenul
04:00 PMMoyenul
04:00 PM1
Typesense
Indexed 2776 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Document Import Error
Christopher had trouble importing 2.1M documents into Typesense due to memory errors. Jason clarified the system requirements, explaining the correlation between RAM and dataset size, and ways to tackle the issue. They both also discussed database-like query options.
Resolving Typesense Error for Invalid Field Types
Edward was facing a problem sending documents due to invalid field types. Jason helped to identify and resolve the issued by advising on the correct usage of the schema.
Troubleshooting Indexing Duration in Typesense Import
Alan asked about lengthy indexing times for importing documents to Typesense. Jason suggested various potential causes, including network connectivity and system resources. They later identified the problem to be an error in Alan's code.
Trouble Creating New Collection With Typesense on Mac OS X
Bill was struggling to create a new collection using Typesense on Mac OS X due to system crashing. The issue was resolved when they realized their PC didn't have enough RAM to load the embedding model.
Troubleshooting 400 Error When Upgrading Typesense Firestore Extension
Orion experienced a `400` error after updating the Typesense Firestore extension, causing issues with cloud functions. They traced the issue back to a data type conflict in their Typesense collection schema after updating. With help from Jason and Kishore Nallan, they resolved the issue by recreating the collection.