Spaces:
Sleeping
Sleeping
beryamosta
commited on
Update backend.py
Browse files- backend.py +4 -1
backend.py
CHANGED
@@ -115,19 +115,22 @@ description_docs = [Document(text=row['description'],metadata={"id_documents": r
|
|
115 |
content_docs = [Document(text=row['content'],metadata={"id_documents": row['hash']}) for index, row in df.iterrows()]
|
116 |
signataire_docs = [Document(text=row['Signataire'],metadata={"id_signataire": row['hash']}) for index, row in filter_signataire.iterrows()]
|
117 |
content_signataire = [Document(text=row['content'],metadata={"id_signataire": row['hash']}) for index, row in df.iterrows()]
|
118 |
-
|
119 |
index = VectorStoreIndex.from_documents(
|
120 |
description_docs,
|
121 |
show_progress = True
|
122 |
)
|
|
|
123 |
index_all = VectorStoreIndex.from_documents(
|
124 |
content_docs,
|
125 |
show_progress = True
|
126 |
)
|
|
|
127 |
index_signataire = VectorStoreIndex.from_documents(
|
128 |
signataire_docs,
|
129 |
show_progress = True
|
130 |
)
|
|
|
131 |
index_all_signataire = VectorStoreIndex.from_documents(
|
132 |
content_signataire,
|
133 |
show_progress = True
|
|
|
115 |
content_docs = [Document(text=row['content'],metadata={"id_documents": row['hash']}) for index, row in df.iterrows()]
|
116 |
signataire_docs = [Document(text=row['Signataire'],metadata={"id_signataire": row['hash']}) for index, row in filter_signataire.iterrows()]
|
117 |
content_signataire = [Document(text=row['content'],metadata={"id_signataire": row['hash']}) for index, row in df.iterrows()]
|
118 |
+
print(' VectorStore for : __ index __')
|
119 |
index = VectorStoreIndex.from_documents(
|
120 |
description_docs,
|
121 |
show_progress = True
|
122 |
)
|
123 |
+
print(' VectorStore for : __ index_all __')
|
124 |
index_all = VectorStoreIndex.from_documents(
|
125 |
content_docs,
|
126 |
show_progress = True
|
127 |
)
|
128 |
+
print(' VectorStore for : __ index_signataire __')
|
129 |
index_signataire = VectorStoreIndex.from_documents(
|
130 |
signataire_docs,
|
131 |
show_progress = True
|
132 |
)
|
133 |
+
print(' VectorStore for : __ index_allèsignataire __')
|
134 |
index_all_signataire = VectorStoreIndex.from_documents(
|
135 |
content_signataire,
|
136 |
show_progress = True
|