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

pyo3 instegration and adding support for parquet output and s3 stores #69

Open
qooba opened this issue Aug 24, 2022 · 0 comments
Open

Comments

@qooba
Copy link

qooba commented Aug 24, 2022

I'd like to add a few features.

  1. Integration with pyo3 bindings which will enable to publish library as a python package and use without using subprocess

  2. Support for a parquet output persistence:
    output_format="parquet"
    because writing to parquet row by row is inefficient thus and additional parameter will be required to write with the chunks:
    chunk_size=3000

  3. Support for a s3 as a input and output store

Example usage:

import cleora

output_dir = 's3://output'
fb_cleora_input_clique_filename = "s3://input/fb_cleora_input_clique.txt"
fb_cleora_input_star_filename = "s3://input/fb_cleora_input_star.txt"

cleora.run(
    input=[fb_cleora_input_clique_filename],
    type_name="tsv",
    dimension=1024,
    max_iter=5,
    seed=10,
    prepend_field=False,
    log_every=1000,
    in_memory_embedding_calculation=True,
    cols_str="complex::reflexive::CliqueNode",
    output_dir=output_dir,
    output_format="parquet",
    relation_name="emb",
    chunk_size=3000,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant