Use of SinglestoreDB(not the vector database) with langchain #23565
-
Checked other resources
Commit to Help
Example Codedb= SQLDatabase.from_uri(os.environ["DB_CONNECTION_URI"],sample_rows_in_table_info=3)
db= SQLDatabase.from_uri(redshift_url,sample_rows_in_table_info=3)
Like this, can we use singlestore DB instead of MySQL or Redshift? DescriptionWe will be building an AI application, where the customers of our company would be asking any question in natural language and the system will provide the result of the question in natural language. The workflow is, once the user enters the question, it will get converted to the SQL query and then after executing and getting the result of the query, we will display it to the customer. For this entire application we will be using langchain framework(sql agents). We tested this with our sql database along with AWS redshift data warehouse. We had a question-
System Infolangchain==0.1.14 Platform-Mac Python version-Python 3.9.6 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 34 replies
-
Hey @Adyansh-RCRM! 👋 I'm here to help you with any bugs, questions, or contributions. Let's tackle this together!
By following these steps, you can effectively use SingleStore with LangChain for your AI application. |
Beta Was this translation helpful? Give feedback.
@dosu
I want the agent to use only the views for getting the results and not at all use the tables. How can I achieve this?
I have added the parameter view_support = True, but still it is using both the tables and views. I want the agent to use only the views.