Skip to main content

MTLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language.

Project description

MTLLM API library

PyPI version tests

The MTLLM Python library provides convenient access to a large number of easy to use and customizable APIs to be used in Jaseci's Jaclang by llm feature. The Library provides automatic output fixing, output type validation, different prompting techniques, and more.

Documentation

The documentation on how to use this library with Jaseci's Jaclang can be found here.

Installation

[!IMPORTANT] Though this is can be used with python projects, it is primarily intended to be used with Jaseci's Jaclang.

# install from PyPI
pip install mtllm

Usage

Refer the Documentation for detailed usage instructions.

Using Different LLMs

import:py from mtllm.llms, OpenAI;

glob llm = OpenAI();

can "Translate English to French"
translate(word: "English Word": str) -> "French Word": str by llm();

Based on your LLM of choice, make sure to set the API Key in the environment variable. For example, for OpenAI:

export OPENAI_API_KEY="your-api-key"

Using Tools

import:py from mtllm.llms, OpenAI;
import:py from mtllm.tools, wikipedia;

glob llm = OpenAI();

can "Answer History Questions"
history_qa(question: "History Question": str) -> "Detailed Answer": str by llm(tools=[wikipedia]);

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

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

mtllm-0.3.3.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

mtllm-0.3.3-py2.py3-none-any.whl (26.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mtllm-0.3.3.tar.gz.

File metadata

  • Download URL: mtllm-0.3.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for mtllm-0.3.3.tar.gz
Algorithm Hash digest
SHA256 9e545ad3e16e813a3cdecf3a5dc0a492378ccd4df77437e48ddc38b6a4e6edbf
MD5 9352cfa6bdb626ad8771452b9921334a
BLAKE2b-256 81459d42f3a51beec395d4c3d27f1c10f0f40bb0af6b569c9043bf9052a472c2

See more details on using hashes here.

File details

Details for the file mtllm-0.3.3-py2.py3-none-any.whl.

File metadata

  • Download URL: mtllm-0.3.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure

File hashes

Hashes for mtllm-0.3.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7897e9b44ddda0d40100b7b9a401164d024fd97b9e9c8a2d0584718dc475f91c
MD5 81e6c24b12db543d1173912e86031f77
BLAKE2b-256 6a1be6a226505f3ce8764d2ae86ee174ee47db996936590d830d37515947a675

See more details on using hashes here.

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