Merge branch 'main' of https://gitlab.com/brausjonas/datenbanken-llm
This commit is contained in:
@@ -82,7 +82,10 @@ def insert_data_mongo(id, filepath,pChunk):
|
|||||||
'filepath': filepath,
|
'filepath': filepath,
|
||||||
'chunk_content': pChunk,
|
'chunk_content': pChunk,
|
||||||
}
|
}
|
||||||
collection.insert_one(dokument)
|
result = collection.insert_one(dokument)
|
||||||
|
|
||||||
|
if result.acknowledged:
|
||||||
|
collection.create_index("doc_id")
|
||||||
|
|
||||||
def reload_files():
|
def reload_files():
|
||||||
# path = input("Please provider path to folder: ")
|
# path = input("Please provider path to folder: ")
|
||||||
|
|||||||
Reference in New Issue
Block a user