Skip to content

Commit

Permalink
Fix incorrect path initialization in cookbook_dir
Browse files Browse the repository at this point in the history
- Replace '__file__' string with __file__ identifier to correctly initialize Path object.
- This change ensures that the Path object uses the actual file location rather than the string '__file__'.
  • Loading branch information
yyxxrr739 committed Jul 18, 2024
1 parent c71cb74 commit f2a10f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/assistants/langchain_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from langchain.text_splitter import CharacterTextSplitter
from langchain.vectorstores import Chroma

cookbook_dir = Path("__file__").parent
cookbook_dir = Path(__file__).parent
chroma_db_dir = cookbook_dir.joinpath("storage/chroma_db")


Expand Down

0 comments on commit f2a10f7

Please sign in to comment.