Skip to content

fix: len check in doc index logger if docs isinstance of BaseDoc#1465

Merged
anna-charlotte merged 1 commit intomainfrom
fix-len-check-indoc-index
Apr 27, 2023
Merged

fix: len check in doc index logger if docs isinstance of BaseDoc#1465
anna-charlotte merged 1 commit intomainfrom
fix-len-check-indoc-index

Conversation

@anna-charlotte
Copy link
Copy Markdown
Contributor

DocIndex.index() method allows Union[BaseDoc, Sequence[BaseDoc]] as input. As a first step in the method we check for docs length (len(docs)), which fails if docs is an instance of BaseDoc, instead of a list.
Therefore we need to adjust the check.

@github-actions
Copy link
Copy Markdown

📝 Docs are deployed on https://ft-fix-len-check-indoc-index--jina-docs.netlify.app 🎉

@JoanFM JoanFM marked this pull request as ready for review April 27, 2023 08:13
@anna-charlotte anna-charlotte merged commit 0ed8523 into main Apr 27, 2023
@anna-charlotte anna-charlotte deleted the fix-len-check-indoc-index branch April 27, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants