Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ token=""
|
|
16 |
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
17 |
emb = "sentence-transformers/all-mpnet-base-v2"
|
18 |
hf = HuggingFaceEmbeddings(model_name=emb)
|
19 |
-
db = Chroma(persist_directory="./chroma_langchain_db",HuggingFaceEmbeddings(model_name=emb))
|
20 |
#db.persist()
|
21 |
# Load the document, split it into chunks, embed each chunk and load it into the vector store.
|
22 |
#raw_documents = TextLoader('state_of_the_union.txt').load()
|
|
|
16 |
repo_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
17 |
emb = "sentence-transformers/all-mpnet-base-v2"
|
18 |
hf = HuggingFaceEmbeddings(model_name=emb)
|
19 |
+
db = Chroma(persist_directory="./chroma_langchain_db",embedding_function=HuggingFaceEmbeddings(model_name=emb))
|
20 |
#db.persist()
|
21 |
# Load the document, split it into chunks, embed each chunk and load it into the vector store.
|
22 |
#raw_documents = TextLoader('state_of_the_union.txt').load()
|