Machine Learning, Programming, Ml System Design, Data Science, Artificial Intelligence.
self.template.create_template(enable_rag=enable_rag) prompt_template_variables = { "question": query, } if enable_rag is True: retriever = VectorRetriever(query=query) hits = retriever.retrieve_top_k( k=settings.TOP_K, to_expand_to_n_queries=settings.EXPAND_N_QUERY ) context = retriever.rerank(