Find answers from the community

Updated 2 months ago

Hey everyone,

Hey everyone,

I am facing an issue with the KnowledgeGraphQueryEngine. So whenever I am trying to run a query using the KnowledgeGraphQueryEngine , I am continuously getting this error:
Plain Text
pydantic.v1.error_wrappers.ValidationError: 1 validation error for LLMPredictStartEvent
template
  none is not an allowed value (type=type_error.none.not_allowed)


And here's the code snippet:
Plain Text
    query_engine = KnowledgeGraphQueryEngine(
        storage_context=storage_context,
        llm=llm,
        verbose=True,
    )
    response = query_engine.query("Tell me about Peter Quill?")


Any help will be appreciated! Thanks in advance.

P.S. I am using Neo4JGraphStore instead of NebulaGraph.
L
d
3 comments
Its because the prompt template for text-to-cypher is missing since the v0.10.x, but its been low priority to fix πŸ˜… Especially since we have better graph stuff coming soon

You can get around this by disabling text-to-cypher in the constructor I think
Aah I see. Just a quick question:"Can I use the KnowledgeGraphRAGEngine in place of this one?"
should be able to! (tbh I'm not sure why we have these two query engines, feels redundant lol)
Add a reply
Sign up and join the conversation on Discord