Skip to content

Commit

Permalink
change Intent decomposition method to reduce latency (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
IANTHEREAL authored Jul 24, 2024
1 parent 2a5fd34 commit e861176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/rag/knowledge_graph/intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class DecomposeQueryModule(dspy.Module):
def __init__(self, dspy_lm: dspy.LM):
super().__init__()
self.dspy_lm = dspy_lm
self.prog = TypedChainOfThought(DecomposeQuery)
self.prog = TypedPredictor(DecomposeQuery)

def forward(self, query):
with dspy.settings.context(lm=self.dspy_lm):
Expand Down

0 comments on commit e861176

Please sign in to comment.