Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID Generators #62

Open
tazarov opened this issue Aug 14, 2024 · 0 comments
Open

ID Generators #62

tazarov opened this issue Aug 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tazarov
Copy link
Contributor

tazarov commented Aug 14, 2024

Sample interface:

package tech.amikos.chromadb.ids;

public interface IdGenerator {
    String generateForDocument(String document);
}

UUID Example:

package tech.amikos.chromadb.ids;

public class UUIDv4IdGenerator implements IdGenerator {
    @Override
    public String generateForDocument(String document) {
        return java.util.UUID.randomUUID().toString();
    }
}

We can benefit from a bulk ID generator.

@tazarov tazarov added the enhancement New feature or request label Aug 14, 2024
@tazarov tazarov added this to the 0.2.0 milestone Aug 14, 2024
@tazarov tazarov self-assigned this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant