Open sona-16 opened 2 months ago
I don't think this is a Ragas issue - are you still facing this @sona-16 ?
Hi jjmachan,
I haven't tried yet on the issue. Will do it by today and update you
I am facing this same issue.
ExceptionInRunner Traceback (most recent call last) File /Users/L037301/Documents/GitHub/ragas/src/ragas/tryout.py:1 ----> 1 testset4 = generator.generate_with_langchain_docs(pages4, test_size=40, distributions={simple: 0.5, reasoning: 0.25, multi_context: 0.25})
File ~/Documents/GitHub/ragas/src/ragas/testset/generator.py:179, in TestsetGenerator.generate_with_langchain_docs(self, documents, test_size, distributions, with_debugging_logs, is_async, raise_exceptions, run_config) 174 # chunk documents and add to docstore 175 self.docstore.add_documents( 176 [Document.from_langchain_document(doc) for doc in documents] 177 ) --> 179 return self.generate( 180 test_size=test_size, 181 distributions=distributions, 182 with_debugging_logs=with_debugging_logs, 183 is_async=is_async, 184 raise_exceptions=raise_exceptions, 185 run_config=run_config, 186 )
File ~/Documents/GitHub/ragas/src/ragas/testset/generator.py:274, in TestsetGenerator.generate(self, test_size, distributions, with_debugging_logs, is_async, raise_exceptions, run_config) 272 test_data_rows = exec.results() 273 if not test_data_rows: --> 274 raise ExceptionInRunner() 276 except ValueError as e: 277 raise e
ExceptionInRunner: The runner thread which was running the jobs raised an exeception. Read the traceback above to debug it. You can also pass raise_exceptions=False
incase you want to show only a warning message instead.
Any update? I'm facing the same message for a ragas.evaluate inside a ThreadPoolExecutor
I also have the same issue, everything worked fine for a set of 300 pdfs, and now all of a sudden the same code gives the error below:
ExceptionInRunner: The runner thread which was running the jobs raised an exeception. Read the traceback above to debug it. You can also pass raise_exceptions=False
incase you want to show only a warning message instead.
Hi Team,
I'm still facing the same error. I doubt, is this due to huggingface LLM I'm using or due to computation power. And also, Im using google colab notebook with CPU setup to do this task.
Hi @damlitos could you please share me the code snippet, why because I have just used 2 pages of PDF, even though no proper output. As you told you may be getting an satisfactory answer for lesser # of pages.
ExceptionInRunner Traceback (most recent call last)
2 frames /usr/local/lib/python3.10/dist-packages/ragas/testset/docstore.py in add_nodes(self, nodes, show_progress) 252 results = executor.results() 253 if not results: --> 254 raise ExceptionInRunner() 255 256 for i, n in enumerate(nodes):
ExceptionInRunner: The runner thread which was running the jobs raised an exeception. Read the traceback above to debug it. You can also pass raise_exceptions=False
incase you want to show only a warning message instead.
I was trying to do "test generation" using RAGAS framework with the help of the "https://docs.ragas.io/en/stable/concepts/testset_generation.html", I'm facing error.
Please have a look on the below error.
ragas.exceptions.ExceptionInRunner: The runner thread which was running the jobs raised an exeception. Read the traceback above to debug it. You can also pass.sema_coro() running at C:\Users\sonaganesh.g\Desktop\RAGAS syhthetic data generation\syn\Lib\sit
e-packages\ragas\executor.py:38> wait_for= cb=[as_completed.._on_completion() at C:\Users\sonaganesh.g\AppData\Local\Programs\Python\Python312\Lib\asyncio\tasks.py:618]>
Task was destroyed but it is pending!
task: <Task pending name='Task-5' coro=<as_completed..sema_coro() running at C:\Users\sonaganesh.g\Desktop\RAGAS syhthetic data generation\syn\Lib\sit
e-packages\ragas\executor.py:38> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()]> cb=[as_completed.._on_completion() at C:\Users\sonaganesh.g\AppData\Local\Programs\Python\Python312\Lib\asyncio\tasks.py:618]>
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<as_completed..sema_coro() running at C:\Users\sonaganesh.g\Desktop\RAGAS syhthetic data generation\syn\Lib\site-packages\ragas\executor.py:38> wait_for= cb=[as_completed.._on_completion() at C:\Users\sonaganesh.g\AppData\Local\Programs\Python\Python312\Lib\asyncio\tasks.py:618]>
raise_exceptions=False
incase you want to show only a warning message instead. Task was destroyed but it is pending! task: <Task pending name='Task-3' coro=<as_completed.And my code is:
loader = PyPDFLoader(" .pdf")
documents = loader.load()
used same LLM for both generator_lmm and critic_llm
generator_llm = llm() critic_llm = llm() embeddings =embeddings() # used AzureOpenaiEmbeddings
generator = TestsetGenerator.from_langchain( generator_llm, critic_llm, embeddings ) distributions = { simple: 0.5, multi_context: 0.4, reasoning: 0.1 }
testset = generator.generate_with_langchain_docs(documents, 10, distributions) testset.to_pandas()
versions: openai - 1.17.0 ragas - 0.1.4/ 0.1.6