Improve documentation based on PR feedback

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-08 09:35:52 +00:00
parent c1aab74b26
commit 77a2d14e31
3 changed files with 12 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ openpyxl = [
mem0 = ["mem0ai>=0.1.29"]
docling = [
"docling>=2.12.0",
# Required for transformers compatibility
"tokenizers>=0.21,<0.22",
]

View File

@@ -15,10 +15,15 @@ from crewai.utilities.logger import Logger
class CrewDoclingSource(BaseKnowledgeSource):
"""Default Source class for converting documents to markdown or json
This will auto support PDF, DOCX, and TXT, XLSX, Images, and HTML files without any additional dependencies and follows the docling package as the source of truth.
"""Default Source class for converting documents to Markdown or JSON
This will auto support PDF, DOCX, TXT, XLSX, Images, and HTML files without any additional dependencies and follows the docling package as the source of truth.
Note: To use this class, install crewai with the docling extra: `pip install crewai[docling]`
Requirements:
- Install with: `pip install crewai[docling]`
- Requires tokenizers>=0.21,<0.22 for transformers compatibility
Notes:
- This is an optional dependency, only needed for document processing features.
"""
_logger: Logger = Logger(verbose=True)

View File

@@ -1,4 +1,6 @@
"""Test to verify compatibility between tokenizers and transformers."""
"""Test suite to verify compatibility between tokenizers and transformers packages.
Ensures the installed tokenizers version meets requirements and can work effectively with transformers.
"""
import pytest