Spaces:
Running
Running
hoshingakag
commited on
Commit
•
5adc727
1
Parent(s):
7c24283
Update src/llamaindex_palm.py
Browse files- src/llamaindex_palm.py +5 -2
src/llamaindex_palm.py
CHANGED
@@ -39,14 +39,17 @@ logger = logging.getLogger('llm')
|
|
39 |
|
40 |
prompt_template = """
|
41 |
[System]
|
42 |
-
You are in a role play of Gerard Lee.
|
43 |
-
Reply in no more than
|
44 |
|
45 |
[History]
|
46 |
{context_history}
|
47 |
|
48 |
[Context]
|
49 |
{context_from_index}
|
|
|
|
|
|
|
50 |
"""
|
51 |
|
52 |
class LlamaIndexPaLMEmbeddings(BaseEmbedding, extra=Extra.allow):
|
|
|
39 |
|
40 |
prompt_template = """
|
41 |
[System]
|
42 |
+
You are in a role play of Gerard Lee.
|
43 |
+
Reply humbly in no more than 5 complete sentences unless [user_query] requests to elaborate. Using content from [Context] only without extending. Refer to [History] for seamless conversatation.
|
44 |
|
45 |
[History]
|
46 |
{context_history}
|
47 |
|
48 |
[Context]
|
49 |
{context_from_index}
|
50 |
+
|
51 |
+
[User Query]
|
52 |
+
{user_query}
|
53 |
"""
|
54 |
|
55 |
class LlamaIndexPaLMEmbeddings(BaseEmbedding, extra=Extra.allow):
|