Commit
·
7b5aef6
1
Parent(s):
65a23ce
add files
Browse files
data.py
CHANGED
|
@@ -19,9 +19,6 @@ def prepare_data(db_path, llm_path):
|
|
| 19 |
task="text-generation",
|
| 20 |
model_kwargs={"temperature" : 0, "max_length" : 500})
|
| 21 |
|
| 22 |
-
|
| 23 |
-
llm.save_pretrained(llm_path, from_pt=True)
|
| 24 |
-
|
| 25 |
vectordb = Chroma.from_documents(documents=documents, embedding=embeddings, persist_directory=db_path)
|
| 26 |
vectordb.persist()
|
| 27 |
|
|
|
|
| 19 |
task="text-generation",
|
| 20 |
model_kwargs={"temperature" : 0, "max_length" : 500})
|
| 21 |
|
|
|
|
|
|
|
|
|
|
| 22 |
vectordb = Chroma.from_documents(documents=documents, embedding=embeddings, persist_directory=db_path)
|
| 23 |
vectordb.persist()
|
| 24 |
|