diff --git a/05-assistive-chatbot/chatbot/ingest/text_splitter.py b/05-assistive-chatbot/chatbot/ingest/text_splitter.py index 2770e4b..59bb220 100644 --- a/05-assistive-chatbot/chatbot/ingest/text_splitter.py +++ b/05-assistive-chatbot/chatbot/ingest/text_splitter.py @@ -1,9 +1,7 @@ import logging from langchain.docstore.document import Document -from langchain_text_splitters import (NLTKTextSplitter, - RecursiveCharacterTextSplitter, - SpacyTextSplitter) +from langchain_text_splitters import NLTKTextSplitter, RecursiveCharacterTextSplitter, SpacyTextSplitter logger = logging.getLogger(__name__) diff --git a/05-assistive-chatbot/ingest-guru-cards.py b/05-assistive-chatbot/ingest-guru-cards.py index cf00870..3a26d96 100755 --- a/05-assistive-chatbot/ingest-guru-cards.py +++ b/05-assistive-chatbot/ingest-guru-cards.py @@ -5,8 +5,7 @@ from typing import Callable import dotenv -from langchain_community.embeddings import (HuggingFaceEmbeddings, - SentenceTransformerEmbeddings) +from langchain_community.embeddings import HuggingFaceEmbeddings, SentenceTransformerEmbeddings from langchain_community.vectorstores import Chroma import chatbot diff --git a/05-assistive-chatbot/pyproject.toml b/05-assistive-chatbot/pyproject.toml index 6dbd43f..d831819 100644 --- a/05-assistive-chatbot/pyproject.toml +++ b/05-assistive-chatbot/pyproject.toml @@ -1,2 +1,5 @@ [tool.ruff] line-length = 120 + +[tool.isort] +line_length = 120