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:
promptable's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.