File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ FROM python:3.11-bullseye AS base
22WORKDIR /project
33COPY . .
44RUN pip install --no-cache-dir -r requirements.txt
5+ RUN python -m spacy download en_core_web_sm
56
67FROM base AS test
78RUN chmod +x docker-entrypoint.sh
Original file line number Diff line number Diff line change @@ -94,10 +94,13 @@ def transform(self) -> list[Document]:
9494 return documents
9595
9696 def load (self , documents : list [Document ]) -> None :
97+ logging .info (f"Loading { len (documents )} documents into Qdrant!" )
9798 ingestion_pipeline = CustomIngestionPipeline (
9899 self .community_id , collection_name = "mediawiki"
99100 )
100101 ingestion_pipeline .run_pipeline (documents )
102+ logging .info (f"Loaded { len (documents )} documents into Qdrant!" )
101103
102104 if self .delete_dump_after_load :
105+ logging .info (f"Removing dump directory { self .dump_dir } !" )
103106 shutil .rmtree (self .dump_dir )
You can’t perform that action at this time.
0 commit comments