Hi there,
I am trying to pass two pdfs as Knowledge for the crew using CrewDoclingSource(). The files are in knowledge folder.
Right away I get this error from docling requesting CUDA12, seems so:
Could not load the custom kernel for multi-scale deformable attention: /home/ru/.cache/torch_extensions/py310_cu124/MultiScaleDeformableAttention/MultiScaleDeformableAttention.so: cannot open shared object file: No such file or directory
Then I get this error:
ValueError: Expected collection name that (1) contains 3-63 characters, (2) starts and ends with an alphanumeric character, (3) otherwise contains only alphanumeric characters, underscores or hyphens (-), (4) contains no two consecutive periods (..) and (5) is not a valid IPv4 address, got knowledge_Coordinator_and_primary_writer_for_the_Material_Research_Report._Understand_Eco_Innovation_through_mycelium_and_presents_a_story_and_the_innovation_of_the_MyBC_researched_with_our_partners._
and lastly I get this other error:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/bin/run_crew", line 10, in <module>
sys.exit(run())
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/src/matrndgroup/main.py", line 27, in run
Matrndgroup().crew().kickoff(inputs=inputs)
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/project/crew_base.py", line 36, in __init__
self.map_all_task_variables()
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/project/crew_base.py", line 203, in map_all_task_variables
self._map_task_variables(
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/project/crew_base.py", line 236, in _map_task_variables
self.tasks_config[task_name]["agent"] = agents[agent_name]()
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/project/utils.py", line 11, in memoized_func
cache[key] = func(*args, **kwargs)
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/src/matrndgroup/crew.py", line 30, in editor_in_chief
return Agent(
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/pydantic/main.py", line 214, in __init__
validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/agent.py", line 141, in post_init_setup
self._set_knowledge()
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/agent.py", line 168, in _set_knowledge
self._knowledge = Knowledge(
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/knowledge/knowledge.py", line 43, in __init__
self.storage.initialize_knowledge_storage()
File "/home/ru/Documents/Fungarium_Agents/matrndgroup/.venv/lib/python3.10/site-packages/crewai/knowledge/storage/knowledge_storage.py", line 107, in initialize_knowledge_storage
raise Exception("Failed to create or get collection")
Exception: Failed to create or get collection
/usr/lib/python3.10/tempfile.py:1008: ResourceWarning: Implicitly cleaning up <TemporaryDirectory '/tmp/tmpw1bndtcp'>
_warnings.warn(warn_message, ResourceWarning)
Besides the need to install CUDA 12, seems so, is there any other reason why the collection cannot be created?
I keep changing the names, to adjust, but I keep having the same error.
Any help would be gladly appreciated
Many greetings,
Ru