kotaemon/knowledgehub/__init__.py
Nguyen Trung Duc (john) 0a3fc4b228 Correct the use of abstractmethod (#80)
* Correct abstractmethod usage

* Update interface

* Specify minimal llama-index version [ignore cache]

* Update examples
2023-11-20 11:18:53 +07:00

26 lines
498 B
Python

# Disable telemetry with monkey patching
import logging
logger = logging.getLogger(__name__)
try:
import posthog
def capture(*args, **kwargs):
logger.info("posthog.capture called with args: %s, kwargs: %s", args, kwargs)
posthog.capture = capture
except ImportError:
pass
try:
import os
os.environ["HAYSTACK_TELEMETRY_ENABLED"] = "False"
import haystack.telemetry
haystack.telemetry.telemetry = None
except ImportError:
pass
__version__ = "0.3.2"