Skip to main content

Faster and Smaller alternative to Lanchain

Project description

YakaLLM

A smaller, faster and cooler version of LangChain. the repo without .git is only 74k. Its like preact for react, but nothing is backward compatible.

how to install

pip:

pip install yaka-llm
# or 
pip3 install yaka-llm

uv:

uv add yaka-llm
# or 
uv pip install yaka-llm

Usage

from yaka_llm import GeminiModel
from yaka_llm.core import UserPrompt, ModelPrompt
import os

gm = GeminiModel("gemini-2.5-flash", os.getenv("LLM_API_KEY"))

gm.call(["Hello there"], prompt="What's up?")

# or

history = [UserPrompt("What are the three largest cities in Spain?"),
           ModelPrompt("The three largest cities in Spain are Madrid, Barcelona, and Valencia.")]
print(gm.call(history, prompt="What is the most famous landmark in the second one?"))

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

yaka_llm-1.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yaka_llm-1.0.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file yaka_llm-1.0.1.tar.gz.

File metadata

  • Download URL: yaka_llm-1.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yaka_llm-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e2caba72c4b1b9b2c638326ffe7add3fce93744581e10be0ba99c90b445df6b7
MD5 d89bd303c7ac839dd889c8a2a85eb769
BLAKE2b-256 427be07112dc44aecd50b1157e7f717396a66e76455343e085a614f2291a2f8d

See more details on using hashes here.

File details

Details for the file yaka_llm-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: yaka_llm-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yaka_llm-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e95b26283b0596b004c753f19b5bd88465f6a6431e05f86f809e40704d9a10a
MD5 3808318aa028872e79897e7a481aec30
BLAKE2b-256 032f0e276917d735d70557d42313dadeaf0b344d0486e21e0540088fb6fa78c8

See more details on using hashes here.

Supported by

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