mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-15 18:25:18 +02:00
fix circular import in kb sync service
This commit is contained in:
parent
b240bc3e1a
commit
e92aa68523
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,6 @@ from sqlalchemy.future import select
|
|||
from app.config import config
|
||||
from app.db import Chunk, Document
|
||||
from app.services.llm_service import get_user_long_context_llm
|
||||
from app.tasks.connector_indexers.base import get_current_timestamp, safe_set_chunks
|
||||
from app.utils.document_converters import (
|
||||
create_document_chunks,
|
||||
generate_document_summary,
|
||||
|
|
@ -29,6 +28,11 @@ class NotionKBSyncService:
|
|||
appended_content: str,
|
||||
user_id: str,
|
||||
) -> dict:
|
||||
from app.tasks.connector_indexers.base import (
|
||||
get_current_timestamp,
|
||||
safe_set_chunks,
|
||||
)
|
||||
|
||||
try:
|
||||
result = await self.db_session.execute(
|
||||
select(Document).filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue