-
Notifications
You must be signed in to change notification settings - Fork 813
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
Error while running code in here(https://docs.ragas.io/en/stable/concepts/test_data_generation/rag/) #1868
Comments
Hi @sunnyeesl I believe the output you are getting is the expected one, I went through the NER documentation, and the sole purpose of the NER is to just extract the entities and nothing else. The documentation does show
But I believe that
This is even confirmed when I saw the
I think this a documentation error, in my opinion. |
For the 2nd error you were facing,
I would first suggest to update the ragas version.
but received this error
I believe this is because of incorrectly calling the
the correct way should be
because the sample_nodes which are given an input to the KnowledgeGraph class
doesn't have an entities in there definition, also the page_content is a simple string not a dictionary, therefore removing the requirement of key_name which is used to fetch 1 layer deeper in the property. |
[O] I checked the documentation and related resources and couldn't find an answer to my question.
Your Question
Hi, I'm testing the codes here (https://docs.ragas.io/en/stable/concepts/test_data_generation/rag/) and got some errors.
but I couldn't find the way to test the codes in the docs end to end.
ragas 0.2.12
python 3.10.12
llm: gpt-4o
(https://docs.ragas.io/en/stable/concepts/test_data_generation/rag/?h=jaccardsimilaritybuilder#extractors)
I ran the above code in the docs successfully, but the output I got is different to the output in the docs.
The format of the output is not same with the output in docs.
Also, I faced an error when I run the following codes
with the following error message.
It seems the error is occurred because of the format of the extractor output.
The text was updated successfully, but these errors were encountered: