Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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 |
-
"""
|
112 |
|
113 |
-
|
114 |
-
|
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
|