Skip to content

[Question]: Problems with entity extractor #18554

@JLombar

Description

@JLombar

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

I am using an entity extractor with my ingestion pipeline but the entities do not appear in the metadata:

self.pipeline = IngestionPipeline(
      transformations=[
            IngestionService.TextCleaner(),
            self.text_splitter,
            self.embed_model,
            TitleExtractor(),
            EntityExtractor(prediction_threshold=0.5),
        ],
      docstore=MongoDocumentStore.from_uri(uri=MONGO_URI),
      vector_store=self.vector_store,
      cache=self.ingest_cache,
      docstore_strategy=DocstoreStrategy.UPSERTS_AND_DELETE,
      disable_cache=False
  )

nodes = await self.pipeline.arun(documents=documents, show_progress=True)

for node in nodes:
            print(node.metadata)

This is the result of the print:

{'page_label': '1', 'file_name': 'nazaries_USO-CORRECTO-DEL-AIRE-ACONDICIONADO-E-ILUMINACIÓN-EN-OFICINA.pdf', 'file_path': '/home/jlombar/ai-llamaindex-agent/data/nazaries_USO-CORRECTO-DEL-AIRE-ACONDICIONADO-E-ILUMINACIÓN-EN-OFICINA.pdf', 'file_type': 'application/pdf', 'file_size': 174299, 'creation_date': '2025-04-29', 'last_modified_date': '2025-04-29', 'document_title': ' "Office Climate Control and Energy-Efficient Lighting Guidelines: Simultaneous Lighting at Workplace for Uniform Illumination and Environmental Respect"\n\nThis title effectively communicates the main topics of the document while also emphasizing the importance of energy conservation, environmental respect, and uniform illumination in office settings.', 'urls': {}, 'annotated_text': 'ser encendidas simultáneamente al inicio de la jornada laboral para asegurar una iluminación uniforme.'}

Is there something I need to change in the pipeline? Or what is the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions