bstraehle commited on
Commit
f2edd1d
1 Parent(s): 31b16dc

Update rag_llamaindex.py

Browse files
Files changed (1) hide show
  1. rag_llamaindex.py +2 -2
rag_llamaindex.py CHANGED
@@ -124,11 +124,11 @@ class LlamaIndexRAG(BaseRAG):
124
  text_qa_template = PromptTemplate(os.environ["LLAMAINDEX_TEMPLATE"]),
125
  service_context = service_context,
126
  #max_top_k = config["k"], #3631 token
127
- similarity_top_k = config["k"],
128
  #top_k = config["k"] #3631 token
129
  )
130
 
131
- completion = query_engine.query(prompt)
132
  callback = self.get_callback(
133
  service_context.callback_manager.handlers[0])
134
 
 
124
  text_qa_template = PromptTemplate(os.environ["LLAMAINDEX_TEMPLATE"]),
125
  service_context = service_context,
126
  #max_top_k = config["k"], #3631 token
127
+ #similarity_top_k = config["k"], #5315 token
128
  #top_k = config["k"] #3631 token
129
  )
130
 
131
+ completion = query_engine.query(prompt, similarity_top_k = config["k"])
132
  callback = self.get_callback(
133
  service_context.callback_manager.handlers[0])
134