Code Monkey home page Code Monkey logo

Comments (5)

freakeinstein avatar freakeinstein commented on May 13, 2024 1

Hi @marijnl, here are the steps to submit a pull request, which doesn't require write permissions.

  1. Fork (will take a photocopy) this project as your personal repository
  2. Clone that copy to your local system
  3. Make changes to the source code
  4. commit and push changes from your local system to your fork
  5. create a pull request to a-mma AquilaDB
    that's it!

from aquila.

marijnl avatar marijnl commented on May 13, 2024

I supply the _id before adding it to the db

def convertDocuments(_id, vector):
{
            "vector": {
                "e": vector
            },
            "_id" : _id.encode('utf-8')
}

This way its easy to delete vectors using a deleteRequest without having to keep track over db keys

I noticed though that the vectors are only labeled as being deleted. They are not physically removed from disk

from aquila.

freakeinstein avatar freakeinstein commented on May 13, 2024

@marijnl You are right. To remove a document from the database, what you need to do is set _deleted key to true, because AquilaDB follows Couch protocol and use PouchDB internally. But this doesn't remove that item from vector index. We need to do that as well. So, essentially, the implementation would be, we would delete the document the same way you have mentioned, which will trigger an internal change event which should call delete method on vector index. We appreciate your interest and are open to pull requests if you are able to pull this off..

from aquila.

marijnl avatar marijnl commented on May 13, 2024

@freakeinstein I think i dont have permissions to create a branch and PR. Can you grant me access? I didnt fix this specific issue but a typing issue of env variables.

from aquila.

freakeinstein avatar freakeinstein commented on May 13, 2024

Code is rewritten. Bug is irrelevant and covered. closed.

from aquila.

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.