Skip to content

node_info['start'] does not exist #38

@filmo

Description

@filmo

From flask_demo.py

    response_json = {
        "text": str(response),
        "sources": [{"text": str(x.text), 
                     "similarity": round(x.score, 2),
                     "doc_id": str(x.id_),
                     "start": x.node_info['start'],
                     "end": x.node_info['end'],
                    } for x in response.source_nodes]
    }

When I run this, I get an error saying that 'start' is not a valid key. It would only work when I commented out both the 'start' and 'end' portions of the response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions