Spaces:
Runtime error
Runtime error
fix for vector_index_strategy
Browse files
app.py
CHANGED
@@ -218,7 +218,7 @@ vector_store_strategy = ChromaVectorStore(chroma_collection=chroma_collection)
|
|
218 |
storage_context_strategy = StorageContext.from_defaults(vector_store=vector_store_strategy)
|
219 |
vector_index_strategy = VectorStoreIndex([], storage_context=storage_context_strategy, service_context=service_context)
|
220 |
|
221 |
-
vector_index_strategy.insert_nodes(
|
222 |
|
223 |
# setting up metadata
|
224 |
top_k = 1
|
|
|
218 |
storage_context_strategy = StorageContext.from_defaults(vector_store=vector_store_strategy)
|
219 |
vector_index_strategy = VectorStoreIndex([], storage_context=storage_context_strategy, service_context=service_context)
|
220 |
|
221 |
+
vector_index_strategy.insert_nodes([strategy1, strategy2, strategy3, strategy4, strategy5])
|
222 |
|
223 |
# setting up metadata
|
224 |
top_k = 1
|