Find answers from the community

Updated 2 years ago

Graph query

I'm trying to query a composable graph like this:

Plain Text
response = graph.query(
    query_str=query_str, 
    query_configs=query_configs, 
    service_context=service_context_chatgpt
)


But keep getting this error:
Plain Text
   response = graph.query(
               ^^^^^^^^^^^^
TypeError: BaseQueryEngine.query() got an unexpected keyword argument 'query_str'

Does anyone know how to solve this?
L
1 comment
In the new version, it looks like you need to setup custom query engines instead of query configs

https://gpt-index.readthedocs.io/en/latest/how_to/index_structs/composability.html#composability
Add a reply
Sign up and join the conversation on Discord