mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-25 16:18:13 +00:00
Improve documentation based on PR feedback
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -53,6 +53,7 @@ openpyxl = [
|
|||||||
mem0 = ["mem0ai>=0.1.29"]
|
mem0 = ["mem0ai>=0.1.29"]
|
||||||
docling = [
|
docling = [
|
||||||
"docling>=2.12.0",
|
"docling>=2.12.0",
|
||||||
|
# Required for transformers compatibility
|
||||||
"tokenizers>=0.21,<0.22",
|
"tokenizers>=0.21,<0.22",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -15,10 +15,15 @@ from crewai.utilities.logger import Logger
|
|||||||
|
|
||||||
|
|
||||||
class CrewDoclingSource(BaseKnowledgeSource):
|
class CrewDoclingSource(BaseKnowledgeSource):
|
||||||
"""Default Source class for converting documents to markdown or json
|
"""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.
|
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)
|
_logger: Logger = Logger(verbose=True)
|
||||||
|
|||||||
@@ -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
|
import pytest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user