ranking-agent / aragorn-ranker

Exposes TRAPI functions to add literature co-occurrence edges, convert publications to edge weights, and provide scores for answers.
MIT License
0 stars 1 forks source link

weight correctness throws 500 #31

Open cbizon opened 3 years ago

cbizon commented 3 years ago

With aragorn as a wf engine, I can call score w/o running omnicorp and it creates a 500. I would expect it to do something more sensible.

This errors:

{
    "message": {
        "query_graph": {
            "nodes": {
                "n0": {
                    "ids": [
                        "NCBIGene:6611"
                    ],
                    "categories": [
                        "biolink:Gene"
                    ]
                },
                "n1": {
                    "categories": [
                        "biolink:ChemicalSubstance"
                    ]
                }
            },
            "edges": {
                "e01": {
                    "subject": "n0",
                    "object": "n1"
                }
            }
        }
    },
    "log_level": "DEBUG",
    "workflow": [
        "lookup",
        "score"
    ]
}

But replacing workflow with:

"workflow": [
        "lookup",
        "connect_knodes",
        "score"
    ]

succeeds.