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
Metadata
Release files for postfinancex 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| postfinancex-0.0.9.tar.gz | 15.9 kB | Without provenance | Details for postfinancex-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| postfinancex-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for postfinancex-0.0.9-py3-none-any.whl |
Total release size: 35.3 kB
Release files / postfinancex-0.0.9.tar.gz
| Download URL | postfinancex-0.0.9.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2739f10f394820a45367db3f077282e16bf002b9b2b65b6b5b38018adacf327b
|
|
BLAKE2b-256 checksum How to use checksums |
5c83328230b716fe7acee9a1b06cc053d84210aae05d70bec8f159f0ba66e200
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Darwin/21.6.0
|
Release files / postfinancex-0.0.9-py3-none-any.whl
| Download URL | postfinancex-0.0.9-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b13665b9f6c000ac0d06480ba09b289143ee7a3f082d403c539c3e41a2a92b7
|
|
BLAKE2b-256 checksum How to use checksums |
b154fd93ec7b7d5ec8c1a1c75e88070b3a38157a823bac65de7d9040eb0f3383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.14 Darwin/21.6.0
|
Security for postfinancex 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.