Skip to main content

Python client library for Vera AI chatbot by Hession Dynamics

Project description

verahession — Quick Start Guide

This guide explains how to install and use the verahession library to train an intent classifier and connect it to an LLM API.


1. Installation

Install the library using pip:

python3 -m pip install verahession

2. Train the Intent Classifier

Create a file named train.py with the following content:

from verahession.assistant import train_model

if __name__ == "__main__":
    INTENTS_PATH = "intents.json"
    MODEL_SAVE_PATH = "model.pth"
    train_model(INTENTS_PATH, MODEL_SAVE_PATH)

Make sure you have an intents.json file containing your training data.

Run the script:

python3 train.py

This will generate a model file named model.pth.


3. Use the Classifier for Chat

Create a file named chat.py with the following content:

from verahession.assistant import Classifier
from verahession.assistant import export_to_numpy

export_to_numpy("model.pth", "model.pkl")

clf = Classifier("model.pkl")

while True:
    sentence = input("You: ")
    if sentence == "quit":
        break
    tag, confidence = clf.classify(sentence)
    print(f"Intent: {tag} (Confidence: {confidence:.2f})")

Run the script:

python3 chat.py

Enter sentences to classify intents. Type quit to exit.


4. Connect to an LLM API

To send input to the LLM API, use the following code:

from verahession.api import *

vera_llm = vera_interface(API_KEY, AGENTNAME)
response = vera_llm.send(sentence)

Replace API_KEY and AGENTNAME with the appropriate values.


If you do not yet have an API key, you need to create an account at https://hessiondynamics.com/login - and then press 'create API key' - do NOT share the key with nanyone.

This completes the basic usage instructions for the verahession library. For additional help, consult the documentation or support channels.

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

verahession-0.1.27.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

verahession-0.1.27-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file verahession-0.1.27.tar.gz.

File metadata

  • Download URL: verahession-0.1.27.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for verahession-0.1.27.tar.gz
Algorithm Hash digest
SHA256 017fa23a13f9843e9c7df71ef97df05c221d24729143afbcf8bcfe01b019c106
MD5 dbe4f7e84ea07dc4f930e47b53a22f91
BLAKE2b-256 29c38804535d50b3878b88c65e3b45126d0ed613e45b4b56b508ba8fb5fdcca0

See more details on using hashes here.

File details

Details for the file verahession-0.1.27-py3-none-any.whl.

File metadata

  • Download URL: verahession-0.1.27-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for verahession-0.1.27-py3-none-any.whl
Algorithm Hash digest
SHA256 d594979dc3c42d401f30199133f9a6ea34f3334f944aed89fd21d467e2dcafa8
MD5 a092bee3029875bb30e779f059074335
BLAKE2b-256 950da09ed1fc8023993b41efe7bd0a34cb34587ad8a513e717dfd52d48463da4

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