bupa1018 commited on
Commit
efd88e6
·
1 Parent(s): cf0c15b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -352,13 +352,13 @@ def rag_workflow(query):
352
 
353
 
354
  # Assuming kadi_apy_library_docs is a list of Document objects
355
- for idx, doc in enumerate(kadi_apy_library_docs, start=1):
356
- # Access the "source" metadata
357
- source_value = doc.metadata.get("source", "No source found")
358
- # Print the formatted output
359
- print(f"=== Document {idx} ===")
360
- print(f"Source: {source_value}")
361
- print("======================\n")
362
 
363
 
364
  prompt = f"""You are an expert python developer. You are assisting in generating code for users who wants to make use of "kadi-apy", an API library.
 
352
 
353
 
354
  # Assuming kadi_apy_library_docs is a list of Document objects
355
+
356
+ print("HERE WE GHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO")
357
+ print(-----------------------------------------------------------------------------)
358
+ for doc in kadi_apy_library_docs:
359
+ print(doc.metadata.get("source", "Unknown Type")
360
+ print(____________________________________________________________________________________)
361
+
362
 
363
 
364
  prompt = f"""You are an expert python developer. You are assisting in generating code for users who wants to make use of "kadi-apy", an API library.