Skip to main content

A client library for interacting with the Rzn Tauri application

Project description

RZNPy: A Python Client for the Rzn Tauri Application

=====================================================

RZNPy is a lightweight Python client library designed to interact with the Rzn Tauri application. It provides a simple and intuitive interface to query and manage your local files and folders indexed by the Rzn app.

What is Rzn?

Rzn is a powerful tool that allows you to add folders on your local machine and automatically syncs data in those folders. It indexes all data into three types of indexes: keyword, BM25, and semantic search. You can choose your embedding model for the semantic index and set the required dimensions within the application. The app handles new files and folders added or removed, making it easy to manage your data.

Features of RZNPy

RZNPy enables you to:

  • Query data in specific indexes (keyword, BM25, semantic) or use the composite search to query all indexes together.
  • Optionally use the re-ranking feature, which leverages open source re-ranker models to re-rank results.
  • Perform fast search queries, even over thousands of documents.
  • Interact with your local files while maintaining an index on selected documents.
  • Use the library for local retrieval on your machines.

Getting Started

To use RZNPy, you need to have the Rzn Tauri application installed and running on your machine. You can download the Rzn app from the Reason homepage.

Installation

To install RZNPy, run the following command in your terminal:

pip install rznpy

Examples

Here are some examples to get you started with RZNPy:

Initialize the Client

from rznpy import RZNClient

client = RZNClient(host="localhost", port=9928)

Get Projects

projects = client.get_projects(offset=0, limit=10)
print(projects)

Get Added Folders

folders = client.get_added_folders()
print(folders)

Get Folder Contents

contents = client.get_folder_contents(parent_path="/path/to/your/folder")
print(contents)

Search

results = client.search(query="example query", search_type="composite", limit=10, rerank=True)
print(results)

Feedback and Support

For any feedback or support, please write to feedback@rzn.ai.

License

RZNPy is licensed under the MIT License.

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

rznpy-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

rznpy-0.1.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file rznpy-0.1.0.tar.gz.

File metadata

  • Download URL: rznpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.2

File hashes

Hashes for rznpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 152487750e42e9a3cbaee361a0ca58139b6443c8b22e01e3a4ed7b8ab2861eb7
MD5 2dbd62d72fd5a489f4c4ef6d2fc7779b
BLAKE2b-256 d8d022b3e0ceced8f94961b9aabbc4494a625236f7b16938ad54d9dc9e7fb16a

See more details on using hashes here.

File details

Details for the file rznpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rznpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.2

File hashes

Hashes for rznpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0225cc1c64661dab003db9ab6e8a981fb5411889168ff9b0fe341aeafc8427db
MD5 c71eebeec5e85fa27dfd9903a8c667a1
BLAKE2b-256 091b8c56448f92588854aeb575617e6fd22bd971a3a2d9b253851fe9c69667cf

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