Spaces:
Runtime error
Runtime error
feat: add recommendation engine configuration and prompt builder modules
Browse files- src/recommendation_engine/__pycache__/chatbot_engine.cpython-313.pyc +0 -0
- src/recommendation_engine/__pycache__/full_project_generator.cpython-313.pyc +0 -0
- src/recommendation_engine/__pycache__/prompt_builder.cpython-313.pyc +0 -0
- src/recommendation_engine/config.py +1 -1
- src/recommendation_engine/prompt_builder.py +5 -1
src/recommendation_engine/__pycache__/chatbot_engine.cpython-313.pyc
CHANGED
|
Binary files a/src/recommendation_engine/__pycache__/chatbot_engine.cpython-313.pyc and b/src/recommendation_engine/__pycache__/chatbot_engine.cpython-313.pyc differ
|
|
|
src/recommendation_engine/__pycache__/full_project_generator.cpython-313.pyc
CHANGED
|
Binary files a/src/recommendation_engine/__pycache__/full_project_generator.cpython-313.pyc and b/src/recommendation_engine/__pycache__/full_project_generator.cpython-313.pyc differ
|
|
|
src/recommendation_engine/__pycache__/prompt_builder.cpython-313.pyc
CHANGED
|
Binary files a/src/recommendation_engine/__pycache__/prompt_builder.cpython-313.pyc and b/src/recommendation_engine/__pycache__/prompt_builder.cpython-313.pyc differ
|
|
|
src/recommendation_engine/config.py
CHANGED
|
@@ -34,7 +34,7 @@ INTENT_TEMPERATURE = float(os.getenv("INTENT_TEMPERATURE", 0.0))
|
|
| 34 |
IDEA_MAX_TOKENS = int(os.getenv("IDEA_MAX_TOKENS", 800))
|
| 35 |
FEATURE_MAX_TOKENS = int(os.getenv("FEATURE_MAX_TOKENS", 600))
|
| 36 |
CHAT_MAX_TOKENS = int(os.getenv("CHAT_MAX_TOKENS", 700))
|
| 37 |
-
INTENT_MAX_TOKENS = int(os.getenv("INTENT_MAX_TOKENS",
|
| 38 |
FULL_PROJECT_MAX_TOKENS = int(os.getenv("FULL_PROJECT_MAX_TOKENS", 2000))
|
| 39 |
|
| 40 |
TOP_P = float(os.getenv("TOP_P", 0.95))
|
|
|
|
| 34 |
IDEA_MAX_TOKENS = int(os.getenv("IDEA_MAX_TOKENS", 800))
|
| 35 |
FEATURE_MAX_TOKENS = int(os.getenv("FEATURE_MAX_TOKENS", 600))
|
| 36 |
CHAT_MAX_TOKENS = int(os.getenv("CHAT_MAX_TOKENS", 700))
|
| 37 |
+
INTENT_MAX_TOKENS = int(os.getenv("INTENT_MAX_TOKENS", 1500))
|
| 38 |
FULL_PROJECT_MAX_TOKENS = int(os.getenv("FULL_PROJECT_MAX_TOKENS", 2000))
|
| 39 |
|
| 40 |
TOP_P = float(os.getenv("TOP_P", 0.95))
|
src/recommendation_engine/prompt_builder.py
CHANGED
|
@@ -55,12 +55,16 @@ PROJECT CONTEXT:
|
|
| 55 |
- Context Strength: {context.get("context_strength", 0.0)}
|
| 56 |
|
| 57 |
IMPORTANT REQUIREMENTS:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
- Features must belong to ONE coherent system
|
| 59 |
- Features must solve REAL problems
|
| 60 |
- Prefer intelligent automation and AI logic
|
| 61 |
- Focus on implementable engineering features
|
| 62 |
- Avoid vague or generic functionality
|
| 63 |
-
- Avoid repeating concepts with different wording
|
| 64 |
- Avoid simple CRUD/dashboard/login features
|
| 65 |
- Generate diverse feature types
|
| 66 |
|
|
|
|
| 55 |
- Context Strength: {context.get("context_strength", 0.0)}
|
| 56 |
|
| 57 |
IMPORTANT REQUIREMENTS:
|
| 58 |
+
- Generate ONLY additional features.
|
| 59 |
+
- Do NOT rewrite or rephrase existing features.
|
| 60 |
+
- Do NOT generate semantic variations.
|
| 61 |
+
- Each new feature must introduce a new capability.
|
| 62 |
+
- Focus on originality expansion.
|
| 63 |
- Features must belong to ONE coherent system
|
| 64 |
- Features must solve REAL problems
|
| 65 |
- Prefer intelligent automation and AI logic
|
| 66 |
- Focus on implementable engineering features
|
| 67 |
- Avoid vague or generic functionality
|
|
|
|
| 68 |
- Avoid simple CRUD/dashboard/login features
|
| 69 |
- Generate diverse feature types
|
| 70 |
|