https://www.boundaryml.com logo
🟑 Discrepancy between JSON and parsed response in...
# questions
r
I am getting a different JSON vs parsed response, looks like a bug?
Copy code
**Output for the provided example:**
    
    json
    {
        "companies": [
            {
                "ceo": null,
                "cik": null,
                "description": "An energy company. Energy company.",
                "employees": null,
                "founded_year": null,
                "headquarters_location": null,
                "id": 6,
                "linkedin_url": null,
                "name": "AES",
                "revenue_usd": null,
                "source_ids": [
                    6,
                    17
                ],
                "source_uuids": null,
                "ticker": null,
                "uuid": null,
                "website_url": null
            }
        ]
    }
Copy code
---Parsed Response (class CompanyList)---
    {
      "companies": [
        {
          "id": 17,
          "uuid": "a8b25a97-a472-463d-a6a2-0f5bd8b4bdaf",
          "name": "AES",
          "cik": null,
          "ticker": null,
          "description": "An energy company.",
          "website_url": null,
          "headquarters_location": null,
          "revenue_usd": null,
          "employees": null,
          "founded_year": null,
          "ceo": null,
          "linkedin_url": null,
          "source_ids": null,
          "source_uuids": null
        },
        {
          "id": 6,
          "uuid": "e02e27f0-ca66-44a2-9264-d94d4434a101",
          "name": "AES",
          "cik": null,
          "ticker": null,
          "description": "Energy company.",
          "website_url": null,
          "headquarters_location": null,
          "revenue_usd": null,
          "employees": null,
          "founded_year": null,
          "ceo": null,
          "linkedin_url": null,
          "source_ids": null,
          "source_uuids": null
        }
      ]
    }
Looks like a prompt edit fixed it, but isn't it a misparse?
v
is that the full parse + raw output? I don't think uuid could have been hallucinated here w/o the LLM producing it
r
That is the full output, yes. That’s what is confusing.
v
hmm, let me know if you get another repro here. I'm not sure how that would be possible :/ given the current code
r
k