Skip to content

docs(quickstart): fix errors when running Quickstart 1 #536

docs(quickstart): fix errors when running Quickstart 1

docs(quickstart): fix errors when running Quickstart 1 #536

GitHub Actions / JUnit Test Report failed Dec 4, 2024 in 0s

11 tests run, 0 passed, 0 skipped, 11 failed.

Annotations

Check failure on line 1 in packages/ragbits-core/tests/integration/vector_stores/test_vector_store.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_vector_store.packages.ragbits-core.tests.integration.vector_stores.test_vector_store

collection failure
Raw output
packages/ragbits-core/tests/integration/vector_stores/test_vector_store.py:11: in <module>
    from ragbits.document_search import DocumentSearch
packages/ragbits-document-search/src/ragbits/document_search/__init__.py:1: in <module>
    from ._main import DocumentSearch, SearchConfig
packages/ragbits-document-search/src/ragbits/document_search/_main.py:14: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:8: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.default import UnstructuredDefaultProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:1: in <module>
    from .default import UnstructuredDefaultProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/default.py:14: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.utils import check_required_argument, to_text_element
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/utils.py:8: in <module>
    from ragbits.core.llms.base import LLM
packages/ragbits-core/src/ragbits/core/llms/__init__.py:5: in <module>
    from .base import LLM
packages/ragbits-core/src/ragbits/core/llms/base.py:10: in <module>
    from .clients.base import LLMClient, LLMClientOptions, LLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-core/tests/unit/llms/factory/test_get_default_llm.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_get_default_llm.packages.ragbits-core.tests.unit.llms.factory.test_get_default_llm

collection failure
Raw output
packages/ragbits-core/tests/unit/llms/factory/test_get_default_llm.py:5: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-core/tests/unit/llms/factory/test_get_llm_from_factory.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_get_llm_from_factory.packages.ragbits-core.tests.unit.llms.factory.test_get_llm_from_factory

collection failure
Raw output
packages/ragbits-core/tests/unit/llms/factory/test_get_llm_from_factory.py:1: in <module>
    from ragbits.core.llms.factory import get_llm_from_factory
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-core/tests/unit/llms/test_litellm.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_litellm.packages.ragbits-core.tests.unit.llms.test_litellm

collection failure
Raw output
packages/ragbits-core/tests/unit/llms/test_litellm.py:3: in <module>
    from ragbits.core.llms.clients.litellm import LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/integration/test_rerankers.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_rerankers.packages.ragbits-document-search.tests.integration.test_rerankers

collection failure
Raw output
packages/ragbits-document-search/tests/integration/test_rerankers.py:5: in <module>
    from ragbits.document_search.retrieval.rerankers.base import RerankerOptions
packages/ragbits-document-search/src/ragbits/document_search/__init__.py:1: in <module>
    from ._main import DocumentSearch, SearchConfig
packages/ragbits-document-search/src/ragbits/document_search/_main.py:14: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:8: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.default import UnstructuredDefaultProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/integration/test_unstructured.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_unstructured.packages.ragbits-document-search.tests.integration.test_unstructured

collection failure
Raw output
packages/ragbits-document-search/tests/integration/test_unstructured.py:6: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter, ProvidersConfig
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/unit/test_document_processor.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_document_processor.packages.ragbits-document-search.tests.unit.test_document_processor

collection failure
Raw output
packages/ragbits-document-search/tests/unit/test_document_processor.py:4: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/unit/test_document_search.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_document_search.packages.ragbits-document-search.tests.unit.test_document_search

collection failure
Raw output
packages/ragbits-document-search/tests/unit/test_document_search.py:9: in <module>
    from ragbits.document_search import DocumentSearch
packages/ragbits-document-search/src/ragbits/document_search/__init__.py:1: in <module>
    from ._main import DocumentSearch, SearchConfig
packages/ragbits-document-search/src/ragbits/document_search/_main.py:14: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/unit/test_processing_strategies.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_processing_strategies.packages.ragbits-document-search.tests.unit.test_processing_strategies

collection failure
Raw output
packages/ragbits-document-search/tests/unit/test_processing_strategies.py:4: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/unit/test_providers.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_providers.packages.ragbits-document-search.tests.unit.test_providers

collection failure
Raw output
packages/ragbits-document-search/tests/unit/test_providers.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'

Check failure on line 1 in packages/ragbits-document-search/tests/integration/test_rerankers.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_rerankers.packages.ragbits-document-search.tests.unit.test_rerankers

collection failure
Raw output
packages/ragbits-document-search/tests/unit/test_rerankers.py:9: in <module>
    from ragbits.document_search.retrieval.rerankers.base import Reranker, RerankerOptions
packages/ragbits-document-search/src/ragbits/document_search/__init__.py:1: in <module>
    from ._main import DocumentSearch, SearchConfig
packages/ragbits-document-search/src/ragbits/document_search/_main.py:14: in <module>
    from ragbits.document_search.ingestion.document_processor import DocumentProcessorRouter
packages/ragbits-document-search/src/ragbits/document_search/ingestion/document_processor.py:9: in <module>
    from ragbits.document_search.ingestion.providers.unstructured.images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/__init__.py:2: in <module>
    from .images import UnstructuredImageProvider
packages/ragbits-document-search/src/ragbits/document_search/ingestion/providers/unstructured/images.py:10: in <module>
    from ragbits.core.llms.factory import get_default_llm
packages/ragbits-core/src/ragbits/core/llms/factory.py:5: in <module>
    from ragbits.core.llms.litellm import LiteLLM
packages/ragbits-core/src/ragbits/core/llms/litellm.py:15: in <module>
    from .clients.litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/__init__.py:2: in <module>
    from .litellm import LiteLLMClient, LiteLLMOptions
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:41: in <module>
    class LiteLLMClient(LLMClient[LiteLLMOptions]):
packages/ragbits-core/src/ragbits/core/llms/clients/litellm.py:184: in LiteLLMClient
    ) -> "ModelResponse" | "CustomStreamWrapper":
E   TypeError: unsupported operand type(s) for |: 'str' and 'str'