refactor: folder restructure for agent based workflow

This commit is contained in:
Siddhant Rai
2025-02-25 09:03:45 +05:30
parent 6fed84958e
commit 1f0b779c64
12 changed files with 38 additions and 35 deletions

View File

@@ -51,10 +51,12 @@ class ClassicRAG(BaseRetriever):
Rephrase the following user question to be a standalone search query
that captures all relevant context from the conversation:
{self.original_question}
"""
messages = [{"role": "system", "content": prompt}]
messages = [
{"role": "system", "content": prompt},
{"role": "user", "content": self.original_question},
]
try:
rephrased_query = self.llm.gen(model=self.gpt_model, messages=messages)