fix: embedding exception imports (#1321)

<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Vasilije 2025-09-02 22:52:34 +02:00 committed by GitHub
commit 140c8adfba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View file

@ -4,7 +4,7 @@ from fastembed import TextEmbedding
import litellm
import os
from cognee.infrastructure.databases.vector.embeddings.EmbeddingEngine import EmbeddingEngine
from cognee.infrastructure.databases.exceptions.EmbeddingException import EmbeddingException
from cognee.infrastructure.databases.exceptions import EmbeddingException
from cognee.infrastructure.llm.tokenizer.TikToken import (
TikTokenTokenizer,
)

View file

@ -250,9 +250,7 @@ def embedding_rate_limit_sync(func):
logger.warning(error_msg)
# Create a custom embedding rate limit exception
from cognee.infrastructure.databases.exceptions.EmbeddingException import (
EmbeddingException,
)
from cognee.infrastructure.databases.exceptions import EmbeddingException
raise EmbeddingException(error_msg)
@ -307,9 +305,7 @@ def embedding_rate_limit_async(func):
logger.warning(error_msg)
# Create a custom embedding rate limit exception
from cognee.infrastructure.databases.exceptions.EmbeddingException import (
EmbeddingException,
)
from cognee.infrastructure.databases.exceptions import EmbeddingException
raise EmbeddingException(error_msg)