Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError #166

Open
Timmy-485 opened this issue May 7, 2024 · 1 comment
Open

ModuleNotFoundError #166

Timmy-485 opened this issue May 7, 2024 · 1 comment

Comments

@Timmy-485
Copy link

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

@ethan-tonic
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants