LLM Client
Internal package for making multi-threaded calls to LLMs.
Supported Models
Cohere Command, Cohere Embed, OpenAI Models, Titan Embed, Mixtral
Install
pip install thinkcol_llm_client
Usage:
Normal Usage
from thinkcol_llm_client import OpenAIClient, BedrockClient
from thinkcol_llm_client import Anthropic
texts = ["Hello", "Text 1", "ThinkCol"]
client = OpenAIClient()
client.embed(texts)
questions = ["How do I implement best practices in data science projects" for _ in range(500)]
client.invoke(questions)
anthropic_client = BedrockClient(provider = Anthropic())
anthropic_client.invoke(questions)
Providers
The list of providers for bedrock models can be found in bedrock/clients. Support for new providers/models can be added in this file.
Tests
Unit tests for each provider and clients can be added in tests/unit/test_clients.py
Metadata
Release files for thinkcol_llm_client 0.1.3
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 |
|---|---|---|---|---|
| thinkcol_llm_client-0.1.3.tar.gz | 4.6 kB | Without provenance | Details for thinkcol_llm_client-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thinkcol_llm_client-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for thinkcol_llm_client-0.1.3-py3-none-any.whl |
Total release size: 11.1 kB
Release files / thinkcol_llm_client-0.1.3.tar.gz
| Download URL | thinkcol_llm_client-0.1.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
906bff35351f34c63e3bc2f257b55ba35399a0fb9e626dccab8636ddc7d013c4
|
|
BLAKE2b-256 checksum How to use checksums |
db05df94c0431b62f6672087e73cbd353f179dbd9deef443d52a2e0463741c0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Darwin/21.6.0
|
Release files / thinkcol_llm_client-0.1.3-py3-none-any.whl
| Download URL | thinkcol_llm_client-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8ff3ec864f64a8828c0c6d4cd99ccd727d95d9e752e0e431dd337d59314a3b0
|
|
BLAKE2b-256 checksum How to use checksums |
e77c8249f98c604a254bf2547541e70b3e4d34fc3f6fdd9d411650a91c9b0d66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.8 Darwin/21.6.0
|
Security for thinkcol_llm_client 0.1.3
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.