Skip to main content

A simple library for interfacing with language models.

Project description

langdash

Announcement post

A simple library for interfacing with language models.

Currently in alpha!

Features:

  • Support for text generation, text classification (through prompting) and vector-based document searching.
  • Lightweight, build-it-yourself-style prompt wrappers.
  • Token healing and transformers/RNN state reuse for fast inference, like in Microsoft's guidance.
  • First-class support for ggml backends.

Documentation: Read on readthedocs.io

Installation

Use pip to install. By default, langdash does not come preinstalled with any additional modules. You will have to specify what you need like in the following command:

pip install --user langdash[embeddings,sentence_transformers]

List of modules:

  • core:
    • embeddings: required for running searching through embeddings
  • backends:
    • Generation backends: rwkv_cpp, llama_cpp, transformers
    • Embedding backends: sentence_transformers

Note: If running from source, initialize the git submodules in the langdash/extern folder to compile foreign backends.

Usage

Examples:

See examples folder for full examples.

License

Apache 2.0

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

langdash-1.0.1a1.tar.gz (25.1 kB view details)

Uploaded Source

File details

Details for the file langdash-1.0.1a1.tar.gz.

File metadata

  • Download URL: langdash-1.0.1a1.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for langdash-1.0.1a1.tar.gz
Algorithm Hash digest
SHA256 a573244986c83b4762674d63b5857c929b35ecf0a511bc36373dc78d21edec96
MD5 2436ee9534b47568f83bde980eb03145
BLAKE2b-256 db11d05a7458b9472d12b7294b53c607894751c0bd8f4af75a5175fab8c4031a

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