Skip to content

Commit 61e1980

Browse files
committed
Adjust formatting in PickerBot.py
Signed-off-by: Benedykt Bela <[email protected]>
1 parent 1454990 commit 61e1980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MLOps_Professional/lab8/sample/PickerBot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def create_vectorstore(self, chunk_size: int = 500, overlap: int = 25):
4646
text_splitter = RecursiveCharacterTextSplitter(
4747
chunk_size=chunk_size, chunk_overlap=overlap)
4848
# Embed the document and store into chroma DB
49-
self.index = VectorstoreIndexCreator(embedding=HuggingFaceEmbeddings(
50-
), text_splitter=text_splitter).from_loaders([loader])
49+
self.index = VectorstoreIndexCreator(
50+
embedding=HuggingFaceEmbeddings(), text_splitter=text_splitter).from_loaders([loader])
5151

5252
def inference(self, user_input: str, context_verbosity: bool = False, top_k: int = 2):
5353
# perform similarity search and retrieve the context from our documents

0 commit comments

Comments
 (0)