From 87f8397faa76b322e39ea769cb9068fe971e6751 Mon Sep 17 00:00:00 2001 From: Mikyo King Date: Tue, 3 Dec 2024 10:14:43 -0700 Subject: [PATCH] docs: fix broken imports and add links for openinference-core --- README.md | 1 + js/packages/openinference-core/README.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8557404fb..14f3a6742 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ OpenInference provides a set of instrumentations for popular machine learning SD | Package | Description | Version | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [`@arizeai/openinference-semantic-conventions`](./js/packages/openinference-semantic-conventions) | Semantic conventions for tracing of LLM Apps. | [![NPM Version](https://img.shields.io/npm/v/@arizeai/openinference-semantic-conventions.svg)](https://www.npmjs.com/package/@arizeai/openinference-semantic-conventions) | +| [`@arizeai/openinference-core`](./js/packages/openinference-core) | Core utility functions for instrumentation | [![NPM Version](https://img.shields.io/npm/v/@arizeai/openinference-core.svg)](https://www.npmjs.com/package/@arizeai/openinference-core) | | [`@arizeai/openinference-instrumentation-openai`](./js/packages/openinference-instrumentation-openai) | OpenInference Instrumentation for OpenAI SDK. | [![NPM Version](https://img.shields.io/npm/v/@arizeai/openinference-instrumentation-openai)](https://www.npmjs.com/package/@arizeai/openinference-instrumentation-openai) | | [`@arizeai/openinference-instrumentation-langchain`](./js/packages/openinference-instrumentation-langchain) | OpenInference Instrumentation for LangChain.js. | [![NPM Version](https://img.shields.io/npm/v/@arizeai/openinference-instrumentation-langchain)](https://www.npmjs.com/package/@arizeai/openinference-instrumentation-langchain) | | [`@arizeai/openinference-vercel`](./js/packages/openinference-vercel) | OpenInference Support for Vercel AI SDK | [![NPM Version](https://img.shields.io/npm/v/@arizeai/openinference-vercel)](https://www.npmjs.com/package/@arizeai/openinference-vercel) | diff --git a/js/packages/openinference-core/README.md b/js/packages/openinference-core/README.md index 805787b78..c9242f6e8 100644 --- a/js/packages/openinference-core/README.md +++ b/js/packages/openinference-core/README.md @@ -31,7 +31,7 @@ The `@arizeai/openinference-core` package offers utilities to track important ap ```typescript import { context } from "@opentelemetry/api"; -import { setSession } from "@openinference-core"; +import { setSession } from "@arizeai/openinference-core"; context.with(setSession(context.active(), { sessionId: "session-id" }), () => { // Calls within this block will generate spans with the attributes: @@ -43,7 +43,7 @@ Each setter function returns a new active context, so they can be chained togeth ```typescript import { context } from "@opentelemetry/api"; -import { setAttributes, setSession } from "@openinference-core"; +import { setAttributes, setSession } from "@arizeai/openinference-core"; context.with( setAttributes(setSession(context.active(), { sessionId: "session-id" }), {