PostFinanceX Virtual Assistant powered by IBM watsonx.ai ✨ PostFinance X IBM watsonx.ai
Project description
PostFinanceX
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.
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
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
postfinancex-0.0.9.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for postfinancex-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b13665b9f6c000ac0d06480ba09b289143ee7a3f082d403c539c3e41a2a92b7 |
|
MD5 | 8c1b9a2ff7b117a4ef1fb65cc4d31527 |
|
BLAKE2b-256 | b154fd93ec7b7d5ec8c1a1c75e88070b3a38157a823bac65de7d9040eb0f3383 |