Skip to content

Update rabbit_hole.py#1065

Closed
canapaio wants to merge 1 commit intocheshire-cat-ai:mainfrom
canapaio:patch-3
Closed

Update rabbit_hole.py#1065
canapaio wants to merge 1 commit intocheshire-cat-ai:mainfrom
canapaio:patch-3

Conversation

@canapaio
Copy link
Copy Markdown
Contributor

chore: update rabbit_hole.py

  • Enhance rabbit_hole.py with improved error handling, logging, and fallback mechanisms for unsupported MIME types

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Related to issue #(issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

chore: update rabbit_hole.py

- Enhance rabbit_hole.py with improved error handling, logging, and fallback mechanisms for unsupported MIME types
@canapaio
Copy link
Copy Markdown
Contributor Author

error fixed:
cheshire_cat_core_191 | ERROR: Unsupported file type:
cheshire_cat_core_191 | Traceback (most recent call last):
cheshire_cat_core_191 | File "/app/cat/rabbit_hole.py", line 304, in string_to_docs
cheshire_cat_core_191 | super_docs = parser.parse(blob)
cheshire_cat_core_191 | File "/usr/local/lib/python3.10/site-packages/langchain_core/document_loaders/base.py", line 126, in parse
cheshire_cat_core_191 | return list(self.lazy_parse(blob))
cheshire_cat_core_191 | File "/usr/local/lib/python3.10/site-packages/langchain_community/document_loaders/parsers/generic.py", line 70, in lazy_parse
cheshire_cat_core_191 | raise ValueError(f"Unsupported mime type: {mimetype}")
cheshire_cat_core_191 | ValueError: Unsupported mime type:
cheshire_cat_core_191 | INFO: Preparing to memorize 0 vectors

@canapaio canapaio closed this by deleting the head repository May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant