bstraehle commited on
Commit
33e4478
1 Parent(s): 90fa2ef

Update rag_llamaindex.py

Browse files
Files changed (1) hide show
  1. rag_llamaindex.py +2 -1
rag_llamaindex.py CHANGED
@@ -123,7 +123,8 @@ 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
  )
128
 
129
  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
+ #similarity_top_k = config["k"]
127
+ top_k = config["k"]
128
  )
129
 
130
  completion = query_engine.query(prompt)