Spaces:
Runtime error
Runtime error
Update ingest.py to generate db only
Browse files
ingest.py
CHANGED
@@ -65,10 +65,12 @@ def ingest_data():
|
|
65 |
embeddings = OpenAIEmbeddings()
|
66 |
db = FAISS.from_documents(data, embeddings)
|
67 |
|
68 |
-
|
69 |
|
70 |
-
|
71 |
-
|
|
|
|
|
72 |
|
73 |
if __name__ == "__main__":
|
74 |
ingest_data()
|
|
|
65 |
embeddings = OpenAIEmbeddings()
|
66 |
db = FAISS.from_documents(data, embeddings)
|
67 |
|
68 |
+
return db
|
69 |
|
70 |
+
# # Save vectorstore
|
71 |
+
|
72 |
+
# with open("db.pkl", "wb") as f:
|
73 |
+
# pickle.dump(db, f)
|
74 |
|
75 |
if __name__ == "__main__":
|
76 |
ingest_data()
|