devve1 commited on
Commit
2616c29
1 Parent(s): 6a514da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -108,12 +108,14 @@ def query_hybrid_search(query: str, client: QdrantClient, collection_name: str,
108
 
109
  @outlines.prompt
110
  def build_initial_prompt(query: str):
111
- """Decide whether the following query is a 'Domain-Specific Question' or a 'General Question.'
112
 
113
- -A 'Domain-Specific Question' requires knowledge or familiarity with a particular field, niche, or specialized area of interest (e.g., medicine, technology, law, specific video games, literature, etc.).
114
- -A 'General Question' can be answered without specialized knowledge by a broad audience and is not tied to any specific domain of expertise.
115
 
116
  Query: {{ query }}
 
 
117
  """
118
 
119
  @outlines.prompt
 
108
 
109
  @outlines.prompt
110
  def build_initial_prompt(query: str):
111
+ """Determine whether the following query is a 'Domain-Specific Question' or a 'General Question.'
112
 
113
+ A 'Domain-Specific Question' requires knowledge or familiarity with a particular field, niche, or specialized area of interest, including specific video games, movies, books, academic disciplines, or professional fields.
114
+ A 'General Question' can be answered by a broad audience without requiring specific knowledge about a particular topic, franchise, or specialized interest.
115
 
116
  Query: {{ query }}
117
+
118
+ Choose one: 'Domain-Specific Question' or 'General Question'
119
  """
120
 
121
  @outlines.prompt