Metadata-Version: 2.1
Name: greptimeai
Version: 0.2.0
Summary: Observability tool for LLM application
Author-email: Greptime <info@greptime.com>
Keywords: greptime,greptimeai,greptimedb,observability,monitoring,llm,ai,langchain,openai
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opentelemetry-api>=1.20.0
Requires-Dist: opentelemetry-sdk>=1.20.0
Requires-Dist: opentelemetry-exporter-otlp-proto-http>=1.20.0
Requires-Dist: tiktoken>=0.5.1

# greptimeai

Observability and analytics tool for LLM framework, service, etc.

## Installation

To start, ensure you have Python 3.8 or newer. If you just want to use the package, run:

```sh
pip install --upgrade greptimeai
```

## Setup

To get started, create a service by registering [greptimeai][greptimeai], and get:

- host
- database
- token

Set it as the `GREPTIMEAI_xxx` environment variable before using the library:

```bash
export GREPTIMEAI_HOST=''
export GREPTIMEAI_DATABASE=''
export GREPTIMEAI_TOKEN=''
```

or you can pass them via parameters.

## Examples

- [langchain][langchain-example]
- [openai][openai-example]

You can find complete guides on [greptimeai-cookbook][greptimeai-cookbook]

## Contributing

Contributions are highly encouraged!

Pull requests that add support for or fix a bug in a feature will likely be accepted after review.

## Licensing

All code in this repository is licensed under the [Apache License 2.0](LICENSE).

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you,
as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

[greptimeai]: https://console.greptime.cloud/ai
[langchain-example]: https://github.com/GreptimeTeam/greptimeai/blob/main/examples/langchain.ipynb
[openai-example]: https://github.com/GreptimeTeam/greptimeai/blob/main/examples/openai.ipynb
[greptimeai-cookbook]: https://github.com/GreptimeTeam/greptimeai-cookbook
