Skip to content

Commit

Permalink
chores(ci): cleanup naming (#24)
Browse files Browse the repository at this point in the history
* chore(ci): cleanup imports

* rename files

---------

Co-authored-by: Averi Kitsch <akitsch@google.com>
  • Loading branch information
Yuan325 and averikitsch authored Feb 19, 2024
1 parent c1f369f commit dcca171
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
15 changes: 5 additions & 10 deletions src/langchain_google_cloud_sql_mysql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from langchain_google_cloud_sql_mysql.mysql_chat_message_history import (
MySQLChatMessageHistory,
)
from langchain_google_cloud_sql_mysql.mysql_engine import MySQLEngine
from langchain_google_cloud_sql_mysql.mysql_loader import (
MySQLDocumentSaver,
MySQLLoader,
)
from langchain_google_cloud_sql_mysql.version import __version__
from .chat_message_history import MySQLChatMessageHistory
from .engine import MySQLEngine
from .loader import MySQLDocumentSaver, MySQLLoader
from .version import __version__

__all__ = [
"MySQLChatMessageHistory",
"MySQLDocumentSaver",
"MySQLEngine",
"MySQLLoader",
__version__,
"__version__",
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.messages import BaseMessage, messages_from_dict

from langchain_google_cloud_sql_mysql.mysql_engine import MySQLEngine
from .engine import MySQLEngine


class MySQLChatMessageHistory(BaseChatMessageHistory):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from langchain_community.document_loaders.base import BaseLoader
from langchain_core.documents import Document

from langchain_google_cloud_sql_mysql.mysql_engine import MySQLEngine
from .engine import MySQLEngine

DEFAULT_CONTENT_COL = "page_content"
DEFAULT_METADATA_COL = "langchain_metadata"
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_doc2row.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.
from langchain_core.documents import Document

from langchain_google_cloud_sql_mysql.mysql_loader import (
from langchain_google_cloud_sql_mysql.loader import (
DEFAULT_CONTENT_COL,
DEFAULT_METADATA_COL,
_parse_doc_from_row,
Expand Down

0 comments on commit dcca171

Please sign in to comment.