mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
- Implement _coerce_to_records function to handle both string and dict formats - Update KnowledgeStorage.save() to accept list[str] | list[dict[str, Any]] - Add metadata (filepath, chunk_index, source_type) to all Knowledge Source classes: - TextFileKnowledgeSource - PDFKnowledgeSource - CSVKnowledgeSource - JSONKnowledgeSource - ExcelKnowledgeSource (includes sheet_name for multi-sheet files) - StringKnowledgeSource - CrewDoclingSource - Add comprehensive tests for metadata functionality - Maintain backward compatibility with existing string-based chunks Fixes #3812 Co-Authored-By: João <joao@crewai.com>
1.2 MiB
1.2 MiB