Update app.py
Browse files
app.py
CHANGED
@@ -28,6 +28,12 @@ pipeline = IngestionPipeline(
|
|
28 |
vector_store=vector_store
|
29 |
)
|
30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
# Utw贸rz indeks
|
32 |
index = VectorStoreIndex.from_vector_store(vector_store, embed_model=embed_model)
|
33 |
|
|
|
28 |
vector_store=vector_store
|
29 |
)
|
30 |
|
31 |
+
nodes = await pipeline.arun(
|
32 |
+
documents=documents,
|
33 |
+
num_workers=4, # dopasuj do liczby rdzeni CPU
|
34 |
+
show_progress=True
|
35 |
+
)
|
36 |
+
|
37 |
# Utw贸rz indeks
|
38 |
index = VectorStoreIndex.from_vector_store(vector_store, embed_model=embed_model)
|
39 |
|