Spaces:
Runtime error
Runtime error
Cascade Bot
commited on
Commit
·
e2e5ce2
1
Parent(s):
fda983b
fix: update venture type strategy imports
Browse files- Removed non-existent VentureTypeStrategy import
- Added specific venture type strategy imports from venture_types.py
- Added new venture type strategy enum values
- Updated strategy initialization and weights in UnifiedReasoningEngine
- reasoning/__init__.py +20 -0
- reasoning/unified_engine.py +35 -4
reasoning/__init__.py
CHANGED
@@ -50,6 +50,16 @@ from .market_analysis import MarketAnalysisStrategy
|
|
50 |
from .portfolio_optimization import PortfolioOptimizationStrategy
|
51 |
from .venture_strategies import VentureStrategy
|
52 |
from .monetization import MonetizationStrategy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
# Model integrations
|
55 |
from .groq_strategy import GroqStrategy
|
@@ -84,6 +94,16 @@ __all__ = [
|
|
84 |
'VentureStrategy',
|
85 |
'MonetizationStrategy',
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
# Model integrations
|
88 |
'GroqStrategy',
|
89 |
|
|
|
50 |
from .portfolio_optimization import PortfolioOptimizationStrategy
|
51 |
from .venture_strategies import VentureStrategy
|
52 |
from .monetization import MonetizationStrategy
|
53 |
+
from .venture_types import (
|
54 |
+
AIInfrastructureStrategy,
|
55 |
+
AIConsultingStrategy,
|
56 |
+
AIProductStrategy,
|
57 |
+
FinTechStrategy,
|
58 |
+
HealthTechStrategy,
|
59 |
+
EdTechStrategy,
|
60 |
+
BlockchainStrategy,
|
61 |
+
AIMarketplaceStrategy
|
62 |
+
)
|
63 |
|
64 |
# Model integrations
|
65 |
from .groq_strategy import GroqStrategy
|
|
|
94 |
'VentureStrategy',
|
95 |
'MonetizationStrategy',
|
96 |
|
97 |
+
# Venture type strategies
|
98 |
+
'AIInfrastructureStrategy',
|
99 |
+
'AIConsultingStrategy',
|
100 |
+
'AIProductStrategy',
|
101 |
+
'FinTechStrategy',
|
102 |
+
'HealthTechStrategy',
|
103 |
+
'EdTechStrategy',
|
104 |
+
'BlockchainStrategy',
|
105 |
+
'AIMarketplaceStrategy',
|
106 |
+
|
107 |
# Model integrations
|
108 |
'GroqStrategy',
|
109 |
|
reasoning/unified_engine.py
CHANGED
@@ -34,7 +34,16 @@ from .neurosymbolic import NeurosymbolicStrategy
|
|
34 |
from .portfolio_optimization import PortfolioOptimizationStrategy
|
35 |
from .specialized import SpecializedStrategy
|
36 |
from .venture_strategies import VentureStrategy
|
37 |
-
from .venture_types import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
class StrategyType(str, Enum):
|
40 |
"""Types of reasoning strategies."""
|
@@ -59,6 +68,14 @@ class StrategyType(str, Enum):
|
|
59 |
SPECIALIZED = "specialized"
|
60 |
VENTURE = "venture"
|
61 |
VENTURE_TYPE = "venture_type"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
|
63 |
@dataclass
|
64 |
class UnifiedResult:
|
@@ -120,7 +137,14 @@ class UnifiedReasoningEngine:
|
|
120 |
StrategyType.PORTFOLIO_OPTIMIZATION: PortfolioOptimizationStrategy(),
|
121 |
StrategyType.SPECIALIZED: SpecializedStrategy(),
|
122 |
StrategyType.VENTURE: VentureStrategy(),
|
123 |
-
StrategyType.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
125 |
|
126 |
# Strategy weights with Groq as primary
|
@@ -151,10 +175,17 @@ class UnifiedReasoningEngine:
|
|
151 |
StrategyType.MULTIMODAL: 1.0,
|
152 |
StrategyType.NEUROSYMBOLIC: 1.0,
|
153 |
StrategyType.SPECIALIZED: 1.0,
|
154 |
-
StrategyType.VENTURE_TYPE: 1.0,
|
155 |
StrategyType.RECURSIVE: 1.0,
|
156 |
StrategyType.ANALOGICAL: 1.0,
|
157 |
-
StrategyType.LOCAL_LLM: 1.0 # Reduced weight since using Groq
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
|
160 |
# Performance tracking
|
|
|
34 |
from .portfolio_optimization import PortfolioOptimizationStrategy
|
35 |
from .specialized import SpecializedStrategy
|
36 |
from .venture_strategies import VentureStrategy
|
37 |
+
from .venture_types import (
|
38 |
+
AIInfrastructureStrategy,
|
39 |
+
AIConsultingStrategy,
|
40 |
+
AIProductStrategy,
|
41 |
+
FinTechStrategy,
|
42 |
+
HealthTechStrategy,
|
43 |
+
EdTechStrategy,
|
44 |
+
BlockchainStrategy,
|
45 |
+
AIMarketplaceStrategy
|
46 |
+
)
|
47 |
|
48 |
class StrategyType(str, Enum):
|
49 |
"""Types of reasoning strategies."""
|
|
|
68 |
SPECIALIZED = "specialized"
|
69 |
VENTURE = "venture"
|
70 |
VENTURE_TYPE = "venture_type"
|
71 |
+
AI_INFRASTRUCTURE = "ai_infrastructure"
|
72 |
+
AI_CONSULTING = "ai_consulting"
|
73 |
+
AI_PRODUCT = "ai_product"
|
74 |
+
FINTECH = "fintech"
|
75 |
+
HEALTHTECH = "healthtech"
|
76 |
+
EDTECH = "edtech"
|
77 |
+
BLOCKCHAIN = "blockchain"
|
78 |
+
AI_MARKETPLACE = "ai_marketplace"
|
79 |
|
80 |
@dataclass
|
81 |
class UnifiedResult:
|
|
|
137 |
StrategyType.PORTFOLIO_OPTIMIZATION: PortfolioOptimizationStrategy(),
|
138 |
StrategyType.SPECIALIZED: SpecializedStrategy(),
|
139 |
StrategyType.VENTURE: VentureStrategy(),
|
140 |
+
StrategyType.AI_INFRASTRUCTURE: AIInfrastructureStrategy(),
|
141 |
+
StrategyType.AI_CONSULTING: AIConsultingStrategy(),
|
142 |
+
StrategyType.AI_PRODUCT: AIProductStrategy(),
|
143 |
+
StrategyType.FINTECH: FinTechStrategy(),
|
144 |
+
StrategyType.HEALTHTECH: HealthTechStrategy(),
|
145 |
+
StrategyType.EDTECH: EdTechStrategy(),
|
146 |
+
StrategyType.BLOCKCHAIN: BlockchainStrategy(),
|
147 |
+
StrategyType.AI_MARKETPLACE: AIMarketplaceStrategy()
|
148 |
}
|
149 |
|
150 |
# Strategy weights with Groq as primary
|
|
|
175 |
StrategyType.MULTIMODAL: 1.0,
|
176 |
StrategyType.NEUROSYMBOLIC: 1.0,
|
177 |
StrategyType.SPECIALIZED: 1.0,
|
|
|
178 |
StrategyType.RECURSIVE: 1.0,
|
179 |
StrategyType.ANALOGICAL: 1.0,
|
180 |
+
StrategyType.LOCAL_LLM: 1.0, # Reduced weight since using Groq
|
181 |
+
StrategyType.AI_INFRASTRUCTURE: 1.0,
|
182 |
+
StrategyType.AI_CONSULTING: 1.0,
|
183 |
+
StrategyType.AI_PRODUCT: 1.0,
|
184 |
+
StrategyType.FINTECH: 1.0,
|
185 |
+
StrategyType.HEALTHTECH: 1.0,
|
186 |
+
StrategyType.EDTECH: 1.0,
|
187 |
+
StrategyType.BLOCKCHAIN: 1.0,
|
188 |
+
StrategyType.AI_MARKETPLACE: 1.0
|
189 |
}
|
190 |
|
191 |
# Performance tracking
|