Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Mar 12, 2024
1 parent e86aaa3 commit 5994a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion faststream_gen/_components/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _save_embeddings_db(doc_chunks: List[Document], db_path: Path) -> None:
doc_chunks: A list of documents where each document represents a chunk.
db_path: Path to save the FAISS db.
"""
db = FAISS.from_documents(doc_chunks, OpenAIEmbeddings())
db = FAISS.from_documents(doc_chunks, OpenAIEmbeddings()) # type: ignore
db.save_local(str(db_path))

# %% ../../nbs/Embeddings_CLI.ipynb 9
Expand Down
2 changes: 1 addition & 1 deletion nbs/Embeddings_CLI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
" doc_chunks: A list of documents where each document represents a chunk.\n",
" db_path: Path to save the FAISS db.\n",
" \"\"\"\n",
" db = FAISS.from_documents(doc_chunks, OpenAIEmbeddings())\n",
" db = FAISS.from_documents(doc_chunks, OpenAIEmbeddings()) # type: ignore\n",
" db.save_local(str(db_path))"
]
},
Expand Down

0 comments on commit 5994a3f

Please sign in to comment.