mirror of
				https://github.com/infiniflow/ragflow.git
				synced 2025-10-30 17:29:40 +00:00 
			
		
		
		
	Remove redundant param of rewrite component. (#4422)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
		
							parent
							
								
									b6c71c1e01
								
							
						
					
					
						commit
						bc681e2ee9
					
				| @ -29,7 +29,6 @@ class RewriteQuestionParam(GenerateParam): | ||||
|         super().__init__() | ||||
|         self.temperature = 0.9 | ||||
|         self.prompt = "" | ||||
|         self.loop = 1 | ||||
| 
 | ||||
|     def check(self): | ||||
|         super().check() | ||||
| @ -85,13 +84,6 @@ class RewriteQuestion(Generate, ABC): | ||||
|     component_name = "RewriteQuestion" | ||||
| 
 | ||||
|     def _run(self, history, **kwargs): | ||||
|         if not hasattr(self, "_loop"): | ||||
|             setattr(self, "_loop", 0) | ||||
|         if self._loop >= self._param.loop: | ||||
|             self._loop = 0 | ||||
|             raise Exception("Sorry! Nothing relevant found.") | ||||
|         self._loop += 1 | ||||
| 
 | ||||
|         hist = self._canvas.get_history(4) | ||||
|         conv = [] | ||||
|         for m in hist: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Kevin Hu
						Kevin Hu