No project description provided
Project description
QuipuBase Client for Python
Welcome to the QuipuBase Client for Python! This SDK is designed to provide a seamless and efficient way to interact with QuipuBase, an advanced data management system tailored for modern AI applications. With QuipuBase, you can leverage high-performance storage, semantic search, custom data modeling, and seamless integrations. Our SDK ensures that developers have all the tools they need to build powerful, scalable, and efficient applications.
Features
- High-Performance Storage: QuipuBase leverages cutting-edge technologies to provide rapid storage and retrieval capabilities, ensuring that your applications run smoothly and efficiently.
- Semantic Search: Perform advanced searches with ease using our robust semantic search functionalities.
- Custom Data Modeling: Define and manage custom data models to suit the unique needs of your application.
- Seamless Integrations: Integrate with various third-party services and platforms effortlessly.
Installation
To install the QuipuBase Client for Python, simply use pip:
pip install quipu-sdk
Getting Started
Initializing the Client
First, import the necessary modules and initialize the client:
from quipubase_client import QuipuClient, Base
from pydantic import BaseModel
# Define your data model
class MyDataModel(BaseModel):
name: str
value: int
# Initialize the client with your data model
client = QuipuClient[MyDataModel]()
Inserting Data
To insert data into QuipuBase, use the put
method:
data = MyDataModel(name="example", value=42)
response = await client.put(namespace="my_namespace", instance=data)
print(response)
Retrieving Data
To retrieve data from QuipuBase, use the get
method:
key = "your_data_key"
response = await client.get(namespace="my_namespace", key=key)
print(response)
Merging Data
To merge data into an existing entry, use the merge
method:
data = MyDataModel(name="example_updated", value=43)
response = await client.merge(namespace="my_namespace", instance=data)
print(response)
Deleting Data
To delete data from QuipuBase, use the delete
method:
key = "your_data_key"
response = await client.delete(namespace="my_namespace", key=key)
print(response)
Finding Data
To find data based on certain criteria, use the find
method:
response = await client.find(namespace="my_namespace", name="example")
print(response)
Advanced Operations
Upserting Vector Data
QuipuBase supports vector operations for advanced use cases such as similarity search and AI applications:
from quipubase_client.schemas import RagRequest
data = RagRequest(content=[0.1, 0.2, 0.3, 0.4])
response = await client.upsert(namespace="my_namespace", data=data)
print(response)
Querying Vector Data
To query vector data:
response = await client.query(namespace="my_namespace", data=data, top_k=5)
print(response)
# CosimResult(id='23rw-a194k-2r3', score=0.99, content='example')
Conclusion
The QuipuBase Client for Python provides a powerful and efficient way to interact with QuipuBase, enabling developers to build advanced AI applications with ease. With high-performance storage, semantic search, custom data modeling, and seamless integrations, QuipuBase is the ideal choice for modern data management needs. Get started with the QuipuBase Client for Python today and unlock the full potential of your applications!
For more information, visit QuipuBase.
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
Built Distribution
File details
Details for the file quipu_sdk-0.1.1.tar.gz
.
File metadata
- Download URL: quipu_sdk-0.1.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47685550f5ce061978e078277c82f03a1cc9f962493bd65d709e8c8b6ae5022 |
|
MD5 | 4c403b27c2cd54beb6dbe8c4baa3b685 |
|
BLAKE2b-256 | 08f8576b43155afab66bd970e43173d5501a5867fd93fc37100b524e40058cb4 |
File details
Details for the file quipu_sdk-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: quipu_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f7c374b71116125c50e6d374022d534b22932e7d0e8aa9413c049adcc396c60 |
|
MD5 | 4b2fd346d7a03e30ded91387793a49b7 |
|
BLAKE2b-256 | adb5aa42dce311676df524d2cc137705b71c56a9ed6d9a5e17d161100a9cb18b |