Closed K-Schubert closed 3 weeks ago
Description
Dynamically set prompt for clientLLM and retrievers.
clientLLM
Implement MessageBuilder class in rag.messages which builds RAG prompts and Retriever LLM prompts.
MessageBuilder
RAGProcessor,
build_chat_prompt
build_query_rewriting_prompt
build_contextual_compression_prompt
Description
Dynamically set prompt for
clientLLM
and retrievers.Implement
MessageBuilder
class in rag.messages which builds RAG prompts and Retriever LLM prompts.clientLLM
RAGProcessor,
the process methods receives aMessageBuilder
instance as arg. Runs thebuild_chat_prompt
method. RetrieversMessageBuilder
instance as arg. Runs thebuild_query_rewriting_prompt
method.MessageBuilder
instance as arg. Runs thebuild_contextual_compression_prompt
method.