Spaces:
Build error
Build error
Update rag_llamaindex.py
Browse files- rag_llamaindex.py +2 -3
rag_llamaindex.py
CHANGED
@@ -106,9 +106,8 @@ class LlamaIndexRAG(BaseRAG):
|
|
106 |
|
107 |
###
|
108 |
prompt_template = LangchainPromptTemplate(
|
109 |
-
|
110 |
-
|
111 |
-
"question": "question"},
|
112 |
)
|
113 |
|
114 |
query_engine.update_prompts(
|
|
|
106 |
|
107 |
###
|
108 |
prompt_template = LangchainPromptTemplate(
|
109 |
+
os.environ["RAG_TEMPLATE"],
|
110 |
+
template_vars = {"context", "question"},
|
|
|
111 |
)
|
112 |
|
113 |
query_engine.update_prompts(
|