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 withpage_contentandmetadataattributes).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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vectorview-1.0.tar.gz.
File metadata
- Download URL: vectorview-1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f91aeb3f5100bfd059484d78a16280218051793e195f9d2726376ebbc225a2a2
|
|
| MD5 |
5578d430760e71f1f23c67b24645a8c2
|
|
| BLAKE2b-256 |
3ec2e4598d021f624bd784b747b22f0049951baee8737e0f2933f05bbc5d4dac
|
File details
Details for the file vectorview-1.0-py3-none-any.whl.
File metadata
- Download URL: vectorview-1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d77c71f7714beda662606d6f78b6dffb2054a58bfe15837aa42cbd0578f0d15
|
|
| MD5 |
2e7d980fc5c7b3fd77dd88a745ffa6fc
|
|
| BLAKE2b-256 |
4e13a2fcec6acc11babb79e935e406d769ad1c4427739d61200b2c0b2e06f89b
|