Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AI Observability Cookbook with OpenTelemetry and OpenLIT #115

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Disclaimer: Examples contributed by the community and partners do not represent
| [llamaindex_mistral_multi_modal.ipynb](third_party/LlamaIndex/llamaindex_mistral_multi_modal.ipynb) | MultiModalLLM-Pixtral | LLamaIndex |
| [Microsoft Autogen - Function calling a pgsql db ](third_party/MS_Autogen_pgsql/mistral_pgsql_function_calling.ipynb) | Tool call, agent, RAG | Ms Autogen |
| [Mesop Integration - Chat with PDF](third_party/mesop/README.md) | UI chat, demo, RAG | Mesop |
| [Monitoring Mistral AI using OpenTelemetry](third_party/openlit/cookbook_mistral_opentelemetry.ipynb) | AI Observability | OpenLIT |
| [neon_text_to_sql.ipynb](third_party/Neon/neon_text_to_sql.ipynb) | code | Neon |
| [ollama_mistral_llamaindex.ipynb](third_party/LlamaIndex/ollama_mistral_llamaindex.ipynb) | RAG | LLamaIndex |
| [Ollama Meetup Demo](third_party/Ollama/20240321_ollama_meetup) | demo | Ollama |
Expand Down
22 changes: 22 additions & 0 deletions third_party/openlit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
![](https://github.com/openlit/.github/blob/main/profile/assets/wide-logo-no-bg.png?raw=true)

# Analyze your Mistral AI Models with OpenLIT

## What is OpenLIT?
[**OpenLIT**](https://github.com/openlit/openlit) is an an open source project that helps developers build and manage AI apps in production, effectively helping them improve accuracy. As a self-hosted solution, it enables developers to experiment with LLMs, manage and version prompts, securely manage API keys, and provide safeguards against prompt injection and jailbreak attempts. It also includes built-in **OpenTelemetry-native** observability and evaluation for the complete GenAI stack (LLMs, vector databases, Agents and GPUs).

## Why use Tracing to gain Observability into an LLM Application?
- Capture the complete context of execution, including API calls, context, prompts, parallelism, and more
- Monitor model usage and associated costs
- Gather user feedback effectively
- Detect and identify low-quality outputs

## OpenLIT and Mistral AI Integration Cookbooks
These guides offer detailed instructions for integrating OpenLIT with Mistral AI using Python. By following these steps, you will learn how to effectively analyze and trace interactions with Mistral's language models, improving the transparency, debuggability, and performance monitoring of your AI-powered applications.

| Guides | Description |
|-------|-------------|
| [1. Cookbook: Monitoring Mistral AI with OpenTelemetry (Python)](cookbook_mistral_opentelemetry.ipynb) | This cookbook will cover the process of integrating OpenLIT with the Mistral SDK. A straightforward guide demonstrates how adding a single line of code can seamlessly enable OpenLIT to track various metrics, including cost, tokens, prompts, responses, and all chat/completion activities from the Mistral SDK using OpenTelemetry.|

## Feedback and Community
If you have any feedback or requests, please create a GitHub [Issue](https://github.com/openlit/openlit/issues) or share your idea with the community on [Slack](https://join.slack.com/t/openlit/shared_invite/zt-2etnfttwg-TjP_7BZXfYg84oAukY8QRQ).
Loading