Skip to main content

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


Download files

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

Source Distribution

text_bridge-1.0.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

text_bridge-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

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

Hashes for text_bridge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ff8e7205db8cc6072066c4dfc914cfa654896fc1bf087afe9cdf2ee85b900190
MD5 887beab0ec3f26dbacde51329d3cb61b
BLAKE2b-256 ea5438c62aa5a6aa0c28b039b43fa8f3efb3a0903af3ed3d586f0b3f83315a29

See more details on using hashes here.

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

Hashes for text_bridge-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 56975d7b8dcb9ff39a0b9a61c3886cede9b18ca0b9b20abcfb1df94fe738a5b6
MD5 ad513fb0a12094e7e59d3c5457dfa1c0
BLAKE2b-256 a8b551d618c90d25dafe5bceeb96784889cae78f843652ae439522b21da4df6c

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