chore: ignore warnings (#44)

This commit is contained in:
Deepankar Mahapatro 2023-07-14 12:37:57 +05:30 committed by GitHub
parent 8e1ab38b50
commit 7efdc669ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,19 @@
__version__ = '0.0.12'
def _ignore_warnings():
import logging
import warnings
from vectordb.db.inmemory_exact_vectordb import InMemoryExactNNVectorDB
logging.captureWarnings(True)
warnings.filterwarnings(
"ignore",
category=DeprecationWarning,
message="Deprecated call to `pkg_resources.declare_namespace('google')`.",
)
_ignore_warnings()
__version__ = "0.0.12"
from vectordb.client import Client
from vectordb.db.hnsw_vectordb import HNSWVectorDB
from vectordb.client import Client
from vectordb.db.inmemory_exact_vectordb import InMemoryExactNNVectorDB