Code Monkey home page Code Monkey logo

Comments (2)

owieboy avatar owieboy commented on June 16, 2024 1

Thank you for the the clarifications. I can confirm that the tenant auto creation and data insertion indeed work when using batch operation.

POST http://localhost:{{WEAVIATE_PORT}}/v1/batch/objects

{
  "fields": [
    "ALL"
  ],
  "objects": [
    {
    "class": "TestSchema",
    "properties": {
        "account_id": "1"
    },
    "vector": [
        1
    ],
    "tenant": "TSTDRV1234"
    }
  ]
}

response:

[
    {
        "class": "TestSchema",
        "creationTimeUnix": 1715893985742,
        "id": "99b56cb4-9f7c-49af-9f75-d047d74c05df",
        "lastUpdateTimeUnix": 1715893985742,
        "properties": {
            "account_id": "1"
        },
        "tenant": "TSTDRV12344",
        "vector": [
            1
        ],
        "deprecations": null,
        "result": {
            "status": "SUCCESS"
        }
    }
]

from weaviate.

parkerduckworth avatar parkerduckworth commented on June 16, 2024

Hey @owieboy thanks for your report!

Auto tenant creation is actually only available during batch importing.

This wasn't super clear in the docs, and we have since made a change to clarify this.

Additionally, I've improved the error message that occurs in this case (multi-tenancy and autoTenantCreation are enabled, and a single object insert is attempted with a non-existent tenant) here with #4948. This will be included in the next patch release, 1.25.1.

Apologies for the miscommunication on our part!

from weaviate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.