Qdrant pageContent empty when queried by AI Agent

Describe the problem/error/question

When my AI agent queries the qdrant vector store, the results returned have an empty “pageContent” value. Only the metadata is returned properly (I have include metadata checked)

What is the error message (if any)?

No error

Please share your workflow

Share the output returned by the last node

this is the output from the qdrant node, since that is what my question is about

[
  {
    "response": [
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Printing Issues with Email and Printer Setup During Outage\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"printing,email,pop-up,app,printer,print-service,outage,reboot,spooler\",\"assigned_group\":\"Team East\",\"closing_agent\":\"agent name\"},\"id\":2188321883}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Library Printer Slow Printing Issue\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"printer,queue,slow,powercycle,clearing\",\"assigned_group\":\"Team West\",\"closing_agent\":\"agent name\"},\"id\":2213022130}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Substitute Teacher Portal Access Issue After Contact Info Update\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"voicemail,substitute,portal,app,email,phone,authentication,access\",\"assigned_group\":\"HelpDesk\",\"closing_agent\":\"agent name\"},\"id\":2156821568}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Gym Camera Repositioning Request to Cover Center Area\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"cameras,gym,reposition,coverage,center\",\"assigned_group\":\"Team West\",\"closing_agent\":\"agent name\"},\"id\":2197521975}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Email Disappearing After Opening\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"email,disappearing,Chrome,history,clear,restart\",\"assigned_group\":\"HelpDesk\",\"closing_agent\":\"agent name\"},\"id\":2153621536}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Lockdown of Unreturned Student Laptops\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"laptops,lockdown,unreturned,students,security\",\"assigned_group\":\"Team West\",\"closing_agent\":\"agent name\"},\"id\":8924931042395}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Video Playback Issue on TV When Using VCast\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"video,audio,casting,HDMI,blocked\",\"assigned_group\":\"Team West\",\"closing_agent\":\"agent name\"},\"id\":2154221542}"
      },
      {
        "type": "text",
        "text": "{\"pageContent\":\"\",\"metadata\":{\"title\":\"Unable to Access Staff Lounge Printer Web Portal Due to Forgotten Password\",\"article_source\":\"n8n_internal_docs\",\"keywords\":\"password,printer,admin,reset,serial\",\"assigned_group\":\"Team West\",\"closing_agent\":\"agent name\"},\"id\":2155921559}"
      }
    ]
  }
]

Expected out is to have the pageContent include the “synopsis” field of the point returned.

Below is a screenshot of a point located in the collection in Qdrant:

Information on your n8n setup

  • n8n version: 1.97.1
  • Database (default: SQLite): Default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): desktop app
  • Operating system: Windows Server 2022 Standard

I was able to resolve this by changing the structure of my points to this:

{
    "id": *point_id*,
    "vector": [*embeddings*],
    "payload": {
        "content": "the document content",
        "metadata": {
            "item1": "blah blah"
        }
    }
}

Most important thing seemed to be changing the key from “synopsis” to “content”

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.