added vector_engine to fix name postgres name space issue

This commit is contained in:
2026-06-12 14:50:22 -04:00
parent ed45051eb5
commit 51855725a1
2 changed files with 25 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ logger = logging.getLogger(__name__)
async def lifespan(app: FastAPI) -> AsyncIterator[None]:
"""Manage application startup and shutdown resources."""
logger.info("ebook_search_startup")
app.state.engine = get_postgres_engine(name="RICHIE")
app.state.engine = get_postgres_engine(name="RICHIE", vector_engine=True)
with Session(app.state.engine) as session:
ensure_bm25_corpus(session, app.state.config)
try: