Find answers from the community

Updated 2 months ago

Chat engjne

how to switch from q query engine to a chat engine with this code?
Plain Text
obj_index = ObjectIndex.from_objects(table_schema_objs, table_node_mapping, VectorStoreIndex)

query_engine = SQLTableRetrieverQueryEngine(sql_database, obj_index.as_retriever(similarity_top_k=1))


(that is coming from the tutorial https://gpt-index.readthedocs.io/en/latest/end_to_end_tutorials/structured_data/sql_guide.html)
L
s
2 comments
Add a reply
Sign up and join the conversation on Discord