Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -104,14 +104,6 @@ def query_hybrid_search(query: str, client: QdrantClient, collection_name: str,
|
|
104 |
with_payload=True,
|
105 |
limit=3
|
106 |
)
|
107 |
-
|
108 |
-
@outlines.prompt
|
109 |
-
def build_reWooAct_prompt(question):
|
110 |
-
"""
|
111 |
-
Solve the following task or problem. To solve the problem, we have made step-by-step Plan with corresponding Action.
|
112 |
-
|
113 |
-
Plan: Determine if you can resolve the
|
114 |
-
"""
|
115 |
|
116 |
@outlines.prompt
|
117 |
def build_initial_prompt(query: str):
|
@@ -698,16 +690,16 @@ if __name__ == '__main__':
|
|
698 |
)
|
699 |
|
700 |
@outlines.prompt
|
701 |
-
def build_prompt_conv():
|
702 |
"""Summarize in one single sentence what is the subject of the conversation and what is the user talking about.
|
703 |
|
704 |
-
Subject : {{
|
705 |
"""
|
706 |
|
707 |
def generate_conv_title(llm):
|
708 |
if st.session_state.chat_id == 'New Conversation':
|
709 |
gen_conv = outlines.generate.text(llm)
|
710 |
-
prompt = build_prompt_conv()
|
711 |
output = gen_conv(
|
712 |
prompt,
|
713 |
max_tokens=15,
|
|
|
104 |
with_payload=True,
|
105 |
limit=3
|
106 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
@outlines.prompt
|
109 |
def build_initial_prompt(query: str):
|
|
|
690 |
)
|
691 |
|
692 |
@outlines.prompt
|
693 |
+
def build_prompt_conv(user_input):
|
694 |
"""Summarize in one single sentence what is the subject of the conversation and what is the user talking about.
|
695 |
|
696 |
+
Subject : {{ user_input }}
|
697 |
"""
|
698 |
|
699 |
def generate_conv_title(llm):
|
700 |
if st.session_state.chat_id == 'New Conversation':
|
701 |
gen_conv = outlines.generate.text(llm)
|
702 |
+
prompt = build_prompt_conv(st.session_state.user_input)
|
703 |
output = gen_conv(
|
704 |
prompt,
|
705 |
max_tokens=15,
|