langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications

Home Page:https://python.langchain.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOC: import create_sql_query_chain is incorrectly imported in SQL + CSV document

sam1231ui opened this issue · comments

Checklist

  • I added a very descriptive title to this issue.
  • I included a link to the documentation page I am referring to (if applicable).

Issue with current documentation:

https://python.langchain.com/docs/use_cases/sql/quickstart/

this is link to the document with incorrect import statement for create_sql_query_chain
In chain section of above document the correct import statement should be from langchain.chains.sql_database.query import create_sql_query_chain
but is incorrect in document, provided the ss of same the 1st statement of code area
Screenshot from 2024-05-08 17-13-05

Idea or request for content:

No response

@sam1231ui Actually, this link is OK. It works fine.
It works because the namespace is flattened in the langchain/chains/__init__.py file, line 82.
You can use the langchain.chains namespace for this symbol.