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

feat: anonymous telemetry #423

Merged
merged 15 commits into from
Aug 11, 2023
Merged

feat: anonymous telemetry #423

merged 15 commits into from
Aug 11, 2023

Conversation

cachho
Copy link
Contributor

@cachho cachho commented Aug 10, 2023

Description

adds asynchronous anonymous telemetry

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Please delete options that are not relevant.

  • Unit Test

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Maintainer Checklist

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Made sure Checks passed

@@ -16,14 +16,15 @@ class AppConfig(BaseAppConfig):
Config to initialize an embedchain custom `App` instance, with extra config options.
"""

def __init__(self, log_level=None, host=None, port=None, id=None, collection_name=None):
def __init__(self, log_level=None, host=None, port=None, id=None, collection_name=None, anonymous_telemetry=None):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note for future: we should have a master class for app config from which AppConfig, OpenSourceConfig and CustomAppConfig can inherit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can leave this for now, but @cachho can you open an issue for future?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should do it, because you know exactly what you want and I dont.

@@ -32,6 +33,7 @@ def __init__(self, log_level=None, host=None, port=None, id=None, collection_nam
port=port,
id=id,
collection_name=collection_name,
anonymous_telemetry=anonymous_telemetry,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets call this flag as collect_metrics

reasoning: "Metrics" is a broad term that can encompass various kinds of quantitative data. "Collect" explicitly describes the action of gathering data, making the purpose of the flag straightforward. we want to use this metrics to improve our package and everything will be anonymized.

@cachho
Copy link
Contributor Author

cachho commented Aug 11, 2023

also tackles #109 now, by returning values from load_and_embed (add). Although not completely, because print is still used.

@cachho
Copy link
Contributor Author

cachho commented Aug 11, 2023

assumes the use of #320. Otherwise, telemetry for add_local has to be implemented. @taranjeet

@@ -10,6 +10,7 @@ title: '🔍 Query configurations'
| embedding_fn| embedding function | chromadb.utils.embedding_functions | \{text-embedding-ada-002\} |
| db | vector database (experimental) | BaseVectorDB | ChromaDB |
| collection_name | initial collection name for the database | string | embedchain_store |
| collection_metrics | collect anonymous telemetry data to improve embedchain | boolean | true |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be collect_metrics in the first column.

@taranjeet taranjeet merged commit 163f437 into mem0ai:main Aug 11, 2023
3 checks passed
@cachho cachho deleted the feat/Telemetry branch August 12, 2023 12:47
@cachho cachho mentioned this pull request Aug 12, 2023
13 tasks
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

Successfully merging this pull request may close these issues.

2 participants