diff --git a/modus/api-generation.mdx b/modus/api-generation.mdx index 5c372ee3..d63b5f3a 100644 --- a/modus/api-generation.mdx +++ b/modus/api-generation.mdx @@ -105,11 +105,11 @@ Since the `classify` function isn't exported from the module, Modus doesn't include it in the generated GraphQL API. ```ts -import { models } from "@hypermode/functions-as" +import { models } from "@hypermode/modus-sdk-as" import { ClassificationModel, ClassifierResult, -} from "@hypermode/models-as/models/experimental/classification" +} from "@hypermode/modus-sdk-as/models/experimental/classification" const modelName: string = "my-classifier" diff --git a/modus/sdk/models.mdx b/modus/sdk/models.mdx index bcf1b869..404b4778 100644 --- a/modus/sdk/models.mdx +++ b/modus/sdk/models.mdx @@ -51,7 +51,7 @@ To begin, import the `models` namespace from the SDK: You'll also need to import one or more classes for the model you are working with. For example: ```ts - import { ClassificationModel } from "@hypermode/models-as/models/experimental/classification" + import { ClassificationModel } from "@hypermode/modus-sdk-as/models/experimental/classification" ``` @@ -110,7 +110,7 @@ The base class for all models that Hypermode functions can invoke. If you are implementing a custom model, you should extend this class. You'll also need classes to represent the input and output types for your model. See - the implementations of the pre-defined models in the `models-as` repository + the implementations of the pre-defined models in the Modus GitHub repository for examples. diff --git a/modus/search.mdx b/modus/search.mdx index d3bb2160..8ccfc4f6 100644 --- a/modus/search.mdx +++ b/modus/search.mdx @@ -161,8 +161,8 @@ func Embed(text []string) ([][]float32, error) { ``` ```ts AssemblyScript -import { models } from "@hypermode/functions-as" -import { EmbeddingsModel } from "@hypermode/models-as/models/experimental/embeddings" +import { models } from "@hypermode/modus-sdk-as" +import { EmbeddingsModel } from "@hypermode/modus-sdk-as/models/experimental/embeddings" export function embed(texts: string[]): f32[][] { // "minilm" is the model name declared in the application manifest