# Option 1
"""
Traceback (most recent call last):
File "/Users/jayanta/Work/quick-reference-llm/llamaindex/examples-python/10- hello-query-engine/hello-custom-qe.py", line 49, in <module>
response = query_engine.query("Who are the people mentioned")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jayanta/.local/share/virtualenvs/10-_hello-query-engine-QsvNZDng/lib/python3.11/site-packages/llama_index/query_engine/custom.py", line 36, in query
with self.callback_manager.as_trace("query"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'FieldInfo' object has no attribute 'as_trace'
"""
# Option 2
"""
Traceback (most recent call last):
File "/Users/jayanta/Work/quick-reference-llm/llamaindex/examples-python/10- hello-query-engine/hello-custom-qe.py", line 38, in <module>
query_engine = RAGStringQueryEngine(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/jayanta/.local/share/virtualenvs/10-_hello-query-engine-QsvNZDng/lib/python3.11/site-packages/pydantic/main.py", line 165, in __init__
__pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
TypeError: BaseModel.validate() takes 2 positional arguments but 3 were given
"""