Git Product home page Git Product logo

oxxio / promptable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mayooear/promptable

0.0 0.0 0.0 10.82 MB

Build LLM apps in Typescript/Javascript. ๐Ÿง‘โ€๐Ÿ’ป ๐Ÿง‘โ€๐Ÿ’ป ๐Ÿง‘โ€๐Ÿ’ป ๐Ÿš€ ๐Ÿš€ ๐Ÿš€

Home Page: https://docs-promptable.vercel.app

License: MIT License

Shell 0.75% JavaScript 9.29% TypeScript 86.86% CSS 3.09%

promptable's Introduction

Promptable

Build fullstack AI apps in Typescript/Javascript.

What is this?

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.

Use Cases:

  • ๐Ÿ’ฌ 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

Features

  • 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 :)

Install Library

npm i promptable

Usage

See our docs for more info on how to use the library. Documentation

Examples

To run an example, clone the repo and follow these steps

  1. Copy contents of /apps/web/.env.example into a new file, /apps/web/.env
  2. Copy contents of /examples/.env.example into a new file, /examples/.env and add your OpenAI API Key to the OPENAI_API_KEY field
  3. Run the following commands:
pnpm i
pnpm dev
  1. Run the following command in a different terminal window/tab: *NOTE: example names found in /examples/src
pnpm run example <example name>

What's inside?

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 Docs
  • apps/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.)

Contributing

Install and Run

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.

UI

See our Docs.

promptable's People

Contributors

cfortuner avatar justinliang1020 avatar planeshifter avatar emfastic avatar yourbuddyconner avatar eltociear avatar mjirv avatar navopw avatar mathisobadia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.