Machine Learning, Programming, Ml System Design, Data Science, Artificial Intelligence.
hits=hits, keep_top_k=settings.KEEP_TOP_K ) prompt_template_variables["context"] = context prompt = prompt_template.format(question=query, context=context) else: prompt = prompt_template.format(question=query) input_ = pd.DataFrame([{"instruction": prompt}]).to_json() response: list[dict] =