rohit commited on
Commit
2e540d6
·
1 Parent(s): cfa1426

Refine prompt for developer portfolio

Browse files
Files changed (1) hide show
  1. app/config.py +6 -14
app/config.py CHANGED
@@ -127,24 +127,16 @@ DATASET_CONFIGS = {
127
  "context": "context"
128
  },
129
  prompt_template="""
130
- Given the following context about a software developer's skills, experience, and background,
131
- please answer the question accurately based on the provided information.
132
-
133
- For each query, provide detailed information about:
134
- 1. Technical skills and programming languages
135
- 2. Machine learning and AI experience
136
- 3. Projects and professional experience
137
- 4. Tools and frameworks used
138
- 5. Personal interests and learning approach
139
-
140
- Available Contexts:
141
  {% for document in documents %}
142
  Question: {{ document.meta.question }}
143
  Answer: {{ document.content }}
144
- Context: {{ document.meta.context }}
145
  ---
146
  {% endfor %}
147
-
148
  Question: {{question}}
149
  Answer:
150
  """
@@ -155,4 +147,4 @@ DATASET_CONFIGS = {
155
  MODEL_CONFIG = {
156
  "embedding_model": "sentence-transformers/all-MiniLM-L6-v2",
157
  "llm_model": "gemini-2.0-flash-exp",
158
- }
 
127
  "context": "context"
128
  },
129
  prompt_template="""
130
+ You are a helpful assistant who provides concise and direct answers based on the provided context.
131
+ Do not summarize unless asked to.
132
+
133
+ Context:
 
 
 
 
 
 
 
134
  {% for document in documents %}
135
  Question: {{ document.meta.question }}
136
  Answer: {{ document.content }}
 
137
  ---
138
  {% endfor %}
139
+
140
  Question: {{question}}
141
  Answer:
142
  """
 
147
  MODEL_CONFIG = {
148
  "embedding_model": "sentence-transformers/all-MiniLM-L6-v2",
149
  "llm_model": "gemini-2.0-flash-exp",
150
+ }