bstraehle commited on
Commit
5c1d347
·
1 Parent(s): 202d100

Update rag_llamaindex.py

Browse files
Files changed (1) hide show
  1. rag_llamaindex.py +3 -2
rag_llamaindex.py CHANGED
@@ -123,8 +123,9 @@ class LlamaIndexRAG(BaseRAG):
123
  query_engine = index.as_query_engine(
124
  text_qa_template = PromptTemplate(os.environ["LLAMAINDEX_TEMPLATE"]),
125
  service_context = service_context,
126
- #similarity_top_k = config["k"]
127
- max_top_k = config["k"]
 
128
  )
129
 
130
  completion = query_engine.query(prompt)
 
123
  query_engine = index.as_query_engine(
124
  text_qa_template = PromptTemplate(os.environ["LLAMAINDEX_TEMPLATE"]),
125
  service_context = service_context,
126
+ max_top_k = config["k"],
127
+ similarity_top_k = config["k"],
128
+ top_k = config["k"]
129
  )
130
 
131
  completion = query_engine.query(prompt)