Code Monkey home page Code Monkey logo

Comments (6)

JoanFM avatar JoanFM commented on June 6, 2024

For the moment you can check the execute_query method where u can pass ur custom Weaviate query to delete ur index (check Weaviate docs for that). On the othrr hand we can try to add a more native API for this method, something like delete or clear

from docarray.

hsm207 avatar hsm207 commented on June 6, 2024

@isspek do you mean you want to delete a class in weaviate but using the docarray api?

from docarray.

isspek avatar isspek commented on June 6, 2024

Hi @hsm207, yes correct. I'd like to do that with the docarray api.

from docarray.

hsm207 avatar hsm207 commented on June 6, 2024

@isspek noted. That is not possible at the moment. Right now, only delete by document ids is supported e.g:

del test_index[["1", "2"]]

from docarray.

JoanFM avatar JoanFM commented on June 6, 2024

u could use the execute_query method

from docarray.

samedovzaur avatar samedovzaur commented on June 6, 2024

Initial Checks

  • I have searched Google & GitHub for similar requests and couldn't find anything
  • I have read and followed the docs and still think this feature is missing

Description

Hi everyone,

I started using docarray with Weaviate. My question is about clearing index of Weaviate by using the docarray API. I have set up a collection as shown at the below code. It is a test collection, and want to clear or remove this index after testing. How can I clear/remove it with the docarray library? Thanks a lot!

runtimeconfig = WeaviateDocumentIndex.RuntimeConfig(batch_config=batch_config)
store = WeaviateDocumentIndex[MyIndex](
   host="http://localhost:8080", index_name="MyIndex"
)
store.configure(runtimeconfig) 

Affected Components

Instead of deleting that can we update it into an empty string? Just asking :)

from docarray.

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.