Skip to content

Exercise 08 Missing inputParams #15

@wotsf

Description

@wotsf

In "Exercise 08 - Understand data masking, anonymization and pseudonymization" in the final implementation of the ai-helper the inputParams in the chatCompletion call of the orchestrationClient are missing:

const response = await orchestrationClient.chatCompletion();

which leads to the error

[odata] - GET /odata/v4/job-posting/createJobPosting
[error] - 500 - Error: Required input parameters not supplied

As a side note, the results of the SELECT of DocumentChunks can be limited directly in the query:

let similarity_chunks = await SELECT.from(DocumentChunks)
    .orderBy`cosine_similarity(embedding, to_real_vector(${JSON.stringify(embedding)})) DESC`
    .limit(3);

Then the .splice(0, 3) can be left out in the line following

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions