mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
fix for content hashing
This commit is contained in:
parent
0dbcf56e33
commit
0365febc8c
1 changed files with 1 additions and 2 deletions
|
@ -268,7 +268,6 @@ async def add_received_markdown_file_document(
|
||||||
document_type=DocumentType.FILE,
|
document_type=DocumentType.FILE,
|
||||||
document_metadata={
|
document_metadata={
|
||||||
"FILE_NAME": file_name,
|
"FILE_NAME": file_name,
|
||||||
"SAVED_AT": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
|
||||||
},
|
},
|
||||||
content=summary_content,
|
content=summary_content,
|
||||||
embedding=summary_embedding,
|
embedding=summary_embedding,
|
||||||
|
@ -336,7 +335,7 @@ async def add_received_file_document_using_unstructured(
|
||||||
document_type=DocumentType.FILE,
|
document_type=DocumentType.FILE,
|
||||||
document_metadata={
|
document_metadata={
|
||||||
"FILE_NAME": file_name,
|
"FILE_NAME": file_name,
|
||||||
"SAVED_AT": datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
|
"ETL_SERVICE": "UNSTRUCTURED",
|
||||||
},
|
},
|
||||||
content=summary_content,
|
content=summary_content,
|
||||||
embedding=summary_embedding,
|
embedding=summary_embedding,
|
||||||
|
|
Loading…
Add table
Reference in a new issue