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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postfinancex-0.0.9.tar.gz.
File metadata
- Download URL: postfinancex-0.0.9.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2739f10f394820a45367db3f077282e16bf002b9b2b65b6b5b38018adacf327b
|
|
| MD5 |
3b313060c11f758a2d0f80f08401be21
|
|
| BLAKE2b-256 |
5c83328230b716fe7acee9a1b06cc053d84210aae05d70bec8f159f0ba66e200
|
File details
Details for the file postfinancex-0.0.9-py3-none-any.whl.
File metadata
- Download URL: postfinancex-0.0.9-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b13665b9f6c000ac0d06480ba09b289143ee7a3f082d403c539c3e41a2a92b7
|
|
| MD5 |
8c1b9a2ff7b117a4ef1fb65cc4d31527
|
|
| BLAKE2b-256 |
b154fd93ec7b7d5ec8c1a1c75e88070b3a38157a823bac65de7d9040eb0f3383
|