stanford-futuredata / ARES

https://ares-ai.vercel.app/
Apache License 2.0
372 stars 41 forks source link

getting TypeError: 'type' object is not subscriptable when importing the package #47

Closed kabani7 closed 3 weeks ago

kabani7 commented 1 month ago

Hi, I am getting this error TypeError: 'type' object is not subscriptable when I import the package

 from ares import ARES

this is the full error

----> 1 from ares import ARES

File ~/.local/lib/python3.8/site-packages/ares/__init__.py:1
----> 1 from .ares import ARES

File ~/.local/lib/python3.8/site-packages/ares/ares.py:1
----> 1 from .synthetic_generator import synthetic_generator_config
      2 from .binary_classifier import binary_classifer_config
      3 from .rag_scoring import rag_scoring_config

File ~/.local/lib/python3.8/site-packages/ares/synthetic_generator.py:1
----> 1 from .LLM_as_a_Judge_Adaptation.Generate_Synthetic_Queries_and_Answers import (
      2     load_model,
      3     load_documents,
      4     load_few_shot_prompt,
      5     generate_contradictory_answers,
      6     generate_few_shot_prompts,
      7     generate_synthetic_queries,
      8     Generate_Synthetic_Answers
      9 )
     11 def synthetic_generator_config(
     12     document_filepaths: list, 
...
     68         bool: True if the DataFrame contains all required columns, otherwise the program will exit with an error.
     69     """
     70     # Identify any missing columns

TypeError: 'type' object is not subscriptable
robbym-dev commented 3 weeks ago

Hi @kabani7

The issue is resolved, please reinstall ares-ai with pip install ares-ai.

Thank you!