vectorstores-0.1.dev51


توضیحات

Project for uploading vector embeddings directly to weaviate.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل vectorstores-0.1.dev51
نام vectorstores
نسخه کتابخانه 0.1.dev51
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Bohdan Babii <bohdanbabii2000@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/vectorstores/
مجوز -
# vectorstores Utilities for pushing vectors and metadata into a Weaviate instance. The package ships a `WeaviateVectorStore` implementation plus a simple `VectorStore` interface you can build on. ## Installation ```bash pip install vectorstores ``` ## Quickstart ```python import weaviate from vectorstores import WeaviateVectorStore # create a client (configure URL/auth to match your deployment) client = weaviate.connect_to_local() # or weaviate.connect_to_wcs(...) store = WeaviateVectorStore( client=client, index_name="MyIndex", text_key="text", ) # add data (stores text plus optional metadata; vectors can be provided explicitly) ids = store.add_vector( vectors=["Hello world", "Another sample"], metadatas=[{"topic": "greeting"}, {"topic": "example"}], ) print(ids) # delete by id store.delete(ids=[ids[0]]) ``` ### Notes - If you want multi-tenancy, pass `use_multi_tenancy=True` when constructing the store and provide `tenant=...` to write/delete calls. - If you already have embeddings and want to bypass internal embedding, pass them via `vectors` and supply matching `metadatas`/`ids`. ## Development Create a virtual environment and install dependencies with tests: ```bash python3 -m venv .venv source .venv/bin/activate pip install -e .[tests] ``` Run checks: ```bash ruff check . mypy . pytest ``` ## Building and uploading to PyPI 1) Clean old artifacts (optional but recommended): ```bash rm -rf dist build *.egg-info ``` 2) Build the wheel and sdist: ```bash python -m build ``` 3) Upload to PyPI with Twine: ```bash twine upload dist/* ``` Make sure your PyPI credentials are configured (e.g., via `~/.pypirc` or environment variables) before running the upload.


نیازمندی

مقدار نام
- importlib-metadata<9.0,>=6.5
- jsonpatch<2.0.0,>=1.33.0
- langsmith<1.0.0,>=0.3.45
ython_versio numpy>=1.26.4;
ython_versio numpy>=2.1.0;
- stubs~=1.0.0
- packaging<26.0.0,>=23.2.0
- pydantic<3.0.0,>=2.7.4
- PyYAML<7.0.0,>=5.3.0
- requests~=2.28
- tqdm~=4.64
- tenacity!=8.4.0,<10.0.0,>=8.1.0
xtr bandit[toml]~=1.7;
xtr mypy~=1.6;
xtr pytest<9.0,>=7.2;
xtr pytest-cov<8,>=4;
xtr ruff<0.15.0,>=0.2.1;
xtr types-requests~=2.31;
xtr types-tqdm~=4.66;


زبان مورد نیاز

مقدار نام
>=3.11 Python


نحوه نصب


نصب پکیج whl vectorstores-0.1.dev51:

    pip install vectorstores-0.1.dev51.whl


نصب پکیج tar.gz vectorstores-0.1.dev51:

    pip install vectorstores-0.1.dev51.tar.gz