From b145e98e37c1be43cef64e80b688fe6ecf0474c4 Mon Sep 17 00:00:00 2001 From: yemiscale3 Date: Fri, 12 Apr 2024 13:55:17 -0500 Subject: [PATCH 1/2] add Langtrace to integrations list --- docs/integrations/index.md | 21 ++--- docs/integrations/langtrace.md | 56 +++++++++++++ sidebars.js | 141 ++++++++++++++++----------------- 3 files changed, 135 insertions(+), 83 deletions(-) create mode 100644 docs/integrations/langtrace.md diff --git a/docs/integrations/index.md b/docs/integrations/index.md index 797d0a4..499cedf 100644 --- a/docs/integrations/index.md +++ b/docs/integrations/index.md @@ -6,24 +6,25 @@ hide_title: true # πŸ”Œ Integrations -Chroma maintains integrations with many popular tools. These tools can be used to define the business logic of an AI-native application, curate data, fine-tune embedding spaces and more. +Chroma maintains integrations with many popular tools. These tools can be used to define the business logic of an AI-native application, curate data, fine-tune embedding spaces and more. We welcome pull requests to add new Integrations to the community.
-| | Python | JS | -|--------------|-----------|---------------| -| [πŸ¦œοΈπŸ”— Langchain](/integrations/langchain) | βœ… | βœ… | -| [πŸ¦™ LlamaIndex](/integrations/llama-index) | βœ… | :soon: | -| [Braintrust](/integrations/braintrust) | βœ… | βœ… | +| | Python | JS | +| ------------------------------------------- | ------ | ------ | +| [πŸ¦œοΈπŸ”— Langchain](/integrations/langchain) | βœ… | βœ… | +| [πŸ¦™ LlamaIndex](/integrations/llama-index) | βœ… | :soon: | +| [Braintrust](/integrations/braintrust) | βœ… | βœ… | | [πŸ”­ OpenLLMetry](/integrations/openllmetry) | βœ… | :soon: | -| [🎈 Streamlit](/integrations/streamlit) | βœ… | βž– | -| [πŸ’™ Haystack](/integrations/haystack) | βœ… | βž– | +| [🎈 Streamlit](/integrations/streamlit) | βœ… | βž– | +| [πŸ’™ Haystack](/integrations/haystack) | βœ… | βž– | +| [ πŸ“Š Langtrace](/integrations/langtrace) | βœ… | βœ… | -*Coming soon* - integrations with LangSmith, JinaAI, and more. +_Coming soon_ - integrations with LangSmith, JinaAI, and more. -*** +--- ### 🧬 Embeddings 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..7e3f634 100644 --- a/sidebars.js +++ b/sidebars.js @@ -18,112 +18,107 @@ const sidebars = { // But we want to manually specify the sidebar for more control docs: [ - 'intro', - 'getting-started', - 'usage-guide', + "intro", + "getting-started", + "usage-guide", { - type: 'link', - href: '/embeddings', - label: '🧬 Embeddings', - className: 'category-link', + type: "link", + href: "/embeddings", + label: "🧬 Embeddings", + className: "category-link", }, - 'multi-modal', - 'api-reference', - 'troubleshooting', + "multi-modal", + "api-reference", + "troubleshooting", { - type: 'link', - href: '/integrations', - label: 'πŸ”Œ Integrations', - className: 'category-link', + type: "link", + href: "/integrations", + label: "πŸ”Œ Integrations", + className: "category-link", }, - 'deployment', - 'migration', - 'observability', - 'telemetry', - 'roadmap', - 'contributing', - 'about', + "deployment", + "migration", + "observability", + "telemetry", + "roadmap", + "contributing", + "about", { - type: 'link', - href: '/api', - label: 'πŸ”§ API Docs', - className: 'category-link', + type: "link", + href: "/api", + label: "πŸ”§ API Docs", + className: "category-link", }, ], integrations: [ { - type: 'link', - label: '← Home', - href: '/' + type: "link", + label: "← Home", + href: "/", }, - 'integrations/index', + "integrations/index", { - type: 'category', - label: 'Integrations', + type: "category", + label: "Integrations", collapsed: false, - className: 'category-header', + className: "category-header", items: [ - 'integrations/langchain', - 'integrations/llama-index', - 'integrations/braintrust', - 'integrations/openllmetry', - 'integrations/streamlit', - 'integrations/haystack', + "integrations/langchain", + "integrations/llama-index", + "integrations/braintrust", + "integrations/openllmetry", + "integrations/streamlit", + "integrations/haystack", + "integrations/langtrace", ], }, ], embeddings: [ { - type: 'link', - label: '← Home', - href: '/' + type: "link", + label: "← Home", + href: "/", }, - 'embeddings', + "embeddings", { - type: 'category', - label: 'Integrations', + type: "category", + label: "Integrations", collapsed: false, - className: 'category-header', + className: "category-header", items: [ - 'embeddings/openai', - 'embeddings/google-gemini', - 'embeddings/cohere', - 'embeddings/hugging-face', - 'embeddings/google-palm', - 'embeddings/hugging-face-embedding-server', - 'embeddings/instructor', - 'embeddings/roboflow-api', - 'embeddings/hugging-face-embedding-server', - 'embeddings/jinaai', + "embeddings/openai", + "embeddings/google-gemini", + "embeddings/cohere", + "embeddings/hugging-face", + "embeddings/google-palm", + "embeddings/hugging-face-embedding-server", + "embeddings/instructor", + "embeddings/roboflow-api", + "embeddings/hugging-face-embedding-server", + "embeddings/jinaai", ], }, ], api: [ { - type: 'link', - label: '← Home', - href: '/' + type: "link", + label: "← Home", + href: "/", }, - 'api/index', + "api/index", { - type: 'category', - label: 'Python Client', + type: "category", + label: "Python Client", collapsed: false, - className: 'category-header', - items: [ - 'reference/Client', - 'reference/Collection', - ], + className: "category-header", + items: ["reference/Client", "reference/Collection"], }, { - type: 'category', - label: 'JS/TS Client', + type: "category", + label: "JS/TS Client", collapsed: false, - className: 'category-header', - items: [ - 'js_reference/Client', - 'js_reference/Collection', - ], + className: "category-header", + items: ["js_reference/Client", "js_reference/Collection"], }, ], }; From f9f852f06d4b88452f82c1fe8e044d3ed310b6b7 Mon Sep 17 00:00:00 2001 From: yemiscale3 Date: Fri, 12 Apr 2024 14:07:32 -0500 Subject: [PATCH 2/2] revert prettier --- docs/integrations/index.md | 23 +++--- sidebars.js | 142 +++++++++++++++++++------------------ 2 files changed, 85 insertions(+), 80 deletions(-) diff --git a/docs/integrations/index.md b/docs/integrations/index.md index 499cedf..cc9fd06 100644 --- a/docs/integrations/index.md +++ b/docs/integrations/index.md @@ -6,25 +6,24 @@ hide_title: true # πŸ”Œ Integrations -Chroma maintains integrations with many popular tools. These tools can be used to define the business logic of an AI-native application, curate data, fine-tune embedding spaces and more. +Chroma maintains integrations with many popular tools. These tools can be used to define the business logic of an AI-native application, curate data, fine-tune embedding spaces and more. We welcome pull requests to add new Integrations to the community.
-| | Python | JS | -| ------------------------------------------- | ------ | ------ | -| [πŸ¦œοΈπŸ”— Langchain](/integrations/langchain) | βœ… | βœ… | -| [πŸ¦™ LlamaIndex](/integrations/llama-index) | βœ… | :soon: | -| [Braintrust](/integrations/braintrust) | βœ… | βœ… | +| | Python | JS | +|--------------|-----------|---------------| +| [πŸ¦œοΈπŸ”— Langchain](/integrations/langchain) | βœ… | βœ… | +| [πŸ¦™ LlamaIndex](/integrations/llama-index) | βœ… | :soon: | +| [Braintrust](/integrations/braintrust) | βœ… | βœ… | | [πŸ”­ OpenLLMetry](/integrations/openllmetry) | βœ… | :soon: | -| [🎈 Streamlit](/integrations/streamlit) | βœ… | βž– | -| [πŸ’™ Haystack](/integrations/haystack) | βœ… | βž– | -| [ πŸ“Š Langtrace](/integrations/langtrace) | βœ… | βœ… | +| [🎈 Streamlit](/integrations/streamlit) | βœ… | βž– | +| [πŸ’™ Haystack](/integrations/haystack) | βœ… | βž– | +| [πŸ“Š Langtrace](/integrations/langtrace) | βœ… | βœ… | +*Coming soon* - integrations with LangSmith, JinaAI, and more. -_Coming soon_ - integrations with LangSmith, JinaAI, and more. - ---- +*** ### 🧬 Embeddings diff --git a/sidebars.js b/sidebars.js index 7e3f634..cba771d 100644 --- a/sidebars.js +++ b/sidebars.js @@ -18,107 +18,113 @@ const sidebars = { // But we want to manually specify the sidebar for more control docs: [ - "intro", - "getting-started", - "usage-guide", + 'intro', + 'getting-started', + 'usage-guide', { - type: "link", - href: "/embeddings", - label: "🧬 Embeddings", - className: "category-link", + type: 'link', + href: '/embeddings', + label: '🧬 Embeddings', + className: 'category-link', }, - "multi-modal", - "api-reference", - "troubleshooting", + 'multi-modal', + 'api-reference', + 'troubleshooting', { - type: "link", - href: "/integrations", - label: "πŸ”Œ Integrations", - className: "category-link", + type: 'link', + href: '/integrations', + label: 'πŸ”Œ Integrations', + className: 'category-link', }, - "deployment", - "migration", - "observability", - "telemetry", - "roadmap", - "contributing", - "about", + 'deployment', + 'migration', + 'observability', + 'telemetry', + 'roadmap', + 'contributing', + 'about', { - type: "link", - href: "/api", - label: "πŸ”§ API Docs", - className: "category-link", + type: 'link', + href: '/api', + label: 'πŸ”§ API Docs', + className: 'category-link', }, ], integrations: [ { - type: "link", - label: "← Home", - href: "/", + type: 'link', + label: '← Home', + href: '/' }, - "integrations/index", + 'integrations/index', { - type: "category", - label: "Integrations", + type: 'category', + label: 'Integrations', collapsed: false, - className: "category-header", + className: 'category-header', items: [ - "integrations/langchain", - "integrations/llama-index", - "integrations/braintrust", - "integrations/openllmetry", - "integrations/streamlit", - "integrations/haystack", - "integrations/langtrace", + 'integrations/langchain', + 'integrations/llama-index', + 'integrations/braintrust', + 'integrations/openllmetry', + 'integrations/streamlit', + 'integrations/haystack', + 'integrations/langtrace', ], }, ], embeddings: [ { - type: "link", - label: "← Home", - href: "/", + type: 'link', + label: '← Home', + href: '/' }, - "embeddings", + 'embeddings', { - type: "category", - label: "Integrations", + type: 'category', + label: 'Integrations', collapsed: false, - className: "category-header", + className: 'category-header', items: [ - "embeddings/openai", - "embeddings/google-gemini", - "embeddings/cohere", - "embeddings/hugging-face", - "embeddings/google-palm", - "embeddings/hugging-face-embedding-server", - "embeddings/instructor", - "embeddings/roboflow-api", - "embeddings/hugging-face-embedding-server", - "embeddings/jinaai", + 'embeddings/openai', + 'embeddings/google-gemini', + 'embeddings/cohere', + 'embeddings/hugging-face', + 'embeddings/google-palm', + 'embeddings/hugging-face-embedding-server', + 'embeddings/instructor', + 'embeddings/roboflow-api', + 'embeddings/hugging-face-embedding-server', + 'embeddings/jinaai', ], }, ], api: [ { - type: "link", - label: "← Home", - href: "/", + type: 'link', + label: '← Home', + href: '/' }, - "api/index", + 'api/index', { - type: "category", - label: "Python Client", + type: 'category', + label: 'Python Client', collapsed: false, - className: "category-header", - items: ["reference/Client", "reference/Collection"], + className: 'category-header', + items: [ + 'reference/Client', + 'reference/Collection', + ], }, { - type: "category", - label: "JS/TS Client", + type: 'category', + label: 'JS/TS Client', collapsed: false, - className: "category-header", - items: ["js_reference/Client", "js_reference/Collection"], + className: 'category-header', + items: [ + 'js_reference/Client', + 'js_reference/Collection', + ], }, ], };