mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 03:07:42 +00:00
refine class design and inheritance first version code (#41)
* refine class design and inheritance first version code * fix all typos --------- Co-authored-by: xuyang1 <xuyang1@microsoft.com>
This commit is contained in:
@@ -33,8 +33,7 @@ class EvolvableSubjects:
|
||||
return copy.deepcopy(self)
|
||||
|
||||
|
||||
class QlibEvolvableSubjects(EvolvableSubjects):
|
||||
...
|
||||
class QlibEvolvableSubjects(EvolvableSubjects): ...
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -42,7 +41,7 @@ class EvoStep:
|
||||
"""At a specific step,
|
||||
based on
|
||||
- previous trace
|
||||
- newly RAG kownledge `QueriedKnowledge`
|
||||
- newly RAG knowledge `QueriedKnowledge`
|
||||
|
||||
the EvolvableSubjects is evolved to a new one `EvolvableSubjects`.
|
||||
|
||||
@@ -73,7 +72,7 @@ class EvolvingStrategy(ABC):
|
||||
|
||||
|
||||
class RAGStrategy(ABC):
|
||||
"""Retrival Augmentation Generation Strategy"""
|
||||
"""Retrieval Augmentation Generation Strategy"""
|
||||
|
||||
def __init__(self, knowledgebase: KnowledgeBase) -> None:
|
||||
self.knowledgebase = knowledgebase
|
||||
|
||||
Reference in New Issue
Block a user