File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -87,14 +87,14 @@ def insert_metadata_ragflow(
8787
8888
8989def main ():
90- directory = "/app/data_ingestion/faqs_output_md"
91- db_name = "faq"
92- # directory = "/app/data/documents"
93- # db_name = "examination_regulations"
90+ # directory = "/app/data_ingestion/faqs_output_md"
91+ # db_name = "faq"
92+ directory = "/app/data/documents"
93+ db_name = "examination_regulations"
9494
9595 upload_files_ragflow (directory , db_name )
9696 # print(f"Files from {directory} uploaded to RAGFlow database '{db_name}'.")
97- insert_metadata_ragflow (directory , db_name )
97+ # insert_metadata_ragflow(directory, db_name)
9898 print ("Files updated" )
9999
100100
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ def url_reference_askuos(self) -> str:
4646 @property
4747 def url_reference_web_uos (self ):
4848 """Extract metadata from markdown content."""
49-
49+ url = ""
5050 # Decode bytes to string if needed
5151
5252 match = re .search (r'url:\s*"([^"]+)"' , self .content )
5353 if match :
5454 url = match .group (1 )
5555
56- return url or None
56+ return url
5757
5858 @property
5959 def page (self ) -> int :
You can’t perform that action at this time.
0 commit comments