Skip to main content

Vector database monitoring and analytics

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Vectorview API

Vectorview is a Python class designed to interact with the Vectorview backend.

Methods

__init__(key, project_id='default', verbose=False)

Creates an instance of the Vectorview class.

Parameters

  • key: str - Authentication key to interact with the endpoint.
  • project_id: str - (Optional, leave blank if not given one) Identifier for the project interacting with the endpoint. Default is "default".
  • verbose: bool - (Optional) Flag to toggle printing of debug information. Default is False.

event(query, docs_with_score, query_metadata=None) -> requests.Response

Logs an event to Vectorview, with payload containing query, documents, and metadata.

Parameters

  • query: str - A string representing the query.
  • docs_with_score: List[Tuple[Union[str, Any], float]] - A list of tuples, each containing a document and a corresponding score. The document can be a string or a langchain Document (or any other object with page_content and metadata attributes).
  • query_metadata: Dict[str, Any], optional - (Optional) Additional metadata related to the query. Default is an empty dictionary.

Returns

  • requests.Response - The HTTP response returned after sending the event.

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

vectorview-0.8.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

vectorview-0.8-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file vectorview-0.8.tar.gz.

File metadata

  • Download URL: vectorview-0.8.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for vectorview-0.8.tar.gz
Algorithm Hash digest
SHA256 adc33514471ca3bb73e40f49bbea0b598e56c7d683498ed6b203b33da4626c72
MD5 7fe5c37583a7a8137a682a3c49b13804
BLAKE2b-256 99c27bd44d26b8de64bc0292dd5976eae9c7d5f3b73dc7f6ea6f9327074185f8

See more details on using hashes here.

File details

Details for the file vectorview-0.8-py3-none-any.whl.

File metadata

  • Download URL: vectorview-0.8-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.13

File hashes

Hashes for vectorview-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8ffaff5c967053f0c16924c35bfb0f9fe2a2af36336d300d6b7e63c98fd4072c
MD5 1d62385cfa6da2e30b5cbcf77118f709
BLAKE2b-256 26e035f440aad6c6aed3e866c8ee4e4eb321da3ad2e7b4d414afb21aa216c9a0

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