clui commited on
Commit
908ea3b
verified
1 Parent(s): 0a8a958

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -19,14 +19,14 @@ chroma_collection = db.get_or_create_collection("pomoc_ukrainie")
19
  vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
20
  embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5", device="cpu")
21
 
22
- # Utw贸rz pipeline do przetwarzania dokument贸w
23
- # pipeline = IngestionPipeline(
24
- # transformations=[
25
- # SentenceSplitter(),
26
- # embed_model,
27
- # ],
28
- # vector_store=vector_store
29
- # )
30
 
31
  # Utw贸rz indeks
32
  index = VectorStoreIndex.from_vector_store(vector_store, embed_model=embed_model)
 
19
  vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
20
  embed_model = HuggingFaceEmbedding(model_name="BAAI/bge-small-en-v1.5", device="cpu")
21
 
22
+ Utw贸rz pipeline do przetwarzania dokument贸w
23
+ pipeline = IngestionPipeline(
24
+ transformations=[
25
+ SentenceSplitter(),
26
+ embed_model,
27
+ ],
28
+ vector_store=vector_store
29
+ )
30
 
31
  # Utw贸rz indeks
32
  index = VectorStoreIndex.from_vector_store(vector_store, embed_model=embed_model)