mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
refactor: folder restructure for agent based workflow
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user