/lunary

The production toolkit for LLMs. Observability, prompt management and evaluations.

Primary LanguageTypeScriptApache License 2.0Apache-2.0

๐Ÿ“ˆ lunary

Open-source observability & prompt platform for LLMs

website - docs - self host

npm version PyPI - Version GitHub last commit (by committer) GitHub commit activity (branch)

Features

Lunary helps AI devs take their apps in production, with features such as:

  • ๐Ÿ’ต Analytics (cost, token, latency, ..)
  • ๐Ÿ” Monitoring (logs, traces, user tracking, ..)
  • โ›ฉ๏ธ Prompt Templates (versioning, team collaboration, ..)
  • ๐Ÿท๏ธ Creat fine-tuning datasets
  • ๐Ÿ–ฒ๏ธ Chat & feedback tracking
  • ๐Ÿงช Evaluations

It also designed to be:

  • ๐Ÿค– Usable with any model, not just OpenAI
  • ๐Ÿ“ฆ Easy to integrate (2 minutes)
  • ๐Ÿง‘โ€๐Ÿ’ป Simple to self-host

Demo

demo720.mp4

โš™๏ธ Integration

Modules available for:

Lunary natively supports:

Additionally you can use it with any framework by wrapping the relevant methods.

๐Ÿ“š Documentation

Full documentation is available on the website.

โ˜๏ธ Hosted version

We offer a hosted version with a free plan of up to 1k requests / days.

With the hosted version:

  • ๐Ÿ‘ท don't worry about devops or managing updates
  • ๐Ÿ™‹ get priority 1:1 support with our team
  • ๐Ÿ‡ช๐Ÿ‡บ your data is stored safely in Europe

Running locally

Lunary is powered by Node.js.

To run it locally, you'll need access to a Postgres database to set as the DATABASE_URL in your .env file.

# Clone the repository
git clone https://github.com/lunary-ai/lunary

# Copy env variables
cp .env.example .env

# Install dependencies
npm install

## Run DB migrations
npm run migrate:db

# Run the development server
npm run dev

๐Ÿ™‹ Support

Need help or have questions? Chat with us on the website or email us: hello [at] lunary.ai. We're here to support you every step of the way.

License

This project is licensed under the Apache 2.0 License.