AuthorBot commited on
Commit
a806a0b
·
1 Parent(s): c3be19a

Fix: replace all stale app.services.retriever imports with vector_store

Browse files
app/services/context_builder.py CHANGED
@@ -9,7 +9,7 @@ RULE: Include book title for each chunk to help model cross-book navigation.
9
  import structlog
10
 
11
  from app.config import get_settings
12
- from app.services.retriever import RetrievedChunk
13
  from app.utils.token_counter import count_tokens
14
 
15
  logger = structlog.get_logger(__name__)
 
9
  import structlog
10
 
11
  from app.config import get_settings
12
+ from app.services.vector_store import RetrievedChunk
13
  from app.utils.token_counter import count_tokens
14
 
15
  logger = structlog.get_logger(__name__)
app/services/formatter.py CHANGED
@@ -9,7 +9,7 @@ RULE: Links formatted as markdown-ready text for the widget to render.
9
  import re
10
  import structlog
11
 
12
- from app.services.retriever import RetrievedChunk
13
 
14
  logger = structlog.get_logger(__name__)
15
 
 
9
  import re
10
  import structlog
11
 
12
+ from app.services.vector_store import RetrievedChunk
13
 
14
  logger = structlog.get_logger(__name__)
15
 
app/services/guardrails.py CHANGED
@@ -12,7 +12,7 @@ import re
12
  import structlog
13
 
14
  from app.config import get_settings
15
- from app.services.retriever import RetrievedChunk
16
 
17
  logger = structlog.get_logger(__name__)
18
  cfg = get_settings()
 
12
  import structlog
13
 
14
  from app.config import get_settings
15
+ from app.services.vector_store import RetrievedChunk
16
 
17
  logger = structlog.get_logger(__name__)
18
  cfg = get_settings()
app/services/reranker.py CHANGED
@@ -9,7 +9,7 @@ RULE: Keep top N chunks above minimum score threshold.
9
  import structlog
10
 
11
  from app.config import get_settings
12
- from app.services.retriever import RetrievedChunk
13
 
14
  logger = structlog.get_logger(__name__)
15
  cfg = get_settings()
 
9
  import structlog
10
 
11
  from app.config import get_settings
12
+ from app.services.vector_store import RetrievedChunk
13
 
14
  logger = structlog.get_logger(__name__)
15
  cfg = get_settings()
app/tasks/ingestion_task.py CHANGED
@@ -85,10 +85,10 @@ async def _run_pipeline(
85
  Returns:
86
  Dict with pipeline results.
87
  """
88
- from app.core.ingestion.parser import parse_document
89
  from app.services.chunker import chunk_document
90
- from app.core.ingestion.embedder import embed_and_store
91
- from app.core.ingestion.summarizer import summarize_book
92
  from app.dependencies import _get_session_factory
93
 
94
  async with _get_session_factory()() as db:
 
85
  Returns:
86
  Dict with pipeline results.
87
  """
88
+ from app.services.parser import parse_document
89
  from app.services.chunker import chunk_document
90
+ from app.services.embeddings import embed_and_store
91
+ from app.services.summarizer import summarize_book
92
  from app.dependencies import _get_session_factory
93
 
94
  async with _get_session_factory()() as db: