A tiny language interpreter
Project description
🦜🔗🔍 Tinylang
Make working with LLMs insanely simpler and easier than ever before.
What is tinylang?
A hackable and simpler Langchain.
Langchain can be very cumbersome and annoying to work with. It's too big, complicated, and shoves premade prompts down your throat.
With tinylang, everything is intuitive and customizeable, following most of the Langchain API.
Installation
Just pip install with:
pip install tinylang
Usage
from tinychain.memory import ConversationMemory
from tinychain.llms import OpenAIChat
from tinychain.chain import LLMChain
memory = ConversationMemory(last_k=10)
chatGPT = OpenAIChat(OPENAI_API_KEY='')
chain = LLMChain(memory, chatGPT)
prompt = "Hello"
print(chain.run(prompt))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinylang-0.1.3.tar.gz.
File metadata
- Download URL: tinylang-0.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc33d4f8e4599d881cfcf00a4922d16e452caecaf232ee5be11c5bfffc481c4d
|
|
| MD5 |
69de75b18812b384bb344858056ea7e3
|
|
| BLAKE2b-256 |
0a3d0bfea66a60220ff4b0794dceee0b90e5fc050ee043ef3de4a321e76d5857
|
File details
Details for the file tinylang-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tinylang-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
806e73954455713fb0cd242f414921a7b6e8b8e1f3ba73ab4deea99c34ab28bb
|
|
| MD5 |
0307a77c1756bcf96e4712c01bb37180
|
|
| BLAKE2b-256 |
bb5a0a99bc6236af2716215766cf44e647ec380ea70b455f519d72d7e7eb6d01
|