Build fullstack AI apps in Typescript/Javascript.
Promptable is library that enables you to build powerful AI applications with LLMs and Embeddings providers such as OpenAI, Hugging Face, Cohere and Anthropic. It provides a flexible and extensible API that makes it easy to compose LLMs with data and tools to build complex applications quickly and easily.
With Promptable, you can combine LLMs with other powerful tools and data sources, such as databases and APIs, to create a wide range of AI applications.
What is LLM?
An LLM is a Large Language Model. It is a model that can generate text given a prompt. It is a type of AI that can be used to generate text, answer questions, and more.
What is an Embedding?
An Embedding is a vector representation of a piece of text. It is a type of AI that can be used to find similar pieces of text, search for text, and more.
! Right now the library is in early development and is very much experimental. Don't use this in production yet! The API is subject to change as we get feedback.
Github Repo. Discord. Twitter.
- π¬ Chatbots & Conversational AI
- β Question Answering Bots
- βοΈ Writing Apps
- π§β
βοΈ Copilot apps built with Chrome Extensions, VSCode Extensions, and more! - π AI Semantic Search apps
- π οΈ AI first Automations, Workflows and Tools
- π€ Autonomous Agents & Personal Assistants
- StarterKits ex. NextJS <-> Promptable Starter kit with Streaming Chat Bot!
- Prompts for templating and formatting
- Model Providers for Text Generation and Embedding Generation
- Embeddings for creating Embeddings, Indexing and Search
- Tracing for debugging your applications!
- Chains for composing LLMs and Embeddings with data and other tools.
- Utilities for working with text and data.
- More Coming Soon :)
npm i promptable
See our docs for more info on how to use the library. Documentation
To run an example, clone the repo and follow these steps
- Copy contents of
/apps/web/.env.example
into a new file,/apps/web/.env
- Copy contents of
/examples/.env.example
into a new file,/examples/.env
and add your OpenAI API Key to theOPENAI_API_KEY
field - Run the following commands:
pnpm i
pnpm dev
- Run the following command in a different terminal window/tab: *NOTE: example names found in /examples/src
pnpm run example <example name>
This a Turborepo monorepo of tooling for Typescript developers building LLM apps.
It uses pnpm as a package manager and includes the following packages/apps:
packages/promptable
: The Promptable Library for building LLM apps in Typescript / Javascript!examples
: Examples using the Promptable.js library!apps/docs
: The Promptable.js Docsapps/web
: A nextjs app for visualizing Promptable.js steps.apps/nextjs-promptable
: A nextjs app starter kit with prebuilt features (ChatBot with Streaming, QA Bot etc.)
Then to install run (at the root)
pnpm i
To install package in a single workspace
pnpm i <package> --filter <workspace>
First copy the apps/web/.env.example
file to apps/web/.env
.
Then, To develop all apps and packages, run the following command:
cd my-turborepo
pnpm run dev
This will start watching the files for changes.
See our Docs.