bupa1018 commited on
Commit
9c2170d
·
1 Parent(s): 9efd22f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -344,29 +344,11 @@ def rag_workflow(query):
344
  doc_context = format_kadi_api_doc_context(kadi_apy_docs)
345
  print(doc_context)
346
  code_context = format_kadi_apy_library_context(kadi_apy_library_docs)
347
- print(doc_context)
348
-
349
- print("HEREERERERERE DOC CONTEXT:", doc_context)
350
- print("HWERWFEWE CODE CONTEXT", code_context)
351
-
352
-
353
-
354
- # print("Document Chunks:\n")
355
- # print("\n\n".join(["="*80 + "\n" + doc_chunk for doc_chunk, _ in retrieved_doc_chunks]))
356
- # print("\nDocument References:\n")
357
- # print(doc_references)
358
-
359
- # print("\n" + "="*80 + "\n") # Separator between doc and code
360
 
361
- # print("Code Chunks:\n")
362
- # print("\n\n".join(["="*80 + "\n" + code_chunk for code_chunk, _ in retrieved_code_chunks]))
363
- # print("\nCode References:\n")
364
- # print(code_references)
365
 
366
 
367
- # print(f"Context for the query:\n{doc_context}\n")
368
 
369
- # print(f"References for the query:\n{references}\n")
370
 
371
  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.
372
  "Doc-context:" provides you with information how to use this API library by givnig code examples and code documentation.
 
344
  doc_context = format_kadi_api_doc_context(kadi_apy_docs)
345
  print(doc_context)
346
  code_context = format_kadi_apy_library_context(kadi_apy_library_docs)
347
+ print("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:",code_context)
 
 
 
 
 
 
 
 
 
 
 
 
348
 
 
 
 
 
349
 
350
 
 
351
 
 
352
 
353
  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.
354
  "Doc-context:" provides you with information how to use this API library by givnig code examples and code documentation.