You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 frames /usr/local/lib/python3.10/dist-packages/ragas/testset/synthesizers/generate.py in (.0)
239 # create the transforms
240 transforms = default_transforms(
--> 241 documents=[LCDocument(page_content=doc.text) for doc in documents],
242 llm=llm_for_transforms,
243 embedding_model=embedding_model_for_transforms,
NameError: name 'LCDocument' is not defined
Ragas version: 0.2.9
Python version: 3.10
Code to Reproduce
Share code to reproduce the issue
Error trace
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
In ragas/testset/synthesizers/generate.py, LCDocument is imported under a TYPE_CHECKING condition, and the value of TYPE_CHECKING is false.
The text was updated successfully, but these errors were encountered:
[ ] I have checked the documentation and related resources and couldn't resolve my bug.
Describe the bug
When I run https://github.com/explodinggradients/ragas/blob/main/docs/howtos/integrations/llamaindex.ipynb in google colab, I get the following error:
NameError Traceback (most recent call last)
in <cell line: 2>()
1 # generate testset
----> 2 testset = generator.generate_with_llamaindex_docs(
3 documents,
4 testset_size=5,
5 )
1 frames
/usr/local/lib/python3.10/dist-packages/ragas/testset/synthesizers/generate.py in (.0)
239 # create the transforms
240 transforms = default_transforms(
--> 241 documents=[LCDocument(page_content=doc.text) for doc in documents],
242 llm=llm_for_transforms,
243 embedding_model=embedding_model_for_transforms,
NameError: name 'LCDocument' is not defined
Ragas version: 0.2.9
Python version: 3.10
Code to Reproduce
Share code to reproduce the issue
Error trace
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
In
ragas/testset/synthesizers/generate.py
,LCDocument
is imported under aTYPE_CHECKING
condition, and the value of TYPE_CHECKING is false.The text was updated successfully, but these errors were encountered: