Skip to main content

infinity

Project description

dependency

python

pip install -r requirements.txt

cpp

thrift

sudo apt-get install thrift-compiler

build

python setup.py sdist bdist_wheel

install

pip install dist/*.whl

upload

using

import infinity
from infinity.common import REMOTE_HOST

infinity_obj = infinity.connect(REMOTE_HOST)
db = infinity_obj.get_database("default")
db.drop_table("my_table", if_exists=True)
table = db.create_table(
    "my_table", {"num": "integer", "body": "varchar", "vec": "vector,5,float"}, None)
table.insert(
    [{"num": 1, "body": "undesirable, unnecessary, and harmful", "vec": [1.0] * 5}])
table.insert(
    [{"num": 2, "body": "publisher=US National Office for Harmful Algal Blooms", "vec": [4.0] * 5}])
table.insert(
    [{"num": 3, "body": "in the case of plants, growth and chemical", "vec": [7.0] * 5}])

res = table.output(["*"]).knn("vec", [3.0] * 5, "float", "ip", 2).to_pl()
print(res)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

infinity_sdk-0.1.0.dev2.tar.gz (36.3 kB view details)

Uploaded Source

Built Distribution

infinity_sdk-0.1.0.dev2-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file infinity_sdk-0.1.0.dev2.tar.gz.

File metadata

  • Download URL: infinity_sdk-0.1.0.dev2.tar.gz
  • Upload date:
  • Size: 36.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for infinity_sdk-0.1.0.dev2.tar.gz
Algorithm Hash digest
SHA256 cd71fff5da859aa8c54c35cdc8b84207f146326431016cc76630fee0443b0c30
MD5 227c397d5ae789d683b7ab1ff775b4b5
BLAKE2b-256 c51c397513c5202a4564ceb2df2e9342fe493392b67735e4ef38d3479c71bdd8

See more details on using hashes here.

File details

Details for the file infinity_sdk-0.1.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for infinity_sdk-0.1.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 d99392c6b4cfe1154196a482b22cdaeea52373449a731b47368c98f78488abb9
MD5 88c6ba08dd94626083c1c60f466dc2fe
BLAKE2b-256 4802002ec6cc77e56bd15f7ad61ab012c9a48cef7529ff56698e68aa712c14b4

See more details on using hashes here.

Supported by

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