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
Discord
This question already ask in discord. Thank you.
Describe the bug
I try to use Synthesizer to create dataset, but facing problem like this.
/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/__init__.py:53: UserWarning: You are using deepeval version 1.5.9, however version 2.0 is available. You should consider upgrading via the "pip install --upgrade deepeval" command.
warnings.warn(
✨ 🚀 ✨ Loading Documents: 100%|███████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 11.70it/s]
✨ 🧩 ✨ Generating Contexts: 0it [00:00, ?it/s]Traceback (most recent call last):
File "/tmp2/chten/delta/DeepEval/synthesizer/test.py", line 19, in <module>
synthesizer.generate_goldens_from_docs(
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/synthesizer/synthesizer.py", line 122, in generate_goldens_from_docs
goldens = loop.run_until_complete(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/synthesizer/synthesizer.py", line 202, in a_generate_goldens_from_docs
await self.context_generator.a_generate_contexts(
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/synthesizer/chunking/context_generator.py", line 194, in a_generate_contexts
results = await asyncio.gather(*tasks)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/synthesizer/chunking/context_generator.py", line 217, in _a_process_document_async
await self._a_get_n_random_contexts_per_doc(
File "/tmp2/chten/miniforge3/envs/delta/lib/python3.12/site-packages/deepeval/synthesizer/chunking/context_generator.py", line 295, in _a_get_n_random_contexts_per_doc
n_contexts_per_doc > 0
AssertionError: n_contexts_per_doc must be a positive integer.
✨ 🧩 ✨ Generating Contexts: 0it [00:01, ?it/s]
To Reproduce
This is the code I run, and the leed20.docx is a doc about 51 pages.
I already try for setting chunk size to 500, 200, 64 and 15, but all these chunk size I try also get the same error.
The chroma version is v0.5.3.
Discord
This question already ask in discord. Thank you.
Describe the bug
I try to use Synthesizer to create dataset, but facing problem like this.
To Reproduce
This is the code I run, and the leed20.docx is a doc about 51 pages.
I already try for setting chunk size to 500, 200, 64 and 15, but all these chunk size I try also get the same error.
The chroma version is v0.5.3.
Desktop:
LLM setting
The text was updated successfully, but these errors were encountered: