Skip to main content

PostFinanceX Virtual Assistant powered by IBM watsonx.ai ✨ PostFinance X IBM watsonx.ai

Project description

PostFinanceX

GitHub PyPI

PostFinanceX is a Python library allows you to chat with PostFinance LLM agent powered by IBM watsonx.ai

Installation

Note: currently, only support Python 3.10 due to the dataclasses module changes in the newer version

pip install postfinancex

Quickstart

Global settings

from postfinance import Settings

Settings.watsonx_api_key = "watsonx_api_key"
Settings.watsonx_url = "watsonx_url"
Settings.watsonx_project_id = "watsonx_project_id"
Settings.jina_api_key = "jina_api_key"
Settings.neo4j_url = "neo4j_url"
Settings.neo4j_username = "neo4j_username"
Settings.neo4j_password = "neo4j_password"
Settings.mongo_uri = "mongo_uri"
Settings.verbose = True

Let's chat

from postfinance import get_agent_executor, chat

agent = get_agent_executor()

chat(agent, "What is the most commonly used language in the recorded customer calls?")

Get Inspired

Check out our PostFinanceX app.

GitHub Streamlit App

Documentation

postfinance.Settings

postfinance.get_agent_executor

postfinance.get_agent_executor()

postfinance.StreamlitCallbackHandler

postfinance.StreamlitCallbackHandler()

postfinance.chat

postfinance.chat(agent_executor, message, streamlit_callback=None)

postfinance.get_annotator

postfinance.get_annotator()

postfinance.annotate

postfinance.translate(translator, transcript, params=None, dumps=False)

postfinance.get_translator

postfinance.get_translator()

postfinance.translate

postfinance.translate(translator, transcript, params=None, dumps=False)

postfinance.mongo_storage_from_uri

postfinance.mongo_storage_from_uri(uri)

License

PostFinanceX has a BSD-3-Clause license, as found in the LICENSE file.

Contributing

Thanks for your interest in contributing to PostFinanceX! Please feel free to create a pull request.

Changelog

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

postfinancex-0.0.9.tar.gz (15.9 kB view hashes)

Uploaded Source

Built Distribution

postfinancex-0.0.9-py3-none-any.whl (19.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page