TonicAI/tonic_validate

ModuleNotFoundError

Opened this issue · 1 comments

I run into this error when I try to set up validate

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 6
      4 from os import environ
      5 from rag import get_rag_response, load_cloud_qdrant_index, create_cloud_qdrant_index
----> 6 from tonic_validate import ValidateScorer, Benchmark, LLMResponse, ValidateApi
      7 from tonic_validate.metrics import (
      8     AnswerSimilarityMetric,
      9     RetrievalPrecisionMetric,
   (...)
     13     LatencyMetric
     14 )
     15 from llama_index.postprocessor.cohere_rerank import CohereRerank

File c:\Users\TurnerZ\Documents\GitHub\amaliai-hr\.venv\Lib\site-packages\tonic_validate\__init__.py:2
      1 from .validate_api import ValidateApi
----> 2 from .validate_scorer import ValidateScorer
      3 from .classes import (
      4     Benchmark,
      5     BenchmarkItem,
   (...)
     11     UserInfo,
     12 )
     14 __all__ = [
     15     "ValidateApi",
...
     14 from openai.types.beta.thread_create_params import (
     15     Message as OpenAICreateThreadParamsMessage,
     16 )

ModuleNotFoundError: No module named 'openai.types.beta.threads.message_content'

tonic-validate version: 5.0.0

We recently updated some packages. Can you try upgrading to the latest version and see if it still has this issue? I'd also recommend testing it in a virtual environment on python in case there's some package conflict.