Skip to main content

Python client for Fluxion

Project description

Vectordb Python Client

This is the Python client for Vectordb.

Installation

pip install vectordb

Usage

from vectordb import Vectordb

vectordb = Vectordb()

collection = vectordb.init("my_collection")

collection.records.insert([
    {
        "content": "The quick brown fox jumps over the lazy dog.",
        "payload": {
            "source": "example.com",
        },
    },
])

results = collection.records.search("fox and dog")
# [
#     {
#         "id": 1,
#         "content": "The quick brown fox jumps over the lazy dog.",
#         "payload": { "source": "example.com" },
#         "metadata": {
#             "model": "all-MiniLM-L6-v2",
#             "timestamp": "2024-09-20T14:56:36.949030+00:00",
#         },
#         "distance": 0.9344318091942762,
#     },
# ]

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluxiondb-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxiondb-0.0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file fluxiondb-0.0.1.tar.gz.

File metadata

  • Download URL: fluxiondb-0.0.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.0 Darwin/24.3.0

File hashes

Hashes for fluxiondb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 30b003c220e611de876792dd6efb3f07aeab05181c0ea14b7efec43886a93b5f
MD5 a3042ad79c3f228235cee02289709e54
BLAKE2b-256 cae50d71fe70a9085161ef4c86498c1c1ec3b5e332c91b028690b8acac602395

See more details on using hashes here.

File details

Details for the file fluxiondb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fluxiondb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.0 Darwin/24.3.0

File hashes

Hashes for fluxiondb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf65171b79f193472016e213e820c285786dc79c9cda1e4a87bd46528c289fdc
MD5 1dad7d3f65a686d2db209ff0861802af
BLAKE2b-256 7a7dea3a329563879a80087a85b97bbf2e091d864608f7ad025cebb7b3cd0374

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page