Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
bcdeb361
Commit
bcdeb361
authored
Oct 22, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页推荐问
parent
06124b3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
AgentApplicationServiceImpl.java
...oc/expose/aggregate/impl/AgentApplicationServiceImpl.java
+2
-4
No files found.
src/main/java/cn/com/poc/expose/aggregate/impl/AgentApplicationServiceImpl.java
View file @
bcdeb361
...
@@ -214,7 +214,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
...
@@ -214,7 +214,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
}
}
public
void
createRecommendQuestion
()
throws
InterruptedException
{
public
void
createRecommendQuestion
()
throws
InterruptedException
{
List
<
String
>
questions
=
new
CopyOnWriteArrayList
<>();
List
<
Object
>
questions
=
new
CopyOnWriteArrayList
<>();
ThreadPoolExecutor
threadPoolExecutor
=
new
ThreadPoolExecutor
(
10
,
10
,
5
,
TimeUnit
.
SECONDS
,
new
LinkedBlockingDeque
<>());
ThreadPoolExecutor
threadPoolExecutor
=
new
ThreadPoolExecutor
(
10
,
10
,
5
,
TimeUnit
.
SECONDS
,
new
LinkedBlockingDeque
<>());
CountDownLatch
countDownLatch
=
new
CountDownLatch
(
20
);
CountDownLatch
countDownLatch
=
new
CountDownLatch
(
20
);
...
@@ -242,9 +242,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
...
@@ -242,9 +242,7 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
countDownLatch
.
await
(
2
,
TimeUnit
.
MINUTES
);
countDownLatch
.
await
(
2
,
TimeUnit
.
MINUTES
);
redisService
.
del
(
AGENT_APPLICATION_RECOMMEND_QUESTIONS
);
redisService
.
del
(
AGENT_APPLICATION_RECOMMEND_QUESTIONS
);
for
(
String
question
:
questions
)
{
redisService
.
lSet
(
AGENT_APPLICATION_RECOMMEND_QUESTIONS
,
questions
);
redisService
.
lSet
(
AGENT_APPLICATION_RECOMMEND_QUESTIONS
,
question
);
}
}
}
private
void
buildMessages
(
String
dialogsId
,
String
agentId
,
Long
userId
,
List
<
Message
>
messages
,
String
input
)
throws
Exception
{
private
void
buildMessages
(
String
dialogsId
,
String
agentId
,
Long
userId
,
List
<
Message
>
messages
,
String
input
)
throws
Exception
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment