lunary
lunary copied to clipboard
The production toolkit for LLMs. Observability, prompt management and evaluations.
๐ lunary
Open-source observability, prompt management & evaluations for LLMs
Features
Lunary helps LLM developers take their apps to the next level.
- ๐ต Analytics (cost, token, latency, ..)
- ๐ Monitoring (logs, traces, user tracking, ..)
- โฉ๏ธ Prompt Templates (versioning, team collaboration, ..)
- ๐ท๏ธ Create fine-tuning datasets
- ๐ฒ๏ธ Chat & feedback tracking
- ๐งช Evaluations
It also designed to be:
- ๐ค Usable with any model, not just OpenAI
- ๐ฆ Easy to integrate (2 minutes)
- ๐งโ๐ป Self-hostable
1-min Demo
https://github.com/lunary-ai/lunary/assets/5092466/a2b4ba9b-4afb-46e3-9b6b-faf7ddb4a931
โ๏ธ Integration
Modules available for:
Lunary natively supports:
- LangChain (JS & Python)
- OpenAI module
- LiteLLM
Additionally you can use it with any other LLM by manually sending events.
๐ Documentation
Full documentation is available on the website.
โ๏ธ Hosted version
We offer a hosted version with a free plan of up to 10k requests / month.
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
- Clone the repository
- Setup a PostgreSQL instance (version 15 minimum)
- Copy the content of
packages/backend/.env.example
topackages/backend/.env
and fill the missing values - Copy the content of
packages/frontend/.env.example
topackages/backend/.env
- Run
npm install
- Run
npm run migrate:db
- Run
npm run dev
You can now open the dashboard at http://localhost:8080
.
When using our JS or Python SDK, you need to set the environment variable LUNARY_API_URL
to http://localhost:3333
. You can use LUNARY_VERBOSE=True
to see all the event sent by the SDK
๐ Support
Need help or have questions? Chat with us on the website or email us: hello [at] lunary.ai. We're here to help every step of the way.
License
This project is licensed under the Apache 2.0 License.