i followed the following link to set up a RAGET : https://docs.giskard.ai/en/latest/open_source/testset_generation/testset_generation/index.html
Is there something wrong with the package? cant seem to get it to work while others on the forum seem to have no problem. I have tried pip install --upgrade giskard[llm] but still no luck
Standalone code OR list down the steps to reproduce the issue
import os
import giskard
# Set the Azure OpenAI API key and endpoint
os.environ['AZURE_OPENAI_API_KEY'] = secret
os.environ['AZURE_OPENAI_ENDPOINT'] = secret
os.environ['AZURE_OPENAI_API_VERSION'] ="2024-02-15-preview"
# You'll need to provide the name of the model that you've deployed
# Beware, the model provided must be capable of using function calls
giskard.llm.set_llm_model('gpt-35-turbo')
giskard.llm.embeddings.set_embedding_model('text-embedding-ada-002')
Relevant log output
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[3], line 12
9 # You'll need to provide the name of the model that you've deployed
10 # Beware, the model provided must be capable of using function calls
11 giskard.llm.set_llm_model('gpt-35-turbo')
---> 12 giskard.llm.embeddings.set_embedding_model('text-embedding-ada-002')
AttributeError: module 'giskard.llm' has no attribute 'embeddings'
Issue Type
Bug
Source
source
Giskard Library Version
2.15.2
OS Platform and Distribution
Windows
Python version
3.12
Installed python packages
Current Behaviour?
Standalone code OR list down the steps to reproduce the issue
Relevant log output