Comments (6)
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.
@isspek do you mean you want to delete a class in weaviate but using the docarray api?
from docarray.
Hi @hsm207, yes correct. I'd like to do that with the docarray api.
from docarray.
@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.
u could use the execute_query
method
from docarray.
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)
- Crash when using non-class type field in Document with QdrantDocumentIndex HOT 1
- filter_docs fail to apply `and` when both parts of query refer to same field HOT 2
- chore: draft release note v0.37.1
- refactor: count number of documents using hnswlib HOT 11
- _pickle.PicklingError encountered when attempting to serialize `BaseDoc` type HOT 4
- Document torch.compile workaround
- Inconsistent `to_json()` return type HOT 1
- Request for support for MongoDB Atlas Vector Search as DocIndex HOT 5
- chore: bump to latest tensorflow version HOT 6
- Release Note HOT 5
- Bug with DocList[] HOT 7
- [pydantic v2] csv and pandas reader DocList with Nested Documents is not working HOT 3
- [pydantic v2] Override config is not working
- [pydantic v2] nested json parsing is not working HOT 2
- [pydantic 2] create pydantic model from schema HOT 1
- [pydantic v2] Validation with default value is not working
- [pydantic v2] create_doc_from_typeddict is not working HOT 1
- Already parametrized DocList class should not be subscriptable HOT 1
- # Shaped Tensor are not compatible with FastAPI HOT 2
- [pydantic v2] Push and pulling tests not passing with pydantic v2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docarray.