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 (3 months 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 3015 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.
Issue with Query Hangs Identifying Different Collection Field Names
Kanak experiences query hangs when collection field names differ. Ahmed had an issue adding documents to collections, which was self-resolved. Kishore Nallan resolved Kanak's issue with the updated build.