Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
techleadhd committed Jun 25, 2023
1 parent 6e2ce1b commit 7c02777
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
vectorstore = Chroma(persist_directory="persist", embedding_function=OpenAIEmbeddings())
index = VectorStoreIndexWrapper(vectorstore=vectorstore)
else:
#loader = TextLoader("data/data.txt") # Use this line if you only need data.txt
loader = DirectoryLoader("data/")
if PERSIST:
index = VectorstoreIndexCreator(vectorstore_kwargs={"persist_directory":"persist"}).from_loaders([loader])
Expand Down

0 comments on commit 7c02777

Please sign in to comment.