bupa1018 commited on
Commit
b8c411b
·
1 Parent(s): eeb7cfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -326,7 +326,7 @@ def format_kadi_api_doc_context(docs):
326
 
327
  def rag_workflow(query):
328
 
329
- rewrite_prompt = f"""You are an intelligent assistant that helps users rewrite their queries.
330
  The vectorstore consists of the source code and documentation of a Python library, which enables users to
331
  programmatically interact with a REST-like API of a software system. The library methods have descriptive
332
  docstrings. Your task is to rewrite the query in a way that aligns with the language and structure of the
@@ -350,7 +350,7 @@ def rag_workflow(query):
350
  Based on these examples and guidelines, rewrite the following user query to align more effectively with the keywords used in the docstrings.
351
  Original query:
352
  {query}
353
- """
354
 
355
 
356
  rewritten_query_response = llm.invoke(rewrite_prompt)
 
326
 
327
  def rag_workflow(query):
328
 
329
+ rewrite_prompt = f"""You are an intelligent assistant that helps users rewrite their queries.
330
  The vectorstore consists of the source code and documentation of a Python library, which enables users to
331
  programmatically interact with a REST-like API of a software system. The library methods have descriptive
332
  docstrings. Your task is to rewrite the query in a way that aligns with the language and structure of the
 
350
  Based on these examples and guidelines, rewrite the following user query to align more effectively with the keywords used in the docstrings.
351
  Original query:
352
  {query}
353
+ """
354
 
355
 
356
  rewritten_query_response = llm.invoke(rewrite_prompt)