Allows to use prompt templates with OpenAI API
Project description
TextBridge
This is a package that is an abstraction layer over large language models. It contains functions that wrap requests to large language model API (e.g. OpenAI API) endpoints with useful functionality.
Specifically, there are few main concepts that this package is introducing:
a) The prompts are stored in Jinja2 templates. When the user of the package calls complete or chat_complete, they pass the name of the template as argument. Those templates are stored in some folder.
b) Each prompt has a config - it stores the parameters used with that prompt (like max_tokens or model).
c) embeddings module contains some useful functions for search based on embeddings from OpenAI API.
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 text_bridge-1.0.0.tar.gz.
File metadata
- Download URL: text_bridge-1.0.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff8e7205db8cc6072066c4dfc914cfa654896fc1bf087afe9cdf2ee85b900190
|
|
| MD5 |
887beab0ec3f26dbacde51329d3cb61b
|
|
| BLAKE2b-256 |
ea5438c62aa5a6aa0c28b039b43fa8f3efb3a0903af3ed3d586f0b3f83315a29
|
File details
Details for the file text_bridge-1.0.0-py3-none-any.whl.
File metadata
- Download URL: text_bridge-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56975d7b8dcb9ff39a0b9a61c3886cede9b18ca0b9b20abcfb1df94fe738a5b6
|
|
| MD5 |
ad513fb0a12094e7e59d3c5457dfa1c0
|
|
| BLAKE2b-256 |
a8b551d618c90d25dafe5bceeb96784889cae78f843652ae439522b21da4df6c
|