diff --git a/docs/integrations/index.md b/docs/integrations/index.md index 797d0a4..cc9fd06 100644 --- a/docs/integrations/index.md +++ b/docs/integrations/index.md @@ -20,7 +20,7 @@ We welcome pull requests to add new Integrations to the community. | [πŸ”­ OpenLLMetry](/integrations/openllmetry) | βœ… | :soon: | | [🎈 Streamlit](/integrations/streamlit) | βœ… | βž– | | [πŸ’™ Haystack](/integrations/haystack) | βœ… | βž– | - +| [πŸ“Š Langtrace](/integrations/langtrace) | βœ… | βœ… | *Coming soon* - integrations with LangSmith, JinaAI, and more. *** diff --git a/docs/integrations/langtrace.md b/docs/integrations/langtrace.md new file mode 100644 index 0000000..e2843ea --- /dev/null +++ b/docs/integrations/langtrace.md @@ -0,0 +1,56 @@ +--- +slug: /integrations/langtrace +title: πŸ“Š Langtrace +--- + +[Langtrace](www.langtrace.ai) enables developers to trace, evaluate, manage prompts and datasets, and debug issues related to an LLM application’s performance. It creates open telemetry standard traces for Chroma which helps with observability and works with any observability client. + +Key features include: + +- Detailed traces and logs +- Real-time monitoring of key metrics including accuracy, evaluations, usage, costs, and latency +- Integrations for the most popular frameworks, vector databases, and LLMs including Langchain, LllamaIndex, OpenAI, Anthropic, Pinecone, Chroma and Cohere. +- Self-hosted or using Langtrace cloud + +| [Docs](https://docs.langtrace.ai/introduction) | [Github](https://github.com/Scale3-Labs/langtrace) | + +### Installation + +- Signup for [Langtrace cloud](https://langtrace.ai/signup) to get an API key + +#### Install the SDK on your project: + +- **Python**: Install the Langtrace SDK using pip + +```python +pip install langtrace-python-sdk +``` + +- **Typescript**: Install the Langtrace SDK using npm + +```typescript +npm i @langtrase/typescript-sdk +``` + +#### Initialize the SDK in your project: + +- **Typescript**: + +```typescript Typescript +// Must precede any llm module imports +import * as Langtrace from "@langtrase/typescript-sdk"; + +Langtrace.init({ api_key: "" }); +``` + +- **Python**: + +```python Python +from langtrace_python_sdk import langtrace + +langtrace.init(api_key = '') +``` + +### Configuration + +Langtrace is adaptable and can be configured to transmit traces to any observability platform compatible with OpenTelemetry, such as Datadog, Honeycomb, Dynatrace, New Relic, among others. For more details on setup and options, consult the [Langtrace docs](https://www.langtrace.ai). diff --git a/sidebars.js b/sidebars.js index 0f613ab..cba771d 100644 --- a/sidebars.js +++ b/sidebars.js @@ -69,6 +69,7 @@ const sidebars = { 'integrations/openllmetry', 'integrations/streamlit', 'integrations/haystack', + 'integrations/langtrace', ], }, ],