How to add a chat engine for text-to-sql pipeline? #12501
Replies: 1 comment 8 replies
-
Hey @sohanasarah, great to see you diving into another challenge with LlamaIndex! Let's get that chatbot chatting with SQL in no time. 🚀 Based on the context you've provided, it seems like you're trying to integrate the text-to-SQL pipeline into a chat engine using Streamlit. The Given your specific requirement to use from llama_index.legacy.chat_engine.condense_question import CondenseQuestionChatEngine
# Create an instance of CondenseQuestionChatEngine
index = CondenseQuestionChatEngine()
# Use the instance with the specified method and parameters
index.as_chat_engine(chat_mode="condense_question", verbose=True) This code snippet correctly initializes However, it's important to note that the The I hope this helps! If you have any more questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
I want to build a chatbot that can interact with a SQL table. I am following this example to build a text-to-sql pipeline:
https://docs.llamaindex.ai/en/stable/examples/pipeline/query_pipeline_sql/?h=advanced+text
I want to use Streamlit as the UI. How do I wrap the pipeline qp to the chat engine? what should be the index here?
Beta Was this translation helpful? Give feedback.
All reactions