Spaces:
Sleeping
Sleeping
idk what i did
Browse files- .gitignore +1 -1
- .huggingface/Dockerfile → Dockerfile +5 -1
- prompts/system_prompt.txt +40 -0
.gitignore
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
go.work
|
| 22 |
go.work.sum
|
| 23 |
chats
|
| 24 |
-
system_prompt.txt
|
| 25 |
|
| 26 |
# secrets
|
| 27 |
*.env
|
|
|
|
| 21 |
go.work
|
| 22 |
go.work.sum
|
| 23 |
chats
|
| 24 |
+
# system_prompt.txt
|
| 25 |
|
| 26 |
# secrets
|
| 27 |
*.env
|
.huggingface/Dockerfile → Dockerfile
RENAMED
|
@@ -1,18 +1,22 @@
|
|
| 1 |
FROM golang:1.22.3 AS builder
|
| 2 |
|
| 3 |
WORKDIR /app
|
|
|
|
| 4 |
COPY go.mod go.sum ./
|
| 5 |
RUN go mod download
|
| 6 |
|
| 7 |
COPY . .
|
| 8 |
-
|
| 9 |
RUN go build -o main .
|
| 10 |
|
| 11 |
FROM alpine:latest
|
| 12 |
RUN apk --no-cache add ca-certificates
|
| 13 |
|
| 14 |
WORKDIR /root/
|
|
|
|
| 15 |
COPY --from=builder /app/main .
|
| 16 |
|
|
|
|
| 17 |
EXPOSE 8080
|
|
|
|
|
|
|
| 18 |
CMD ["./main"]
|
|
|
|
| 1 |
FROM golang:1.22.3 AS builder
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
+
|
| 5 |
COPY go.mod go.sum ./
|
| 6 |
RUN go mod download
|
| 7 |
|
| 8 |
COPY . .
|
|
|
|
| 9 |
RUN go build -o main .
|
| 10 |
|
| 11 |
FROM alpine:latest
|
| 12 |
RUN apk --no-cache add ca-certificates
|
| 13 |
|
| 14 |
WORKDIR /root/
|
| 15 |
+
|
| 16 |
COPY --from=builder /app/main .
|
| 17 |
|
| 18 |
+
RUN chmod +x ./main
|
| 19 |
EXPOSE 8080
|
| 20 |
+
|
| 21 |
+
# Command to run the executable
|
| 22 |
CMD ["./main"]
|
prompts/system_prompt.txt
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an advanced AI designed to analyze the intensity of chat conversations. Your goal is to evaluate and score the intensity of a given chat based on several key metrics. Consider the following factors:
|
| 2 |
+
|
| 3 |
+
Message Frequency:
|
| 4 |
+
Number of messages per minute.
|
| 5 |
+
|
| 6 |
+
Response Time:
|
| 7 |
+
Average response time between messages.
|
| 8 |
+
Consistency of response times.
|
| 9 |
+
|
| 10 |
+
Sentiment and Emotional Tone:
|
| 11 |
+
Overall sentiment (positive, negative, neutral).
|
| 12 |
+
Intensity of emotions detected (e.g., anger, excitement, urgency).
|
| 13 |
+
|
| 14 |
+
Engagement and Interaction:
|
| 15 |
+
Number of active participants.
|
| 16 |
+
Frequency of messages from each participant.
|
| 17 |
+
Presence of interruptions or overlapping messages.
|
| 18 |
+
|
| 19 |
+
Content and Complexity:
|
| 20 |
+
Average length of messages.
|
| 21 |
+
Lexical diversity and complexity of language used.
|
| 22 |
+
Frequency of topic changes or shifts in conversation focus.
|
| 23 |
+
|
| 24 |
+
Contextual Cues:
|
| 25 |
+
Presence of urgent keywords (e.g., "urgent," "ASAP," "emergency").
|
| 26 |
+
Use of punctuation and capitalization to express intensity (e.g., exclamation marks, all caps).
|
| 27 |
+
|
| 28 |
+
Your answer should only be in JSON format with this format instruction and nothing else:
|
| 29 |
+
{
|
| 30 |
+
"score": <int>,
|
| 31 |
+
"description": "<string>",
|
| 32 |
+
"messages": [
|
| 33 |
+
{
|
| 34 |
+
"role": "<string>",
|
| 35 |
+
"content": "<string>"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
+
}
|
| 39 |
+
The score should be out of 100, a short description on why the score was given, and 3 follow up messages to make the conversation more interesting and fun.
|
| 40 |
+
|