Remove duplicate loader.alazy_load line from merge

This commit is contained in:
Rory 2025-02-14 22:43:46 -06:00
parent aa2b764d74
commit b1bab2ece8

View File

@ -1348,8 +1348,6 @@ async def process_web_search(
requests_per_second=request.app.state.config.RAG_WEB_SEARCH_CONCURRENT_REQUESTS, requests_per_second=request.app.state.config.RAG_WEB_SEARCH_CONCURRENT_REQUESTS,
trust_env=request.app.state.config.RAG_WEB_SEARCH_TRUST_ENV, trust_env=request.app.state.config.RAG_WEB_SEARCH_TRUST_ENV,
) )
docs = [doc async for doc in loader.alazy_load()]
# docs = loader.load()
docs = await loader.aload() docs = await loader.aload()
await run_in_threadpool( await run_in_threadpool(
save_docs_to_vector_db, save_docs_to_vector_db,