Skip to main content

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

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)

Source distribution for thinkcol_llm_client 0.1.3
File Size Uploaded
thinkcol_llm_client-0.1.3.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for thinkcol_llm_client 0.1.3
File Interpreter ABI Platform
thinkcol_llm_client-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page