Skip to content

Latest commit

 

History

History
112 lines (82 loc) · 1.74 KB

installation.mdx

File metadata and controls

112 lines (82 loc) · 1.74 KB
title description
Installation
Install Laminar

Install the package

Install the package from npm.

npm add @lmnr-ai/lmnr
yarn
yarn add @lmnr-ai/lmnr

pnpm

pnpm add @lmnr-ai/lmnr

Install the package from PyPI.

pip install --upgrade 'lmnr[all]'

This will install the package and enable all the available automatic instrumentations.

However, this installs a lot of dependencies, so you can specify the extras to enable specific automatic instrumentations of client SDKs/libraries.

For example, to enable automatic instrumentations of Anthropic and OpenAI, run:

pip install --upgrade 'lmnr[anthropic,openai]'
If you do not specify any extras, no automatic instrumentation will be enabled.

poetry

poetry add 'lmnr[anthropic,openai]'

uv

uv add lmnr --extra anthropic --extra openai

uv pip

uv pip install 'lmnr[anthropic,openai]'

Full list of available extras:

  • alephalpha
  • anthropic
  • bedrock
  • cohere
  • google-generativeai
  • groq
  • haystack
  • lancedb
  • langchain
  • llamaindex
  • marqo
  • milvus
  • mistralai
  • ollama
  • openai
  • pinecone
  • qdrant
  • replicate
  • sagemaker
  • together
  • transformers
  • vertexai
  • watsonx
  • weaviate
The extras configuration is only available since version `0.4.39`. Before that, default option would install all the available instruments.