Skip to content

AttributeError: module 'giskard.llm' has no attribute 'embeddings' #2076

@AmineDjeghri

Description

@AmineDjeghri

Issue Type

Bug

Source

source

Giskard Library Version

2.15.5

OS Platform and Distribution

Macos 14

Python version

3.11

Installed python packages

No response

Current Behaviour?

giskard.llm.embeddings.openai.set_embedding_model('text-embedding-ada-002')
    ^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'giskard.llm' has no attribute 'embeddings'

Standalone code OR list down the steps to reproduce the issue

import openai
import pandas as pd
import tiktoken
from scipy import spatial

from giskard import scan, Dataset, Model

giskard.llm.set_llm_model('gpt-4o-mini')
giskard.llm.embeddings.openai.set_embedding_model('text-embedding-ada-002')

Relevant log output

No response

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