Hello, I'm trying to insert documents into a Types...
# community-help
m
Hello, I'm trying to insert documents into a Typesense collection with auto-generated embeddings using the configuration specified in the Typesense schema. However, I'm encountering an error, and the documents are not being inserted as expected. Here is my schema:
Copy code
{
  "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:
Copy code
{
  "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.
j
Could you make sure you’re running v0.25 of Typesense. You can verify the version by doing
GET /debug
m
oohhh. got it. how can i move to v0.25?
j
How do you run Typesense today?
m
cloud
j
If you go to your cluster dashboard > Cluster Configuration > Modify, you’ll be able to switch the Typesense version
m
okay
thanks
👍 1