Skip to main content

Package for calling llm clients asynchronously

Project description

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, AnthropicClient

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 = AnthropicClient()
anthropic_client.invoke(questions)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thinkcol_llm_client-0.1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

thinkcol_llm_client-0.1.2-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page